Exceptions
Exception
ErrorException
}$fileName = $cartDetail->getFilePapier();}$response = new Response();if($file){$response->setContent(file_get_contents($file));$response->headers->set('Content-Type', 'application/force-download');$response->headers->set('Content-disposition', 'filename='.$fileName);$response->setStatusCode(200);return $response;}
$this->dispatcher->dispatch($event, KernelEvents::CONTROLLER_ARGUMENTS);$controller = $event->getController();$arguments = $event->getArguments();// call controller$response = $controller(...$arguments);// viewif (!$response instanceof Response) {$event = new ViewEvent($this, $request, $type, $response);$this->dispatcher->dispatch($event, KernelEvents::VIEW);
public function handle(Request $request, $type = HttpKernelInterface::MASTER_REQUEST, $catch = true){$request->headers->set('X-Php-Ob-Level', (string) ob_get_level());try {return $this->handleRaw($request, $type);} catch (\Exception $e) {if ($e instanceof RequestExceptionInterface) {$e = new BadRequestHttpException($e->getMessage(), $e);}if (false === $catch) {
Stack Trace
ErrorException |
|---|
ErrorException:
Warning: file_get_contents(/home/preprodcopees/www/copees-sf/public/productPdf/b0309a10ab3505fd8368dc0b92a6847e.pdf): failed to open stream: No such file or directory
at src/Controller/Front/LiseuseController.php:438
at App\Controller\Front\LiseuseController->download(object(Request), '4ee32e78ba0f59ff8163b8101f0c938e')
(vendor/symfony/http-kernel/HttpKernel.php:151)
at Symfony\Component\HttpKernel\HttpKernel->handleRaw(object(Request), 1)
(vendor/symfony/http-kernel/HttpKernel.php:68)
at Symfony\Component\HttpKernel\HttpKernel->handle(object(Request), 1, true)
(vendor/symfony/http-kernel/Kernel.php:198)
at Symfony\Component\HttpKernel\Kernel->handle(object(Request))
(public/index.php:25)
|