@@ -31,17 +31,17 @@ |
||
| 31 | 31 | * @param array|null $options |
| 32 | 32 | * @return Notification |
| 33 | 33 | */ |
| 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'); |
|
| 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 | 39 | |
| 40 | - $notificationListener = $container->get('Core/Listener/Notification'); |
|
| 41 | - $notification = new Notification($flashMessenger); |
|
| 42 | - $notification->setListener($notificationListener); |
|
| 43 | - $notification->setTranslator($translator); |
|
| 40 | + $notificationListener = $container->get('Core/Listener/Notification'); |
|
| 41 | + $notification = new Notification($flashMessenger); |
|
| 42 | + $notification->setListener($notificationListener); |
|
| 43 | + $notification->setTranslator($translator); |
|
| 44 | 44 | |
| 45 | - return $notification; |
|
| 46 | - } |
|
| 45 | + return $notification; |
|
| 46 | + } |
|
| 47 | 47 | } |
@@ -74,7 +74,7 @@ discard block |
||
| 74 | 74 | public function trigger($event, $target = null) |
| 75 | 75 | { |
| 76 | 76 | if (empty($this->_template) || !is_string($this->_template)) { |
| 77 | - throw new \InvalidArgumentException('ContentCollector must have a template-name'); |
|
| 77 | + throw new \InvalidArgumentException('ContentCollector must have a template-name'); |
|
| 78 | 78 | } |
| 79 | 79 | |
| 80 | 80 | $responseCollection = $this->getController()->getEventManager()->trigger($event, $target); |
@@ -82,9 +82,9 @@ discard block |
||
| 82 | 82 | $viewModel->setTemplate($this->_template); |
| 83 | 83 | foreach ($responseCollection as $i => $response) { |
| 84 | 84 | if (is_string($response)) { |
| 85 | - $template = $response; |
|
| 86 | - $response = new ViewModel(array('target' => $target)); |
|
| 87 | - $response->setTemplate($template); |
|
| 85 | + $template = $response; |
|
| 86 | + $response = new ViewModel(array('target' => $target)); |
|
| 87 | + $response->setTemplate($template); |
|
| 88 | 88 | } |
| 89 | 89 | $viewModel->addChild($response, $this->_captureTo . $i); |
| 90 | 90 | } |
@@ -225,7 +225,7 @@ discard block |
||
| 225 | 225 | } elseif (isset($this->config['templateHalf'])) { |
| 226 | 226 | $template = $this->config['templateHalf']; |
| 227 | 227 | } else { |
| 228 | - throw new \InvalidArgumentException('No template provided for Mail.'); |
|
| 228 | + throw new \InvalidArgumentException('No template provided for Mail.'); |
|
| 229 | 229 | } |
| 230 | 230 | return $template; |
| 231 | 231 | } |
@@ -276,11 +276,11 @@ discard block |
||
| 276 | 276 | return $erg; |
| 277 | 277 | } |
| 278 | 278 | |
| 279 | - /** |
|
| 280 | - * @param ContainerInterface $container |
|
| 281 | - * |
|
| 282 | - * @return static |
|
| 283 | - */ |
|
| 279 | + /** |
|
| 280 | + * @param ContainerInterface $container |
|
| 281 | + * |
|
| 282 | + * @return static |
|
| 283 | + */ |
|
| 284 | 284 | public static function factory(ContainerInterface $container) |
| 285 | 285 | { |
| 286 | 286 | //@TODO: need to define transport to be use during ::send() |
@@ -13,11 +13,11 @@ |
||
| 13 | 13 | */ |
| 14 | 14 | class ConfigFactory implements FactoryInterface |
| 15 | 15 | { |
| 16 | - public function __invoke( ContainerInterface $container, $requestedName, array $options = null ) |
|
| 17 | - { |
|
| 18 | - $config = $container->get('Config'); |
|
| 19 | - $plugin = new Config($config); |
|
| 16 | + public function __invoke( ContainerInterface $container, $requestedName, array $options = null ) |
|
| 17 | + { |
|
| 18 | + $config = $container->get('Config'); |
|
| 19 | + $plugin = new Config($config); |
|
| 20 | 20 | |
| 21 | - return $plugin; |
|
| 22 | - } |
|
| 21 | + return $plugin; |
|
| 22 | + } |
|
| 23 | 23 | } |
@@ -87,11 +87,11 @@ |
||
| 87 | 87 | return $sendMail ? $this->send($mail) : $mail; |
| 88 | 88 | } |
| 89 | 89 | |
| 90 | - /** |
|
| 91 | - * @param ContainerInterface $container |
|
| 92 | - * |
|
| 93 | - * @return Mailer |
|
| 94 | - */ |
|
| 90 | + /** |
|
| 91 | + * @param ContainerInterface $container |
|
| 92 | + * |
|
| 93 | + * @return Mailer |
|
| 94 | + */ |
|
| 95 | 95 | public static function factory(ContainerInterface $container) |
| 96 | 96 | { |
| 97 | 97 | return new static($container->get('Core/MailService')); |