Commit 854c933b authored by Tino Goratsch's avatar Tino Goratsch

fix the AccessForbiddenException

parent 02728278
......@@ -18,4 +18,12 @@ class AccessForbiddenException extends \Exception implements ForwardControllerAc
{
return 'errors.controller.frontend.index.access_forbidden';
}
/**
* {@inheritdoc}
*/
public function routeParams(): array
{
return [];
}
}
......@@ -101,7 +101,7 @@ class Bootstrap extends AbstractBootstrap
$response = $controllerActionDispatcher->dispatch();
} catch (ForwardControllerActionAwareExceptionInterface $e) {
$response = $controllerActionDispatcher->dispatch($e->getServiceId(), $e->routeArguments());
$response = $controllerActionDispatcher->dispatch($e->getServiceId(), $e->routeParams());
} catch (MaintenanceModeActiveException $e) {
$response = new Response($e->getMessage(), $e->getCode());
} catch (\Exception $e) {
......
......@@ -40,7 +40,7 @@ class UnauthorizedAccessException extends \Exception implements ForwardControlle
/**
* @return array
*/
public function routeArguments(): array
public function routeParams(): array
{
return $this->routeArguments;
}
......
......@@ -20,7 +20,7 @@ class ControllerActionNotFoundException extends \Exception implements ForwardCon
/**
* {@inheritdoc}
*/
public function routeArguments(): array
public function routeParams(): array
{
return [];
}
......
......@@ -19,5 +19,5 @@ interface ForwardControllerActionAwareExceptionInterface extends \Throwable
/**
* @return array
*/
public function routeArguments(): array;
public function routeParams(): array;
}
......@@ -20,7 +20,7 @@ class ResultNotExistsException extends \Exception implements ForwardControllerAc
/**
* {@inheritdoc}
*/
public function routeArguments(): array
public function routeParams(): array
{
return [];
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment