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);
    }
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);
    }
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 ) ; }
Gets the authority

@param IContainer $container The IoC container
@return IAuthority The authority
Gets the authority