public function Router::__construct in Zircon Profile 8
Same name and namespace in other branches
- 8.0 vendor/symfony/routing/Router.php \Symfony\Component\Routing\Router::__construct()
Constructor.
Parameters
LoaderInterface $loader A LoaderInterface instance:
mixed $resource The main resource to load:
array $options An array of options:
RequestContext $context The context:
LoggerInterface $logger A logger instance:
File
- vendor/
symfony/ routing/ Router.php, line 95
Class
- Router
- The Router class is an example of the integration of all pieces of the routing system for easier use.
Namespace
Symfony\Component\RoutingCode
public function __construct(LoaderInterface $loader, $resource, array $options = array(), RequestContext $context = null, LoggerInterface $logger = null) {
$this->loader = $loader;
$this->resource = $resource;
$this->logger = $logger;
$this->context = $context ?: new RequestContext();
$this
->setOptions($options);
}