for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
/**
* YAWIK
*
* @copyright (c) 2013 - 2016 Cross Solution (http://cross-solution.de)
* @license MIT
*/
namespace Cv\Factory\Controller;
use Cv\Controller\IndexController;
use Zend\ServiceManager\FactoryInterface;
use Zend\ServiceManager\ServiceLocatorInterface;
class IndexControllerFactory implements FactoryInterface
{
public function createService(ServiceLocatorInterface $serviceLocator)
/** @var ControllerManager $serviceLocator */
$serviceLocator = $serviceLocator->getServiceLocator();
$searchForm = $serviceLocator->get('forms')
->get('Cv/SearchForm');
return new IndexController($searchForm);
}