magefan/module-plugin-sortorder-example

There is no license information available for the latest version (2.0.0) of this package.

Magefan_PluginSortOrderExample

2.0.0 2021-11-15 13:46 UTC

This package is auto-updated.

Last update: 2024-04-15 19:39:20 UTC


README

Installation

composer require magefan/module-plugin-sortorder-example
bin/magento setup:upgrade --keep-generated
bin/magento setup:di:compile

How to test?

Visit url:

http://[mydomain.com]/pluginsortorderexample/pluginsortorder/example

You sould see

-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

Read more about Magento Magento 2 Plugin Sort Order.