magefan / module-plugin-sortorder-example
此包最新版本(2.0.0)没有可用的许可证信息。
Magefan_PluginSortOrderExample
2.0.0
2021-11-15 13:46 UTC
README
安装
composer require magefan/module-plugin-sortorder-example
bin/magento setup:upgrade --keep-generated
bin/magento setup:di:compile
如何测试?
访问url
http://[mydomain.com]/pluginsortorderexample/pluginsortorder/example
你应该看到
-PluginA::beforeDispatch
---PluginA::aroundDispatch // before executing callable
-----PluginB::beforeDispatch
-------PluginB::aroundDispatch // before executing callable
---------PluginC::beforeDispatch
-----------PluginC::aroundDispatch // before executing callable
-------------Action::dispatch()
-----------PluginC::aroundDispatch // after executing callable
---------PluginC::afterDispatch
-------PluginB::aroundDispatch // after executing callable
-----PluginB::afterDispatch
---PluginA::aroundDispatch // after executing callable
-PluginA::afterDispatch
了解更多关于Magento Magento 2 Plugin Sort Order的信息。