CakeDC\Users\Auth\SimpleRbacAuthorize::__construct PHP Method

__construct() public method

Autoload permission configuration
public __construct ( Cake\Controller\ComponentRegistry $registry, array $config = [] )
$registry Cake\Controller\ComponentRegistry component registry
$config array config
    public function __construct(ComponentRegistry $registry, array $config = [])
    {
        parent::__construct($registry, $config);
        $autoload = $this->config('autoload_config');
        if ($autoload) {
            $loadedPermissions = $this->_loadPermissions($autoload);
            $this->config('permissions', $loadedPermissions);
        }
    }