src/RawPHP/RawRouter/Controller.php
public function handle( IEvent $event, $name, IDispatcher $dispatcher )
    {
        if ( $event instanceof BeforeControllerRunEvent )
        {
            return $this->onBeforeAction();
        }
        elseif ( $event instanceof AfterControllerRunEvent )
        {
            return $this->onAfterAction();
        }
    }
public function handle( IEvent $event, $name, IDispatcher $dispatcher )
    {
        if ( $event instanceof BeforeControllerRunEvent )
        {
            return $this->onBeforeAction();
        }
        elseif ( $event instanceof AfterControllerRunEvent )
        {
            return $this->onAfterAction();
        }
    }
Handle an event.

@param IEvent      $event
@param string      $name
@param IDispatcher $dispatcher