Skip to content

Commit 79615df

Browse files
janbarasekdg
authored andcommitted
Presenter: injectPrimary() params are required because $httpRequest is required. (#239)
1 parent a7f5683 commit 79615df

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/Application/UI/Presenter.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1284,8 +1284,8 @@ public function getFlashSession(): Http\SessionSection
12841284
/********************* services ****************d*g**/
12851285

12861286

1287-
final public function injectPrimary(Nette\DI\Container $context = null, Application\IPresenterFactory $presenterFactory = null, Nette\Routing\Router $router = null,
1288-
Http\IRequest $httpRequest, Http\IResponse $httpResponse, Http\Session $session = null, Nette\Security\User $user = null, ITemplateFactory $templateFactory = null)
1287+
final public function injectPrimary(?Nette\DI\Container $context, ?Application\IPresenterFactory $presenterFactory, ?Nette\Routing\Router $router,
1288+
Http\IRequest $httpRequest, Http\IResponse $httpResponse, ?Http\Session $session = null, ?Nette\Security\User $user = null, ?ITemplateFactory $templateFactory = null)
12891289
{
12901290
if ($this->presenterFactory !== null) {
12911291
throw new Nette\InvalidStateException('Method ' . __METHOD__ . ' is intended for initialization and should not be called more than once.');

0 commit comments

Comments
 (0)