mobilpay / Magento

MAGENTO implementation - CARD Processing @mobilPay
11 stars 15 forks source link

Incorrect dependency #3

Closed filipac closed 6 years ago

filipac commented 7 years ago

Those two dependencies are not needed because they exist in the current scope. If you to here Magento/Framework/View/Element/AbstractBlock.php and Magento/Framework/View/Element/Template.php you can see that those exist already. If you set the magento mode to production and turn on compilation, those extra dependencies result in an error:


        Incorrect dependency in class Mobilpay\Credit\Block\Redirect in public_html/app/code/Mobilpay/Credit/Block/Redirect.php
\Magento\Store\Model\StoreManagerInterface already exists in context object
\Magento\Framework\App\Config\ScopeConfigInterface already exists in context object```