vpietri / magento2-developer-quickdevbar

Developer Toolbar for Magento2
549 stars 127 forks source link

Add support for Magento 2.4.5-p9 and all of the versions which doesn't supports mixed types #80

Closed djalex-ua closed 15 hours ago

djalex-ua commented 3 days ago

Since there is a mixed type, when you use developer mode Magento doesn't generates Interceptors for a block : image

and you could see an error :

2 exception(s):
Exception #0 (Magento\Framework\Exception\LocalizedException): Invalid block type: ADM\QuickDevBar\Block\Tab\Wrapper
Exception #1 (ReflectionException): Class "ADM\QuickDevBar\Block\Tab\Wrapper\Interceptor" does not exist

Exception #0 (Magento\Framework\Exception\LocalizedException): Invalid block type: ADM\QuickDevBar\Block\Tab\Wrapper
<pre>#1 Magento\Framework\View\Layout\Generator\Block->createBlock() called at [vendor/magento/framework/View/Layout/Generator/Block.php:229]
#2 Magento\Framework\View\Layout\Generator\Block->generateBlock() called at [vendor/magento/framework/View/Layout/Generator/Block.php:134]

which requires extra setup:di:compile and only after that it works fine. So, could you please accept this merge request and improve - supporting for other Magento versions?

djalex-ua commented 20 hours ago

@vpietri could you please take a look?