From ee68561baeee42d3edbd8ac0870654e4001021b1 Mon Sep 17 00:00:00 2001 From: magdev Date: Sun, 3 May 2026 18:43:11 +0200 Subject: [PATCH] bridge: restore autoconfigure inside the when@dev maker block MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The previous fix (c78d471) moved the maker qml_path injection into when@dev: but didn't repeat _defaults inside it. when@ opens a fresh services block with no inheritance, so the explicit Maker definitions lost autowire/autoconfigure — and with autoconfigure off, maker-bundle's `maker.command` tag was never applied. Symptom in CI: `make:bridge:resource` silently disappears from `bin/console list` while `make:bridge:command` (registered by the glob, no override) keeps working. Snapshot test failed with "Command 'make:bridge:resource' is not defined". Fix: add _defaults inside the when@dev block. Snapshot test passes locally; prod cache:clear in --no-dev still compiles clean. Co-Authored-By: Claude Opus 4.7 (1M context) --- framework/php/config/services.yaml | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/framework/php/config/services.yaml b/framework/php/config/services.yaml index d387388..b8aabae 100644 --- a/framework/php/config/services.yaml +++ b/framework/php/config/services.yaml @@ -23,6 +23,17 @@ services: # `when@dev:` so prod builds never touch these definitions. when@dev: services: + # _defaults must be repeated here — `when@` opens a fresh + # services block, so the top-level autowire/autoconfigure don't + # carry over. Without autoconfigure the explicit definitions + # below would lose maker-bundle's `maker.command` tag, and + # `make:bridge:resource` would silently disappear from the + # console while `make:bridge:command` (registered by the glob, + # no override) keeps working. + _defaults: + autowire: true + autoconfigure: true + PhpQml\Bridge\Maker\BridgeResourceMaker: arguments: $qmlPath: '%bridge.qml_path%'