Symfony\Component\Routing\Loader\YamlFileLoader::load
Loads a Yaml file.
Signature
public function load(string
$file,
[string|null
$type = null] )
Parameters
$file
— string- A Yaml file path
$type
— object- The resource type
Returns
- RouteCollection
- A RouteCollection instance
Errors/Exceptions
-
InvalidArgumentException
- When a route can't be parsed because YAML is invalid