for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace JhFlexiTime\Controller\Factory;
use JhFlexiTime\Controller\SettingsController;
use Zend\ServiceManager\FactoryInterface;
use Zend\ServiceManager\ServiceLocatorInterface;
/**
* Class SettingsControllerFactory
* @package JhFlexiTime\Controller\Factory
* @author Aydin Hassan <[email protected]>
*/
class SettingsControllerFactory implements FactoryInterface
{
* @param ServiceLocatorInterface $serviceLocator
* @return SettingsController
public function createService(ServiceLocatorInterface $serviceLocator)
//get parent locator
$serviceLocator = $serviceLocator->getServiceLocator();
return new SettingsController(
$serviceLocator->get('BookingOptions')
);
}