public function call() { if (strpos($this->app->request()->getPathInfo(), $this->route) !== false) { parent::call(); return; } $this->next->call(); }
/** * for http basic auth * instead of post params auth */ public function behaviors2() { return ['access' => ['class' => HttpBasicAuth::className()]]; }