feature symfony/symfony#53971 Cast env vars to null or bool when referencing them using #[Autowire(env: '...')] depending on the signature of the corresponding parameter (@ruudk)
feature symfony/symfony#54016 [DependencyInjection] Add #[AutowireMethodOf] attribute to autowire a method of a service as a callable (@nicolas-grekas)
Add CheckAliasValidityPass to check service compatibility with aliased interface
Add argument $prepend to ContainerConfigurator::extension() to prepend the configuration instead of appending it
Have ServiceLocator implement ServiceCollectionInterface
Add #[Lazy] attribute as shortcut for #[Autowire(lazy: [bool|string])] and #[Autoconfigure(lazy: [bool|string])]
Add #[AutowireMethodOf] attribute to autowire a method of a service as a callable
Make ContainerBuilder::registerAttributeForAutoconfiguration() propagate to attribute classes that extend the registered class
Add argument $prepend to FileLoader::construct() to prepend loaded configuration instead of appending it
[BC BREAK] When used in the prependExtension() method, the ContainerConfigurator::import() method now prepends the configuration instead of appending it
Cast env vars to null or bool when referencing them using #[Autowire(env: '...')] depending on the signature of the corresponding parameter
Add #[AutowireInline] attribute to allow service definition at the class level
Add StaticEnvVarLoader
7.0
Remove #[MapDecorated], use #[AutowireDecorated] instead
Remove ProxyHelper, use Symfony\Component\VarExporter\ProxyHelper instead
Remove ReferenceSetArgumentTrait
Remove support of @required annotation, use the Symfony\Contracts\Service\Attribute\Required attribute instead
Require explicit argument when calling ContainerAwareTrait::setContainer()
Remove PhpDumper options inline_factories_parameter and inline_class_loader_parameter, use options inline_factories and inline_class_loader instead
Parameter names of ParameterBag cannot be numerics
Remove ContainerAwareInterface and ContainerAwareTrait, use dependency injection instead
Add argument $id and $asGhostObject to DumperInterface::isProxyCandidate() and getProxyCode()
Add argument $source to FileLoader::registerClasses()
6.4
Allow using #[Target] with no arguments to state that a parameter must match a named autowiring alias
Deprecate ContainerAwareInterface and ContainerAwareTrait, use dependency injection instead
Add defined env var processor that returns true for defined and neither null nor empty env vars
Add #[AutowireLocator] and #[AutowireIterator] attributes
Add urlencode env var processor that url encodes a string value
6.3
Add options inline_factories and inline_class_loader to PhpDumper::dump()
Deprecate PhpDumper options inline_factories_parameter and inline_class_loader_parameter
Add RemoveBuildParametersPass, which removes parameters starting with a dot during compilation
Add support for nesting autowiring-related attributes into #[Autowire(...)]
Deprecate undefined and numeric keys with service_locator config
Fail if Target attribute does not exist during compilation
Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.
Dependabot commands and options
You can trigger Dependabot actions by commenting on this PR:
- `@dependabot rebase` will rebase this PR
- `@dependabot recreate` will recreate this PR, overwriting any edits that have been made to it
- `@dependabot merge` will merge this PR after your CI passes on it
- `@dependabot squash and merge` will squash and merge this PR after your CI passes on it
- `@dependabot cancel merge` will cancel a previously requested merge and block automerging
- `@dependabot reopen` will reopen this PR if it is closed
- `@dependabot close` will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually
- `@dependabot show ignore conditions` will show all of the ignore conditions of the specified dependency
- `@dependabot ignore this major version` will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)
- `@dependabot ignore this minor version` will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)
- `@dependabot ignore this dependency` will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)
Bumps symfony/dependency-injection from 6.4.7 to 7.1.1.
Release notes
Sourced from symfony/dependency-injection's releases.
... (truncated)
Changelog
Sourced from symfony/dependency-injection's changelog.
... (truncated)
Commits
77c636d
Merge branch '7.0' into 7.1cd4f777
Merge branch '6.4' into 7.0d3b6181
Merge branch '5.4' into 6.4408b333
Revert "minor #54653 Auto-close PRs on subtree-splits (nicolas-grekas)"77f3166
Add simple tagging to phpdoc for Autoconfigure attribute584b86b
bug #54977 [DependencyInjection] Fix prepending strategy for php config loade...148c41a
Fix singular phpdoc2db7df8
Fix prepending strategy for php config loader68b1112
[DependencyInjection] Process PHP configs using the ContainerConfigurator581fde0
bug #54908 [DependencyInjection] Fix "Cannot replace arguments" errors caused...Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting
@dependabot rebase
.Dependabot commands and options
You can trigger Dependabot actions by commenting on this PR: - `@dependabot rebase` will rebase this PR - `@dependabot recreate` will recreate this PR, overwriting any edits that have been made to it - `@dependabot merge` will merge this PR after your CI passes on it - `@dependabot squash and merge` will squash and merge this PR after your CI passes on it - `@dependabot cancel merge` will cancel a previously requested merge and block automerging - `@dependabot reopen` will reopen this PR if it is closed - `@dependabot close` will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually - `@dependabot show