Class OperationRouteDispatcher
Extends the original routing dispatcher to provide extra care for operations.
- ICanBoogie\Routing\RouteDispatcher
- ┗ ICanBoogie\Operation\OperationRouteDispatcher
Methods summary
protected
alter_params( ICanBoogie\Routing\Route $route
, ICanBoogie\HTTP\Request $request
, array $captured
)
public
rescue( ICanBoogie\Operation\Exception
$exception
, ICanBoogie\HTTP\Request $request
)
: ICanBoogie\HTTP\Response
protected
rescue_operation( ICanBoogie\Operation\Exception
$exception
, ICanBoogie\HTTP\Request $request
, ICanBoogie\Operation
$operation
, ICanBoogie\Operation\Failure
$failure
= null )
: ICanBoogie\Operation\Response
Rescues an operation that raised an exception.
protected
resolve_operation( ICanBoogie\Operation\Exception
& $exception
, ICanBoogie\HTTP\Request $request
, ICanBoogie\Operation\Failure
& $failure
= null )
: ICanBoogie\Operation
Resolves the operation from the exception or request's context.