2026-05-02 01:05:19 +02:00
|
|
|
services:
|
|
|
|
|
_defaults:
|
|
|
|
|
autowire: true
|
|
|
|
|
autoconfigure: true
|
|
|
|
|
|
|
|
|
|
PhpQml\Bridge\:
|
|
|
|
|
resource: '../src/'
|
|
|
|
|
exclude:
|
|
|
|
|
- '../src/BridgeBundle.php'
|
|
|
|
|
|
|
|
|
|
PhpQml\Bridge\SessionAuthenticator:
|
|
|
|
|
arguments:
|
|
|
|
|
$expectedToken: '%env(default::BRIDGE_TOKEN)%'
|
2026-05-03 16:31:54 +02:00
|
|
|
|
2026-05-03 16:48:51 +02:00
|
|
|
# Maker classes extend symfony/maker-bundle's AbstractMaker, which is a
|
|
|
|
|
# require-dev dependency. In `composer install --no-dev` builds (the
|
|
|
|
|
# staging-symfony tree the AppImage is assembled from) AbstractMaker is
|
|
|
|
|
# absent: PHP fails to autoload BridgeResourceMaker etc., so the glob
|
|
|
|
|
# above silently drops them — that's fine. But a top-level explicit
|
|
|
|
|
# `services.PhpQml\Bridge\Maker\BridgeResourceMaker:` block forces
|
|
|
|
|
# ResolveClassPass to load the class regardless of dev/prod, which then
|
|
|
|
|
# crashes the prod container compile. Scope the qml_path injection to
|
|
|
|
|
# `when@dev:` so prod builds never touch these definitions.
|
|
|
|
|
when@dev:
|
|
|
|
|
services:
|
2026-05-03 18:43:11 +02:00
|
|
|
# _defaults must be repeated here — `when@<env>` 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
|
|
|
|
|
|
2026-05-03 16:48:51 +02:00
|
|
|
PhpQml\Bridge\Maker\BridgeResourceMaker:
|
|
|
|
|
arguments:
|
|
|
|
|
$qmlPath: '%bridge.qml_path%'
|
2026-05-03 16:31:54 +02:00
|
|
|
|
2026-05-03 16:48:51 +02:00
|
|
|
PhpQml\Bridge\Maker\BridgeWindowMaker:
|
|
|
|
|
arguments:
|
|
|
|
|
$qmlPath: '%bridge.qml_path%'
|
2026-05-03 20:25:26 +02:00
|
|
|
|
|
|
|
|
PhpQml\Bridge\Maker\BridgeEventMaker:
|
|
|
|
|
arguments:
|
|
|
|
|
$qmlPath: '%bridge.qml_path%'
|
2026-05-03 20:28:50 +02:00
|
|
|
|
|
|
|
|
PhpQml\Bridge\Maker\BridgeReadModelMaker:
|
|
|
|
|
arguments:
|
|
|
|
|
$qmlPath: '%bridge.qml_path%'
|