Neos\Flow\Security\Authorization\Privilege\Method\MethodPrivilegeInterface::matchesMethod PHP Method

matchesMethod() public method

Returns TRUE, if this privilege covers the given method
public matchesMethod ( string $className, string $methodName ) : boolean
$className string
$methodName string
return boolean
    public function matchesMethod($className, $methodName);

Usage Example

 /**
  * @param string $className
  * @param string $methodName
  * @return boolean
  */
 public function matchesMethod($className, $methodName)
 {
     $this->initialize();
     return $this->methodPrivilege->matchesMethod($className, $methodName);
 }