Nette\Application\Application::__construct PHP Method

__construct() public method

public __construct ( Nette\Application\IPresenterFactory $presenterFactory, Nette\Application\IRouter $router, Nette\Http\IRequest $httpRequest, Nette\Http\IResponse $httpResponse )
$presenterFactory Nette\Application\IPresenterFactory
$router Nette\Application\IRouter
$httpRequest Nette\Http\IRequest
$httpResponse Nette\Http\IResponse
    public function __construct(IPresenterFactory $presenterFactory, IRouter $router, Nette\Http\IRequest $httpRequest, Nette\Http\IResponse $httpResponse)
    {
        $this->httpRequest = $httpRequest;
        $this->httpResponse = $httpResponse;
        $this->presenterFactory = $presenterFactory;
        $this->router = $router;
    }

Usage Example

 public function __construct(IPresenterFactory $presenterFactory, IRouter $router, IRequest $httpRequest, IResponse $httpResponse)
 {
     parent::__construct($presenterFactory, $router, $httpRequest, $httpResponse);
     $this->presenterFactory = $presenterFactory;
     $this->router = $router;
     $this->httpRequest = $httpRequest;
     $this->httpResponse = $httpResponse;
 }