Error
This class allows to access services in the services container by just only accessing a public property with the same name of a registered service
- Full name: \Zemit\Mvc\Dispatcher\Error
- Parent class: \Zemit\Di\Injectable
Properties
defaultNotFoundRoute
public array $defaultNotFoundRoute
defaultErrorRoute
public array $defaultErrorRoute
Methods
beforeException
Forward to 404 or 500 error controller
public beforeException(\Phalcon\Events\Event $event, \Zemit\Mvc\Dispatcher $dispatcher, \Exception $exception): bool
Parameters:
| Parameter | Type | Description | 
|---|---|---|
| $event | \Phalcon\Events\Event | |
| $dispatcher | \Zemit\Mvc\Dispatcher | |
| $exception | \Exception | 
Throws:
appendDefaultToRoute
public appendDefaultToRoute(array $route, array $default): array
Parameters:
| Parameter | Type | Description | 
|---|---|---|
| $route | array | |
| $default | array |