ICanBoogie/Routing v2.4.0
  • Namespace
  • Class

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
Extended by ICanBoogie\Routing\Route\RescueEvent
Namespace: ICanBoogie\Routing\Route
Located at Route/RescueEvent.php

Methods summary

protected
# get_exception( )
protected
# set_exception( Exception $exception )
protected
# get_request( )
protected
# get_response( )
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 ICanBoogie\HTTP\Response|null $response
public read-only ICanBoogie\HTTP\Request $request
ICanBoogie/Routing v2.4.0 API documentation generated by ApiGen