Overview

Namespaces

  • Autarky
    • Config
      • Loaders
    • Console
    • Container
      • Exception
      • Factory
      • Proxy
    • Database
    • Errors
    • Events
    • Files
    • Http
    • Logging
    • Providers
    • Routing
      • Events
    • Testing
    • TwigTemplating
      • Extensions
    • Utils

Classes

  • AbstractRouteEvent
  • AfterEvent
  • BeforeEvent
  • RouteMatchedEvent
  • Overview
  • Namespace
  • Class

Class BeforeEvent

Event that is fired before a route's controller is invoked.

Symfony\Component\EventDispatcher\Event
Extended by Autarky\Routing\Events\AbstractRouteEvent
Extended by Autarky\Routing\Events\BeforeEvent
Namespace: Autarky\Routing\Events
Located at Routing/Events/BeforeEvent.php
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

$controller
public callable|null
# getController( )

Get the dispatch's controller.

Get the dispatch's controller.

Returns

callable|null
public
# setResponse( mixed $response )

Set the response.

Set the response.

Parameters

$response
public mixed
# getResponse( )

Get the response.

Get the response.

Returns

mixed
Methods inherited from Autarky\Routing\Events\AbstractRouteEvent
__construct(), getRequest(), getRoute()
Properties summary
protected callable|null $controller
#
protected mixed $response
#
Properties inherited from Autarky\Routing\Events\AbstractRouteEvent
$request, $route
Autarky Framework API documentation generated by ApiGen