src/Core/Engine.php
protected static function authenticate($controller, $action, $params) {
        $auth = new Authenticate(static::$userId, $controller, $action);
        if (!$auth->execute()) {
            $controller->accessDenied($action, $params);
            exit;
        }
    }
protected static function authenticate($controller, $action, $params) {
        $auth = new Authenticate(static::$userId, $controller, $action);
        if (!$auth->execute()) {
            $controller->accessDenied($action, $params);
            exit;
        }
    }
protected static function authenticate ( $ controller , $ action , $ params ) { $ auth = new Authenticate ( static :: $ userId , $ controller , $ action ) ; if ( ! $ auth -> execute ( ) ) { $ controller -> accessDenied ( $ action , $ params ) ; exit ; } }
Authenticates the current user against the controller and action
@param string $controller
@param string $action
Authenticates the current user against the controller and action