InstallerRouteBuilder
class InstallerRouteBuilder extends RouteBuilder (View source)
Manages the router in the installer.
Properties
| protected MatcherDumperInterface | $dumper | The dumper to which we should send collected routes. |
from RouteBuilder |
| protected LockBackendInterface | $lock | The used lock backend instance. |
from RouteBuilder |
| protected EventDispatcherInterface | $dispatcher | The event dispatcher to notify of routes. |
from RouteBuilder |
| protected ModuleHandlerInterface | $moduleHandler | The module handler. |
from RouteBuilder |
| protected ControllerResolverInterface | $controllerResolver | The controller resolver. |
from RouteBuilder |
| protected RouteCollection | $routeCollection | The route collection during the rebuild. |
from RouteBuilder |
| protected bool | $building | Flag that indicates if we are currently rebuilding the routes. |
from RouteBuilder |
| protected bool | $rebuildNeeded | Flag that indicates if we should rebuild at the end of the request. |
from RouteBuilder |
| protected CheckProviderInterface | $checkProvider | The check provider. |
from RouteBuilder |
Methods
Constructs the RouteBuilder using the passed MatcherDumperInterface.
Sets the router to be rebuilt next time rebuildIfNeeded() is called.
Retrieves all defined routes from .routing.yml files.
Details
__construct(MatcherDumperInterface $dumper, LockBackendInterface $lock, EventDispatcherInterface $dispatcher, ModuleHandlerInterface $module_handler, ControllerResolverInterface $controller_resolver, CheckProviderInterface $check_provider)
Constructs the RouteBuilder using the passed MatcherDumperInterface.
setRebuildNeeded()
Sets the router to be rebuilt next time rebuildIfNeeded() is called.
bool
rebuild()
Rebuilds the route information and dumps it.
bool
rebuildIfNeeded()
Rebuilds the route information if necessary, and dumps it.
destruct()
Performs destruct operations.
protected array
getRouteDefinitions()
Retrieves all defined routes from .routing.yml files.