コード例 #1
0
ファイル: Auth.php プロジェクト: spryker/Auth
 /**
  * @param string $bundle
  * @param string $controller
  * @param string $action
  *
  * @return bool
  */
 public function isIgnorablePath($bundle, $controller, $action)
 {
     $ignorable = $this->authConfig->getIgnorable();
     foreach ($ignorable as $ignore) {
         if (($bundle === $ignore['bundle'] || $ignore['bundle'] === AuthConstants::AUTHORIZATION_WILDCARD) && ($controller === $ignore['controller'] || $ignore['controller'] === AuthConstants::AUTHORIZATION_WILDCARD) && ($action === $ignore['action'] || $ignore['action'] === AuthConstants::AUTHORIZATION_WILDCARD)) {
             return true;
         }
     }
     return false;
 }