public function getRulesFor($action, $resource)
    {
        $aliases = array_merge((array) $action, $this->getAliasesForAction($action));
        return $this->rules->getRelevantRules($aliases, $resource);
    }
public function getRulesFor($action, $resource)
    {
        $aliases = array_merge((array) $action, $this->getAliasesForAction($action));
        return $this->rules->getRelevantRules($aliases, $resource);
    }
public function getRulesFor ( $ action , $ resource ) { $ aliases = array_merge ( ( array ) $ action , $ this -> getAliasesForAction ( $ action ) ) ; return $ this -> rules -> getRelevantRules ( $ aliases , $ resource ) ; }
Returns all rules relevant to the given action and resource

@return RuleRepository
Returns all rules relevant to the given action and resource