code: public function createService(ServiceLocatorInterface $serviceLocator)
      {
          $services = $serviceLocator->getServiceLocator();
          /* @var $options ControllerOptionsInterface */
          $options = $services->get(ModuleOptions::class);
  
          return new IndexController(
              $services->get('DomainServiceManager')->get($options->getUserEntityClass()),
              $options
          );
      }
docs: {@inheritDoc}
  
  @return IndexController