Symfony\Component\Routing\Loader\XmlFileLoader::load
Loads an XML file.
Signature
public function load(string
$file,
[string|null
$type = null] )
Parameters
$file
— string- An XML file path
$type
— object- The resource type
Returns
- RouteCollection
- A RouteCollection instance
Errors/Exceptions
-
InvalidArgumentException
- When the file cannot be loaded or when the XML cannot be