magento-coding-standard
magento-coding-standard copied to clipboard
No plugins in `\Magento\Framework` namespace
Rule
Based on https://github.com/magento/magento2/issues/27962: \Magento\Framework cannot have plugins
Reason
Implementation
@lbajsarowicz I also found 2 plugins in the commerce edition, and they are exactly the same
vendor/magento/module-scalable-checkout/etc/di.xml
<type name="Magento\Framework\Model\ResourceModel\Db\ObjectRelationProcessor">
<plugin name="object_constraints_resolver" type="Magento\Framework\ForeignKey\ObjectRelationProcessor\Plugin" />
</type>
vendor/magento/module-scalable-oms/etc/di.xml
<type name="Magento\Framework\Model\ResourceModel\Db\ObjectRelationProcessor">
<plugin name="object_constraints_resolver" type="Magento\Framework\ForeignKey\ObjectRelationProcessor\Plugin" />
</type>