I cannot compile Magento 2 with the product downloads module enabled. I get the following error:
Errors during compilation:
Sebwite\ProductDownloads\Model\Adminhtml\Download\Observer
Incorrect dependency in class Sebwite\ProductDownloads\Model\Adminhtml\Download\Observer in /var/www/vendor/sebwite/magento2-product-downloads/Model/Adminhtml/Download/Observer.php \Magento\Framework\ObjectManagerInterface already exists in context object
Sebwite\ProductDownloads\Block\Adminhtml\Product\Edit\Tab\Download
Incorrect dependency in class Sebwite\ProductDownloads\Block\Adminhtml\Product\Edit\Tab\Download in /var/www/vendor/sebwite/magento2-product-downloads/Block/Adminhtml/Product/Edit/Tab/Download.php \Magento\Framework\UrlInterface already exists in context object
\Magento\Framework\App\Config\ScopeConfigInterface already exists in context object
Total Errors Count: 2
Hey,
I cannot compile Magento 2 with the product downloads module enabled. I get the following error:
This seems to have to do with the constructor parameters being already provided by the context itself (see http://magento-quickies.alanstorm.com/post/138686669515/quick-note-on-already-exists-in-context-object).