| Conditions | 2 |
| Paths | 2 |
| Total Lines | 12 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 7 |
| CRAP Score | 2 |
| Changes | 0 | ||
| 1 | <?php |
||
| 16 | 15 | public function createService(ServiceLocatorInterface $serviceLocator) |
|
| 17 | { |
||
| 18 | 15 | $templatesPathStack = array(); |
|
| 19 | |||
| 20 | 15 | $config = $serviceLocator->get('Config'); |
|
| 21 | |||
| 22 | 15 | if (isset($config['view_manager']['template_path_stack'])) { |
|
| 23 | 15 | $templatesPathStack = $config['view_manager']['template_path_stack']; |
|
| 24 | 15 | } |
|
| 25 | |||
| 26 | 15 | return new TemplateService($templatesPathStack); |
|
| 27 | } |
||
| 28 | } |
||
| 29 |