Skip to content

An installation without compiled DI metadata serves requests - #3

Merged
paales merged 2 commits into
mainfrom
runtime-loader-without-compiled-di
Sep 18, 2026
Merged

paales merged 2 commits into
mainfrom
runtime-loader-without-compiled-di

Conversation

@paales

@paales paales commented Sep 18, 2026

Copy link
Copy Markdown
Member

Written by 🤖:

AreaConfigLoader::load() included generated/metadata/<area>.php in every case. On an installation without setup:di:compile, as in developer mode, each web request failed:

include(.../generated/metadata/graphql.php): Failed to open stream: No such file or directory
in src/FastBoot/Model/ObjectManager/AreaConfigLoader.php on line 46

Reproduced on Mage-OS 3.4.0 in developer mode with GraphCommerce_FastBoot enabled: POST /graphql returns 500, and fastboot:prepare fails with the same error.

The loader now reads the di.xml files through Magento\Framework\App\ObjectManager\ConfigLoader, the runtime loader of Magento, when the area file or the global file is absent. With compiled metadata nothing changes. A unit test covers the fallback.

AreaConfigLoader included generated/metadata/<area>.php in every case. Without setup:di:compile, as in developer mode, every request failed on the missing file. The loader now hands such an installation to the runtime loader of Magento.
@paales
paales merged commit d49b45a into main Sep 18, 2026
6 checks passed
@paales
paales deleted the runtime-loader-without-compiled-di branch September 18, 2026 07:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant