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);
    }