| Conditions | 1 |
| Paths | 1 |
| Total Lines | 13 |
| Code Lines | 9 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 34 | public function __invoke( ContainerInterface $container, $requestedName, array $options = null ) |
||
| 35 | { |
||
| 36 | $pluginManager = $container->get('ControllerPluginManager'); |
||
| 37 | $flashMessenger = $pluginManager->get('FlashMessenger'); |
||
| 38 | $translator = $container->get('translator'); |
||
| 39 | |||
| 40 | $notificationListener = $container->get('Core/Listener/Notification'); |
||
| 41 | $notification = new Notification($flashMessenger); |
||
| 42 | $notification->setListener($notificationListener); |
||
| 43 | $notification->setTranslator($translator); |
||
| 44 | |||
| 45 | return $notification; |
||
| 46 | } |
||
| 47 | } |
||
| 48 |