ErrorPlugin
extends Plugin
in package
Table of Contents
Methods
- getSubscribedEvents() : array<string|int, mixed>
- onGetPageTemplates() : mixed
- Add page template types.
- onPageNotFound() : mixed
- Display error page if no page was found for the current route.
- onTwigTemplatePaths() : mixed
- Add current directory to twig lookup paths.
Methods
getSubscribedEvents()
public
static getSubscribedEvents() : array<string|int, mixed>
Return values
array<string|int, mixed>onGetPageTemplates()
Add page template types.
public
onGetPageTemplates(Event $event) : mixed
Parameters
- $event : Event
onPageNotFound()
Display error page if no page was found for the current route.
public
onPageNotFound(Event $event) : mixed
Parameters
- $event : Event
onTwigTemplatePaths()
Add current directory to twig lookup paths.
public
onTwigTemplatePaths() : mixed