Symfony\Component\Routing\Loader\XmlFileLoader::parseRoute
Parses a route and adds it to the RouteCollection.
Signature
protected function parseRoute(RouteCollection
$collection,
DOMElement
$node,
string
$path )
Parameters
$collection
— Symfony\Component\Routing\RouteCollection- RouteCollection instance
$node
— \DOMElement- Element to parse that represents a Route
$path
— string- Full path of the XML file being processed
Errors/Exceptions
-
InvalidArgumentException
- When the XML is invalid