Beispiel #1
0
 /**
  * @param string $bundle
  * @param string $controller
  * @param string $action
  *
  * @return bool
  */
 public function isIgnorable($bundle, $controller, $action)
 {
     $ignoredRules = $this->config->getRules();
     foreach ($ignoredRules as $arrayRule) {
         $ruleTransfer = new RuleTransfer();
         $ruleTransfer->setBundle($arrayRule['bundle']);
         $ruleTransfer->setController($arrayRule['controller']);
         $ruleTransfer->setAction($arrayRule['action']);
         $ruleTransfer->setType($arrayRule['type']);
         $this->rulesValidator->addRule($ruleTransfer);
     }
     return $this->rulesValidator->isAccessible($bundle, $controller, $action);
 }