{
if ($organisation->getOpanEnabled()) {
throw $this->createNotFoundException('organisation has opan enabled.');
}
if (count($organisation->getOwnedLocalities()) === 0 && count($organisation->getManagedLocalities()) === 0) {
throw $this->createNotFoundException('Organisation doesn\'t have opan enabled and has no owned or managed localities.');
}
$session = $request->getSession();
$hash = ($session->has('applicationHash')) ? $session->get('applicationHash') : '';
$clientLocalityId = $session->get('locality-' . $hash);
$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) {
No log messages
NotFoundHttpException |
---|
Symfony\Component\HttpKernel\Exception\NotFoundHttpException: Organisation doesn't have opan enabled and has no owned or managed localities. at vendor/symfony/symfony/src/Symfony/Bundle/FrameworkBundle/Controller/ControllerTrait.php:294 at Symfony\Bundle\FrameworkBundle\Controller\AbstractController->createNotFoundException('Organisation doesn\'t have opan enabled and has no owned or managed localities.') (src/Spitex/OPANBundle/Controller/OrganisationController.php:1197) at Spitex\OPANBundle\Controller\OrganisationController->profileNoOpanAction(object(Request), object(EntityManager_9a5be93), object(Organisation)) (vendor/symfony/symfony/src/Symfony/Component/HttpKernel/HttpKernel.php:169) at Symfony\Component\HttpKernel\HttpKernel->handleRaw(object(Request), 1) (vendor/symfony/symfony/src/Symfony/Component/HttpKernel/HttpKernel.php:81) at Symfony\Component\HttpKernel\HttpKernel->handle(object(Request), 1, true) (vendor/symfony/symfony/src/Symfony/Component/HttpKernel/Kernel.php:201) at Symfony\Component\HttpKernel\Kernel->handle(object(Request)) (public/index.php:37) |