* @access public
* @return void
*/
public function action_presentation_edit($slug = null, Request $request, TheatreMail $TheatreMail, UtilsEdit $edit_utils, Images $images, EditUtils $editUtils)
{
return $this->redirectToRoute('index', [], Response::HTTP_MOVED_PERMANENTLY);
}
// }}}
// {{{ action_presentation()
$this->dispatcher->dispatch($event, KernelEvents::CONTROLLER_ARGUMENTS);
$controller = $event->getController();
$arguments = $event->getArguments();
// call controller
$response = $controller(...$arguments);
// view
if (!$response instanceof Response) {
$event = new ViewEvent($this, $request, $type, $response);
$this->dispatcher->dispatch($event, KernelEvents::VIEW);
{
$request->headers->set('X-Php-Ob-Level', (string) ob_get_level());
$this->requestStack->push($request);
try {
return $this->handleRaw($request, $type);
} catch (\Exception $e) {
if ($e instanceof RequestExceptionInterface) {
$e = new BadRequestHttpException($e->getMessage(), $e);
}
if (false === $catch) {
$this->boot();
++$this->requestStackSize;
$this->resetServices = true;
try {
return $this->getHttpKernel()->handle($request, $type, $catch);
} finally {
--$this->requestStackSize;
}
}
Debug::enable();
}
$kernel = new Kernel($_SERVER['APP_ENV'], (bool) $_SERVER['APP_DEBUG']);
$request = Request::createFromGlobals();
$response = $kernel->handle($request);
$response->send();
$kernel->terminate($request, $response);
ClassNotFoundError
|
---|
Symfony\Component\ErrorHandler\Error\ClassNotFoundError: Attempted to load class "Response" from namespace "App\Controller". Did you forget a "use" statement for e.g. "Symfony\Flex\Response", "Symfony\Component\HttpFoundation\Response", "Symfony\Component\BrowserKit\Response", "ReCaptcha\Response", "Mpdf\PsrHttpMessageShim\Response" or "GuzzleHttp\Psr7\Response"? at /home/web/theatre-contemporain.net/dev/src/Controller/BiographieController.php:2032 at App\Controller\BiographieController->action_presentation_edit() (/home/web/theatre-contemporain.net/dev/vendor/symfony/http-kernel/HttpKernel.php:163) at Symfony\Component\HttpKernel\HttpKernel->handleRaw() (/home/web/theatre-contemporain.net/dev/vendor/symfony/http-kernel/HttpKernel.php:75) at Symfony\Component\HttpKernel\HttpKernel->handle() (/home/web/theatre-contemporain.net/dev/vendor/symfony/http-kernel/Kernel.php:202) at Symfony\Component\HttpKernel\Kernel->handle() (/home/web/theatre-contemporain.net/dev/public/index.php:20) |