| Conditions | 2 |
| Paths | 1 |
| Total Lines | 11 |
| Code Lines | 7 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 8 |
| CRAP Score | 2 |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 18 | 1 | public function __invoke(ContainerInterface $serviceLocator) |
|
| 19 | { |
||
| 20 | 1 | $config = $serviceLocator->get('Configuration'); |
|
| 21 | 1 | $serviceConfig = new Config( |
|
| 22 | 1 | isset($config['mt_mail']['template_manager']) ? $config['mt_mail']['template_manager']:[] |
|
| 23 | 1 | ); |
|
| 24 | 1 | $service = new TemplateManager($serviceLocator); |
|
| 25 | 1 | $serviceConfig->configureServiceManager($service); |
|
| 26 | |||
| 27 | 1 | return $service; |
|
| 28 | } |
||
| 29 | } |
||
| 30 |