Magento 2.2 / 2.3 bug: «setup:di:compile» does not produce some interceptors on Windows (and my fix)

code-generation
compilation
bug
windows
bug-fix
interceptor
(Dmitry Fedyuk) #1

The problem method is Magento\Setup\Module\Di\Code\Reader\ClassesScanner::getList().

How to fix:

Locate the line:

Replace it with the following one:

$realPath = str_replace('\\', '/', realpath($path));
0 Likes