You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Feature request: It would be great to be able to pass a class name into a command like dev:class:plugin:list and have it show which plugins are subscribed to methods on the class, or by specific methods, sorted by the sort order and indicating whether they are active or disabled.
Example descriptions:
$ n98-magerun2.phar | grep dev:class:plugin:list
dev:class:plugin:list Lists plugins for a class name or class and public function name
Example listing all plugins attached to a class:
$ n98-magerun2.phar dev:class:plugin:list Magento\Class\Name\Here
Plugins on: Magento\Class\Name\Here
+------------------------+------------------------+---------------------+--------+-------+--------+
| Plugin name | Plugin class | Method observed | Type | Order | Active |
+------------------------+------------------------+---------------------+--------+-------+--------+
| vendor-package-plugin | Vendor\Package\Plugin | somePublicMethod | around | 10 | 1 |
| another-package-plugin | Another\Package\Plugin | anotherPublicMethod | before | 50 | 0 |
| third-package-plugin | Third\Package\Plugin | anotherPublicMethod | after | 50 | 1 |
+------------------------+------------------------+---------------------+--------+-------+--------+
Example listing all plugins attached to a class's particular method:
$ n98-magerun2.phar dev:class:plugin:list Magento\Class\Name\Here::somePublicMethod()
Plugins on: Magento\Class\Name\Here::somePublicMethod()
+------------------------+------------------------+--------+-------+--------+
| Plugin name | Plugin class | Type | Order | Active |
+------------------------+------------------------+--------+-------+--------+
| vendor-package-plugin | Vendor\Package\Plugin | around | 10 | 1 |
| another-package-plugin | Another\Package\Plugin | before | 20 | 0 |
| third-package-plugin | Third\Package\Plugin | after | 30 | 1 |
+------------------------+------------------------+--------+-------+--------+
Optional extras:
A filter for active e.g. --active 1 or --active 0
A filter for type e.g. --type before, --type after or --type around
Possibly a filter for the method name instead of putting it onto the end of the class name as above
Would all be read from XML configuration.
The text was updated successfully, but these errors were encountered:
Feature request: It would be great to be able to pass a class name into a command like
dev:class:plugin:list
and have it show which plugins are subscribed to methods on the class, or by specific methods, sorted by the sort order and indicating whether they are active or disabled.Example descriptions:
Example listing all plugins attached to a class:
Example listing all plugins attached to a class's particular method:
Optional extras:
--active 1
or--active 0
--type before
,--type after
or--type around
Would all be read from XML configuration.
The text was updated successfully, but these errors were encountered: