Forwards the Request to the backend and returns the Response.
protected forward ( |
||
$request | A Request instance | |
$catch | boolean | Whether to catch exceptions or not |
$entry | A Response instance (the stale entry if present, null otherwise) | |
return | A Response instance |
/** * Forwards the Request to the backend and returns the Response. * * @param Request $request A Request instance * @param Boolean $raw Whether to catch exceptions or not * @param Response $entry A Response instance (the stale entry if present, null otherwise) * * @return Response A Response instance */ protected function forward(Request $request, $raw = false, Response $entry = null) { $this->getKernel()->boot(); $this->getKernel()->getContainer()->set('cache', $this); $this->getKernel()->getContainer()->set('esi', $this->getEsi()); return parent::forward($request, $raw, $entry); }
/** * Forwards the Request to the backend and returns the Response. * * @param Request $request A Request instance * @param Boolean $raw Whether to catch exceptions or not * @param Response $entry A Response instance (the stale entry if present, null otherwise) * * @return Response A Response instance */ protected function forward(Request $request, $raw = false, Response $entry = null) { $this->getKernel()->boot(); /** @var $container \Shopware\Components\DependencyInjection\Container */ $container = $this->getKernel()->getContainer(); $container->set('HttpCache', $this); return parent::forward($request, $raw, $entry); }
/** * Forwards the Request to the backend and returns the Response. * * @param Request $request A Request instance * @param Boolean $raw Whether to catch exceptions or not * @param Response $entry A Response instance (the stale entry if present, null otherwise) * * @return Response A Response instance */ protected function forward(Request $request, $raw = false, Response $entry = null) { /** @var $bootstrap \Shopware_Bootstrap */ $bootstrap = $this->getKernel()->getApp()->Bootstrap(); $bootstrap->registerResource('HttpCache', $this); $bootstrap->registerResource('Esi', $this->esi); return parent::forward($request, $raw, $entry); }