Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

\Psr\Log\LoggerInterface already exists in context object #7

Closed
lazyguru opened this issue Apr 1, 2016 · 0 comments
Closed

\Psr\Log\LoggerInterface already exists in context object #7

lazyguru opened this issue Apr 1, 2016 · 0 comments

Comments

@lazyguru
Copy link

lazyguru commented Apr 1, 2016

setup:di:compile-multi-tenant fails due to:

Incorrect dependency in class Ebizmarts\Mandrill\Helper\Data in vendor/ebizmarts/magento2-mandrill/Helper/Data.php \Psr\Log\LoggerInterface already exists in context object

This line is the cause: https://github.com/ebizmarts/magento2-mandrill/blob/master/Helper/Data.php#L31

Instead of requesting that LoggerInterface be injected you should get it from context eg:

Remove lines 27 & 31 and change line 34 to:
$this->_logger = $context->getLogger();

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant