Ejemplo n.º 1
0
 /**
  * @param \Generated\Shared\Transfer\RuleTransfer $rule
  * @param string $bundle
  * @param string $controller
  * @param string $action
  *
  * @return bool
  */
 public function assert(RuleTransfer $rule, $bundle, $controller, $action)
 {
     if (($rule->getBundle() === $bundle || $rule->getBundle() === AclConstants::VALIDATOR_WILDCARD) && ($rule->getController() === $controller || $rule->getController() === AclConstants::VALIDATOR_WILDCARD) && ($rule->getAction() === $action || $rule->getAction() === AclConstants::VALIDATOR_WILDCARD)) {
         return true;
     }
     return false;
 }