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\PageBreakpointService;
class PageBreakpointServiceFactory implements FactoryInterface {
/**
* {@inheritDoc}
*
* @return PageBreakpointService
*/
public function createService(ServiceLocatorInterface $serviceLocator) {
$templatesPathStack = array();
$AssetsManagerPaths = array();
$gkSmarty = $serviceLocator->get('GkSmartyRenderer');
$smarty = $gkSmarty->getEngine();
$config = $serviceLocator->get('Config');
if(isset($config['view_manager']['template_path_stack'])) {
$templatesPathStack = $config['view_manager']['template_path_stack'];
}
if(isset($config['asset_manager']['resolver_configs']['paths'])) {
$AssetsManagerPaths = $config['asset_manager']['resolver_configs']['paths'];
return new PageBreakpointService($smarty, $templatesPathStack, $AssetsManagerPaths);