Skip to content

Commit

Permalink
Use 'Log/Core/Mail' service instead of obsolete 'ErrorLogger'
Browse files Browse the repository at this point in the history
  • Loading branch information
fedys committed Sep 21, 2017
1 parent c659f4e commit 1467fd6
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/JobsByMail/Factory/Service/MailerFactory.php
Expand Up @@ -29,7 +29,7 @@ public function __invoke(ContainerInterface $container, $requestedName, array $o
$hash = $container->get(Hash::class);
$moduleOptions = $container->get('Core/Options');
$organizationImageCache = $container->get('Organizations\ImageFileCache\Manager');
$log = $container->get('ErrorLogger');
$log = $container->get('Log/Core/Mail');

return new Mailer($mailService, $hash, $moduleOptions, $organizationImageCache, $log);
}
Expand Down
2 changes: 1 addition & 1 deletion test/JobsByMailTest/Factory/Service/MailerFactoryTest.php
Expand Up @@ -54,7 +54,7 @@ public function testInvoke()
[Hash::class, new Hash()],
['Core/Options', $coreOptions],
['Organizations\ImageFileCache\Manager', $organizationImageCache],
['ErrorLogger', $errorLogger],
['Log/Core/Mail', $errorLogger],
]));


Expand Down

0 comments on commit 1467fd6

Please sign in to comment.