An introduction to the routing and menu components.
navigation:
pattern: "/{url}"
defaults: { _controller: service.controller:indexAction }
requirements:
url: .*
<service id="my_namespace.my_router"
class="%my_namespace.my_router_class%">
<tag name="router" priority="300" />
</service>
interface ControllerResolverInterface
{
function getController(RouteObjectInterface $document,
array &$defaults);
}