Autarky\Http\Kernel::__construct PHP Метод

__construct() публичный Метод

public __construct ( Autarky\Routing\RouterInterface $router, Symfony\Component\HttpFoundation\RequestStack $requests, Autarky\Errors\ErrorHandlerInterface $errorHandler = null, Symfony\Component\EventDispatcher\EventDispatcherInterface $eventDispatcher = null )
$router Autarky\Routing\RouterInterface
$requests Symfony\Component\HttpFoundation\RequestStack
$errorHandler Autarky\Errors\ErrorHandlerInterface Optional
$eventDispatcher Symfony\Component\EventDispatcher\EventDispatcherInterface Optional
    public function __construct(RouterInterface $router, RequestStack $requests, ErrorHandlerInterface $errorHandler = null, EventDispatcherInterface $eventDispatcher = null)
    {
        $this->router = $router;
        $this->requests = $requests;
        $this->errorHandler = $errorHandler;
        $this->eventDispatcher = $eventDispatcher;
    }