for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace Columnis\Service\Factory;
use Zend\ServiceManager\FactoryInterface;
use Zend\ServiceManager\ServiceLocatorInterface;
use Columnis\Service\TemplateService;
class TemplateServiceFactory implements FactoryInterface
{
/**
* {@inheritDoc}
*
* @return TemplateService
*/
public function createService(ServiceLocatorInterface $serviceLocator)
$templatesPathStack = array();
$config = $serviceLocator->get('Config');
if (isset($config['view_manager']['template_path_stack'])) {
$templatesPathStack = $config['view_manager']['template_path_stack'];
}
return new TemplateService($templatesPathStack);