diff --git a/setup/src/Magento/Setup/Module/Di/Code/Reader/ClassesScanner.php b/setup/src/Magento/Setup/Module/Di/Code/Reader/ClassesScanner.php index ae957ad..72ae6ac 100644 --- a/setup/src/Magento/Setup/Module/Di/Code/Reader/ClassesScanner.php +++ b/setup/src/Magento/Setup/Module/Di/Code/Reader/ClassesScanner.php @@ -67,7 +67,11 @@ public function addExcludePatterns(array $excludePatterns) public function getList($path) { // phpcs:ignore - $realPath = realpath($path); + # 2024-02-24 Dmitrii Fediuk https://upwork.com/fl/mage2pro + # 1) "Adapt Magento to Windows": https://github.com/mage2pro/pwa-studio-2024-02-24-backend/issues/1 + # 2) "How to fix intereceptors generation on `bin/magento setup:di:compile` in Magento ≥ 2.2 in Windows?": + # https://mage2.pro/t/4702 + $realPath = str_replace(DIRECTORY_SEPARATOR, '/', realpath($path)); $isGeneration = strpos($realPath, $this->generationDirectory) === 0; // Generation folders should not have their results cached since they may actually change during compile