Http403
in package
implements
IEvent
Event generated when a 403 Forbidden error occurs.
Happens before the rendering of the error page.
This event is emitted when a user is authenticated but lacks the necessary permissions to access a resource.
Table of Contents
Interfaces
- IEvent
- Core event interface for the Neuron event system.
Properties
- $permission : string|null
- $resource : string|null
- $route : string
Methods
- __construct() : mixed
Properties
$permission
public
string|null
$permission
$resource
public
string|null
$resource
$route
public
string
$route
Methods
__construct()
public
__construct(string $route[, string|null $resource = null ][, string|null $permission = null ]) : mixed
Parameters
- $route : string
-
The route that triggered the 403 error
- $resource : string|null = null
-
The resource that was forbidden (e.g., 'User Profile', 'Document #123')
- $permission : string|null = null
-
The permission that was lacking (e.g., 'admin.edit', 'document.read')