Are there any consequences for using a plugin class in Magento 2 that doesn't end in \Plugin
? The docs suggest that this class should end in the name \Plugin
.
The name of a plug-in’s class or its virtual type. Use the following schema when you specify this element: \Plugin.
However, there's several code plugins that don't follow this.
<!-- #File: app/code/Magento/Weee/etc/frontend/di.xml-->
<plugin name="weee-app-action-dispatchController-context-plugin"
type="Magento\Weee\Model\App\Action\ContextPlugin"/>
Are there any programmatic consequences to not using \Plugin
in your class name? Or is this just a convention -- similar to Magento 1's _Observer
class name convention?