You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This PR was squashed before being merged into the 6.3 branch.
Discussion
----------
[DependencyInjection][HttpKernel] Introduce build parameters
| Q | A
| ------------- | ---
| Branch? | 6.3
| Bug fix? | no
| New feature? | yes
| Deprecations? | yes
| Tickets | ~
| License | MIT
| Doc PR | TODO
Alternative implementation of #47608.
Add a convention for parameters named with a starting dot to be available at compile-time only:
```php
$containerBuilder->setParameter('foo'); // nothing changes
$containerBuilder->setParameter('.bar'); // will not be dumped
```
Calling `$container->getParameter('.bar')` on a compiled container will throw.
Commits
-------
c75dbca [DependencyInjection][HttpKernel] Introduce build parameters
Copy file name to clipboardExpand all lines: UPGRADE-6.3.md
+10Lines changed: 10 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -1,6 +1,16 @@
1
1
UPGRADE FROM 6.2 to 6.3
2
2
=======================
3
3
4
+
DependencyInjection
5
+
-------------------
6
+
7
+
* Deprecate `PhpDumper` options `inline_factories_parameter` and `inline_class_loader_parameter`, use `inline_factories` and `inline_class_loader` instead
8
+
9
+
HttpKernel
10
+
----------
11
+
12
+
* Deprecate parameters `container.dumper.inline_factories` and `container.dumper.inline_class_loader`, use `.container.dumper.inline_factories` and `.container.dumper.inline_class_loader` instead
trigger_deprecation('symfony/dependency-injection', '6.3', 'Option "inline_factories_parameter" passed to "%s()" is deprecated, use option "inline_factories" instead.', __METHOD__);
trigger_deprecation('symfony/dependency-injection', '6.3', 'Option "inline_factories_parameter" passed to "%s()" is deprecated, use option "inline_factories" instead.', __METHOD__);
trigger_deprecation('symfony/dependency-injection', '6.3', 'Option "inline_class_loader_parameter" passed to "%s()" is deprecated, use option "inline_class_loader" instead.', __METHOD__);
trigger_deprecation('symfony/dependency-injection', '6.3', 'Option "inline_class_loader_parameter" passed to "%s()" is deprecated, use option "inline_class_loader" instead.', __METHOD__);
0 commit comments