protected function getAuthority(IContainer $container) : IAuthority
    {
        $permissionRegistry = $this->getPermissionRegistry($container);
        $container->bindInstance(IPermissionRegistry::class, $permissionRegistry);
        $container->bindInstance(IRoles::class, $this->getRoles($container));

        return new Authority(-1, [], $permissionRegistry);
    }