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