protected isOptional ( |
||
$action | action to be checked. | |
return | boolean | whether authentication is optional or not. |
protected function isOptional($action)
{
$id = $this->getActionId($action);
foreach ($this->optional as $pattern) {
if (fnmatch($pattern, $id)) {
return true;
}
}
return false;
}