class StaticRouter extends Router (View source)

Router class which takes a DeferredRouteCollection instead of YamlLoader.

Properties

protected $routeCollection

Methods

__construct(DeferredRouteCollection $routeCollection, array $options = [], RequestContext $context = null, LoggerInterface $logger = null)

StaticRouter constructor.

null|DeferredRouteCollection|RouteCollection
getRouteCollection()

No description

Details

__construct(DeferredRouteCollection $routeCollection, array $options = [], RequestContext $context = null, LoggerInterface $logger = null)

StaticRouter constructor.

Parameters

DeferredRouteCollection $routeCollection
array $options
RequestContext $context
LoggerInterface $logger

null|DeferredRouteCollection|RouteCollection getRouteCollection()

Return Value

null|DeferredRouteCollection|RouteCollection