src/Controller/AppController.php
public function beforeRedirect(Event $event, $url, Response $response)
    {
        $pluginEvent = Plugin::getData('Core', 'Controller.beforeRedirect');
        if (is_callable($pluginEvent->find(0)) && Plugin::hasManifestEvent('Controller.beforeRedirect')) {
            call_user_func_array($pluginEvent->find(0), [$this, $event, $url, $response]);
        }
    }
public function beforeRedirect(Event $event, $url, Response $response)
    {
        $pluginEvent = Plugin::getData('Core', 'Controller.beforeRedirect');
        if (is_callable($pluginEvent->find(0)) && Plugin::hasManifestEvent('Controller.beforeRedirect')) {
            call_user_func_array($pluginEvent->find(0), [$this, $event, $url, $response]);
        }
    }
public function beforeRedirect ( Event $ event , $ url , Response $ response ) { $ pluginEvent = Plugin :: getData ( 'Core' , 'Controller.beforeRedirect' ) ; if ( is_callable ( $ pluginEvent -> find ( 0 ) ) && Plugin :: hasManifestEvent ( 'Controller.beforeRedirect' ) ) { call_user_func_array ( $ pluginEvent -> find ( 0 ) , [ $ this , $ event , $ url , $ response ] ) ; } }
The beforeRedirect method is invoked when the controller's redirect method is called but before any
further action.

@param   Event $event
@param   array|string $url
@param   Response $response
@return  void

@throws  \JBZoo\Utils\Exception
The beforeRedirect method is invoked when the controller s redirect method is called but before any further action .