public static function responseAfterPrepare($event) { if (get_class(Yii::$app) == Application::className()) { return true; } $event->sender->content = ViewAccess::denyLinks($event->sender->content); }
protected function _before() { $this->appConfig = array('id' => 'yiistrap-test', 'basePath' => dirname(__DIR__), 'class' => \yii\console\Application::className()); $this->mockApplication(); }