protected function getRoles(IContainer $container) : IRoles
    {
        $roleRepository = $this->getRoleRepository($container);
        $roleMembershipRepository = $this->getRoleMembershipRepository($container);
        $container->bindInstance(IRoleRepository::class, $roleRepository);
        $container->bindInstance(IRoleMembershipRepository::class, $roleMembershipRepository);

        return new Roles($roleRepository, $roleMembershipRepository);
    }
protected function getRoles(IContainer $container) : IRoles
    {
        $roleRepository = $this->getRoleRepository($container);
        $roleMembershipRepository = $this->getRoleMembershipRepository($container);
        $container->bindInstance(IRoleRepository::class, $roleRepository);
        $container->bindInstance(IRoleMembershipRepository::class, $roleMembershipRepository);

        return new Roles($roleRepository, $roleMembershipRepository);
    }
protected function getRoles ( IContainer $ container ) : IRoles { $ roleRepository = $ this -> getRoleRepository ( $ container ) ; $ roleMembershipRepository = $ this -> getRoleMembershipRepository ( $ container ) ; $ container -> bindInstance ( IRoleRepository :: class , $ roleRepository ) ; $ container -> bindInstance ( IRoleMembershipRepository :: class , $ roleMembershipRepository ) ; return new Roles ( $ roleRepository , $ roleMembershipRepository ) ; }
Gets the roles

@param IContainer $container The IoC container
@return IRoles The roles
Gets the roles