ICanBoogie
  • Documentation
  • API Reference
  • Routing v2.4.0
Namespaces
  • ICanBoogie
    • Routing
      • Controller
      • Dispatcher
      • Route
Classes
  • RescueEvent

Class RescueEvent

Event class for the ICanBoogie\Routing\Dispatcher::rescue event.

Event hooks may use this event to rescue a route by providing a suitable response, or replace the exception to throw if the rescue fails.

ICanBoogie\Event
┗ ICanBoogie\Routing\Route\RescueEvent
Namespace: ICanBoogie\Routing\Route
Located at Route/RescueEvent.php

Methods summary

protected get_exception( void )
protected set_exception( Exception $exception )
protected get_request( void )
protected get_response( void )
protected set_response( ICanBoogie\HTTP\Response $response = null )
public __construct( ICanBoogie\Routing\Route $target, Exception & $exception, ICanBoogie\HTTP\Request $request, ICanBoogie\HTTP\Response|null & $response )

The event is constructed with the type rescue.

The event is constructed with the type rescue.

Parameters

$target
$exception
Reference to the exception thrown while dispatching the route.
$request
$response

Properties summary

Magic properties

public $exception : Exception
public $response : ICanBoogie\HTTP\Response|null
public read-only $request : ICanBoogie\HTTP\Request
Routing v2.4.0 – Check on GitHub – API documentation generated by ApiGen