magefan/module-plugin-sortorder-example

此包最新版本(2.0.0)没有可用的许可证信息。

Magefan_PluginSortOrderExample

安装: 5

依赖: 0

建议: 0

安全: 0

星标: 4

关注者: 2

分支: 0

公开问题: 0

类型:magento2-module

2.0.0 2021-11-15 13:46 UTC

This package is auto-updated.

Last update: 2024-09-15 20:30: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的信息。