NotFoundPlugin
extends AirlayPlugin
in package
Class NotFoundPlugin.
Plugin handles not found controllers/actions and exceptions.
Table of Contents
- $config : AirlayConfig
- $mongoDbManager : Manager
- $rabbitmq : AMQPStreamConnection
- beforeException() : bool
- This action is executed before execute any action in the application.
- isFrontendRouter() : bool
- Try to find request URI in frontend router config.
- setResponseData() : void
Properties
$config
public
AirlayConfig
$config
$mongoDbManager
public
Manager
$mongoDbManager
$rabbitmq
public
AMQPStreamConnection
$rabbitmq
Methods
beforeException()
This action is executed before execute any action in the application.
public
beforeException(Event $event, Dispatcher $dispatcher, Exception $exception) : bool
Parameters
- $event : Event
- $dispatcher : Dispatcher
- $exception : Exception
Return values
bool —isFrontendRouter()
Try to find request URI in frontend router config.
private
isFrontendRouter() : bool
Return values
bool —the path belongs to the frontend
setResponseData()
private
setResponseData(int $status, string $message, int $code) : void
Parameters
- $status : int
- $message : string
- $code : int