yii\filters\AccessRule::matchController PHP Method

matchController() protected method

protected matchController ( Controller $controller ) : boolean
$controller yii\base\Controller the controller
return boolean whether the rule applies to the controller
    protected function matchController($controller)
    {
        return empty($this->controllers) || in_array($controller->uniqueId, $this->controllers, true);
    }