| Conditions | 3 |
| Paths | 4 |
| Total Lines | 17 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 16 | public function createService(ServiceLocatorInterface $serviceLocator) { |
||
| 17 | $templatesPathStack = array(); |
||
| 18 | $AssetsManagerPaths = array(); |
||
| 19 | |||
| 20 | $gkSmarty = $serviceLocator->get('GkSmartyRenderer'); |
||
| 21 | $smarty = $gkSmarty->getEngine(); |
||
| 22 | $config = $serviceLocator->get('Config'); |
||
| 23 | |||
| 24 | if(isset($config['view_manager']['template_path_stack'])) { |
||
| 25 | $templatesPathStack = $config['view_manager']['template_path_stack']; |
||
| 26 | } |
||
| 27 | |||
| 28 | if(isset($config['asset_manager']['resolver_configs']['paths'])) { |
||
| 29 | $AssetsManagerPaths = $config['asset_manager']['resolver_configs']['paths']; |
||
| 30 | } |
||
| 31 | return new PageBreakpointService($smarty, $templatesPathStack, $AssetsManagerPaths); |
||
| 32 | } |
||
| 33 | } |
||
| 34 |