@@ -8,7 +8,7 @@ |
||
| 8 | 8 | { |
| 9 | 9 | public function __invoke(ContainerInterface $container) |
| 10 | 10 | { |
| 11 | - $recaptchaConfig = $container->get('config')['recaptcha']; |
|
| 12 | - return new ReCaptcha($recaptchaConfig['private_key']); |
|
| 11 | + $recaptchaConfig = $container->get('config')[ 'recaptcha' ]; |
|
| 12 | + return new ReCaptcha($recaptchaConfig[ 'private_key' ]); |
|
| 13 | 13 | } |
| 14 | 14 | } |
@@ -10,8 +10,8 @@ |
||
| 10 | 10 | $mailConfig = $container->get('config')['mail']; |
| 11 | 11 | $smtp = $mailConfig['smtp']; |
| 12 | 12 | $transport = \Swift_SmtpTransport::newInstance($smtp['server'], $smtp['port'], $smtp['ssl']) |
| 13 | - ->setUsername($smtp['username']) |
|
| 14 | - ->setPassword($smtp['password']); |
|
| 13 | + ->setUsername($smtp['username']) |
|
| 14 | + ->setPassword($smtp['password']); |
|
| 15 | 15 | return new \Swift_Mailer($transport); |
| 16 | 16 | } |
| 17 | 17 | } |
@@ -7,11 +7,11 @@ |
||
| 7 | 7 | { |
| 8 | 8 | public function __invoke(ContainerInterface $container) |
| 9 | 9 | { |
| 10 | - $mailConfig = $container->get('config')['mail']; |
|
| 11 | - $smtp = $mailConfig['smtp']; |
|
| 12 | - $transport = \Swift_SmtpTransport::newInstance($smtp['server'], $smtp['port'], $smtp['ssl']) |
|
| 13 | - ->setUsername($smtp['username']) |
|
| 14 | - ->setPassword($smtp['password']); |
|
| 10 | + $mailConfig = $container->get('config')[ 'mail' ]; |
|
| 11 | + $smtp = $mailConfig[ 'smtp' ]; |
|
| 12 | + $transport = \Swift_SmtpTransport::newInstance($smtp[ 'server' ], $smtp[ 'port' ], $smtp[ 'ssl' ]) |
|
| 13 | + ->setUsername($smtp[ 'username' ]) |
|
| 14 | + ->setPassword($smtp[ 'password' ]); |
|
| 15 | 15 | return new \Swift_Mailer($transport); |
| 16 | 16 | } |
| 17 | 17 | } |