blink\core\Application::beforeAction PHP Method

beforeAction() protected method

protected beforeAction ( $action, $request )
    protected function beforeAction($action, $request)
    {
        if ($action instanceof Closure) {
            return;
        }
        list($object, $method) = $action;
        if (method_exists($object, 'before')) {
            call_user_func([$object, 'before'], $method, $request);
        }
    }