src/RdnConsole/Factory/Controller/Index.php
public function createService(ServiceLocatorInterface $controllers)
	{
		if ($controllers instanceof ServiceLocatorAwareInterface)
		{
			$services = $controllers->getServiceLocator();
		}
		else
		{
			$services = $controllers;
		}

		return new Controller\Index($services->get('RdnConsole\Application'));
	}
public function createService(ServiceLocatorInterface $controllers)
	{
		if ($controllers instanceof ServiceLocatorAwareInterface)
		{
			$services = $controllers->getServiceLocator();
		}
		else
		{
			$services = $controllers;
		}

		return new Controller\Index($services->get('RdnConsole\Application'));
	}
Create service

@param ServiceLocatorInterface $controllers
@return Controller\Index