* @Route("/coaching/", name="coaching")
*/
public function coaching(EvenementService $evtService, MeetingRoomService $meetingRoomService, ParameterService $parameterService)
{
if (false === $this->isGranted('ROLE_ADMIN') && false === $parameterService->getParameterBoolean(Parameter::KEY_COACHING)) {
throw new NotFoundHttpException();
}
$this->denyAccessUnlessGranted('IS_AUTHENTICATED_REMEMBERED');
if ($this->etapeDeploiement < 3) {
return $this->redirectToRoute('homepage');
$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) {
}
$kernel = new Kernel($_SERVER['APP_ENV'], (bool) $_SERVER['APP_DEBUG']);
$request = Request::createFromGlobals();
Request::setTrustedProxies(['127.0.0.1', 'REMOTE_ADDR'], Request::HEADER_X_FORWARDED_ALL);
$response = $kernel->handle($request);
$response->send();
$kernel->terminate($request, $response);
function require_auth(string $username, string $password)
{
No log messages
NotFoundHttpException |
---|
Symfony\Component\HttpKernel\Exception\NotFoundHttpException: at src/Controller/DefaultController.php:540 at App\Controller\DefaultController->coaching(object(EvenementService), object(MeetingRoomService), object(ParameterService)) (vendor/symfony/http-kernel/HttpKernel.php:169) at Symfony\Component\HttpKernel\HttpKernel->handleRaw(object(Request), 1) (vendor/symfony/http-kernel/HttpKernel.php:81) at Symfony\Component\HttpKernel\HttpKernel->handle(object(Request), 1, true) (vendor/symfony/http-kernel/Kernel.php:201) at Symfony\Component\HttpKernel\Kernel->handle(object(Request)) (public/index.php:30) |