Magento 2:获取所有插件(拦截器)和首选项的列表


Answers:


9

要获取所有可用的插件列表:

vendor/magento/framework/Interception/PluginList/PluginList.php 寻找方法merge

public function merge(array $config)
{
   // default code
    echo "<pre>";
    print_r($this->_data);
    die();  
}

要获取所有可用的首选项列表:

vendor/magento/framework/ObjectManager/Config/Mapper/Dom.php 查找方法 convert

public function convert($config)
{
// default code
   echo "<pre>";
   print_r($output);
   die();
}
By using our site, you acknowledge that you have read and understand our Cookie Policy and Privacy Policy.
Licensed under cc by-sa 3.0 with attribution required.