Commit d240703
committed
bug #1131 [AI Bundle] Make expression_language service optional (camilleislasse)
This PR was merged into the main branch.
Discussion
----------
[AI Bundle] Make expression_language service optional
| Q | A
| ------------- | ---
| Bug fix? | yes
| New feature? | no
| Docs? | no
| Issues | n/a
| License | MIT
The `ai.platform.template_renderer.expression` service was configured to depend on `expression_language` without `>nullOnInvalid()`.
This causes a container build failure when:
1. The `ExpressionLanguage` class exists (installed as a transitive dependency)
2. But the `expression_language` service is not registered in the application
**Error:**
```The service "ai.platform.template_renderer.expression" has a dependency on a non-existent service "expression_language"```
**Fix:**
Add `->nullOnInvalid()` to make the service optional, consistent with other similar usages in the same file (e.g.,`ai.security.is_granted_attribute_listener` at line 203)
Commits
-------
078c9c3 [AI Bundle] Make expression_language service optional1 file changed
+1
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
126 | 126 | | |
127 | 127 | | |
128 | 128 | | |
129 | | - | |
| 129 | + | |
130 | 130 | | |
131 | 131 | | |
132 | 132 | | |
| |||
0 commit comments