Skip to content
This repository has been archived by the owner on Dec 4, 2023. It is now read-only.

Commit

Permalink
Merge ba02d24 into 4938f5a
Browse files Browse the repository at this point in the history
  • Loading branch information
dstrop committed Apr 18, 2023
2 parents 4938f5a + ba02d24 commit 856dee8
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions src/DI/Extension.php
Original file line number Diff line number Diff line change
Expand Up @@ -184,11 +184,11 @@ protected function createApplication(ContainerBuilder $builder)
->setAutowired(NetteApplicationHandler::class)
->addSetup('$catchExceptions', [$this->config->catchExceptions])
->addSetup('$errorPresenter', [$this->config->errorPresenter])
->addSetup('$onResponse[] = ?', [
(string)(new Nette\PhpGenerator\Literal(
'function() { Nette\Http\Helpers::initCookie($this->getService(?), $this->getService(?));};',
[$this->prefix('response'), $this->prefix('request')]
))
->addSetup('$service->onResponse[] = ?', [
new Nette\PhpGenerator\Literal(
'function() { Nette\Http\Helpers::initCookie($this->getService(?), $this->getService(?));}',
[$this->prefix('request'), $this->prefix('response')]
)
]);
}

Expand Down

0 comments on commit 856dee8

Please sign in to comment.