Class BeforeEvent
Event that is fired before a route's controller is invoked.
-
Symfony\Component\EventDispatcher\Event
-
Autarky\Routing\Events\AbstractRouteEvent
-
Autarky\Routing\Events\BeforeEvent
Methods summary
public
|
#
setController( callable $controller )
Set the dispatch's controller. This overrides the original route's
controller.
Set the dispatch's controller. This overrides the original route's
controller.
Parameters
|
public
callable|null
|
#
getController( )
Get the dispatch's controller.
Get the dispatch's controller.
Returns
callable|null
|
public
|
#
setResponse( mixed $response )
Set the response.
Parameters
|
public
mixed
|
|