/**
  * Create service
  *
  * @param ServiceLocatorInterface $serviceLocator
  * @return mixed
  */
 public function createService(ServiceLocatorInterface $serviceLocator)
 {
     if ($serviceLocator instanceof AbstractPluginManager) {
         $serviceLocator = $serviceLocator->getServiceLocator();
     }
     /** @var CommitMapper $mapper */
     $mapper = $serviceLocator->get('commitMapper');
     $instance = new IndexController();
     $instance->setCommitMapper($mapper);
     return $instance;
 }