NewYour coding agent can read the release notes before it upgrades.Set up the MCP server →
Packagist, #162 most downloaded on Packagist
Allows you to standardize and centralize the way objects are constructed in your application
Latest stable
v8.1.11
Last release 7 days ago
13 Nov 2026
Ships on a steady schedule
a new release about every 2 weeks
No release notes found
nothing matched a version
Nothing withdrawn
no release was ever pulled
15 years old
784 releases · first in 2011
Drag across the ruler to compare, or tap a release to open it.
bug #63160 Fix alias chain inversion when deprecated alias points to decorated service (@amateescu)
Changelog (https://github.com/symfony/dependency-injection/compare/v6.4.31...v6.4.32)
bug symfony/symfony#62843 [DependencyInjection] Fix referencing build-time array parameters (@nicolas-grekas)
Changelog (https://github.com/symfony/dependency-injection/compare/v6.4.30...v6.4.31)
PhpDumper (@nicolas-grekas)Your coding agent can read these notes before it upgrades. Set up the MCP server →
bug symfony/symfony#62675 [DependencyInjection] Fix dealing with errored service definitions (@nicolas-grekas)
Changelog (https://github.com/symfony/dependency-injection/compare/v6.4.29...v6.4.30)
#[Autowire] attribute (@yoeunes)PhpFileLoader during recursive imports (@yoeunes)query_string env processor for URLs without query string (@yoeunes)CheckTypeDeclarationsPass (@yoeunes)TypedReference in PhpDumper (@yoeunes)LazyClosure (@nicolas-grekas)bug symfony/symfony#61727 Replace __sleep/wakeup() by __(un)serialize() for throwing and internal usages (@nicolas-grekas)
Changelog (https://github.com/symfony/dependency-injection/compare/v6.4.25...v6.4.26)
bug symfony/symfony#61402 Remove calls to deprecated methods of SplObjectStorage (@nicolas-grekas)
Changelog (https://github.com/symfony/dependency-injection/compare/v6.4.24...v6.4.25)
bug symfony/symfony#61276 [DependencyInjection] Escape parameters before resolving env placeholders (@MatTheCat)
Changelog (https://github.com/symfony/dependency-injection/compare/v6.4.23...v6.4.24)
@var phpdoc (@fabpot)bug symfony/symfony#60842 [DependencyInjection] Fix generating adapters of functional interfaces (@nicolas-grekas)
Changelog (https://github.com/symfony/dependency-injection/compare/v6.4.22...v6.4.23)
YamlDumper quote resolved env vars if necessary (@MatTheCat)bug symfony/symfony#60423 [DependencyInjection] Make DefinitionErrorExceptionPass consider IGNORE_ON_UNINITIALIZED_REFERENCE and RUNTIME_EXCEPTION_ON_
Changelog (https://github.com/symfony/dependency-injection/compare/v6.4.21...v6.4.22)
DefinitionErrorExceptionPass consider IGNORE_ON_UNINITIALIZED_REFERENCE and RUNTIME_EXCEPTION_ON_INVALID_REFERENCE the same (@MatTheCat)bug symfony/symfony#59965 [VarExporter] Fix support for hooks and asymmetric visibility (@nicolas-grekas)
Changelog (https://github.com/symfony/dependency-injection/compare/v6.4.19...v6.4.20)
bug symfony/symfony#59810 [DependencyInjection] Defer check for circular references instead of skipping them (@biozshock)
Changelog (https://github.com/symfony/dependency-injection/compare/v6.4.18...v6.4.19)
bug symfony/symfony#58822 [DependencyInjection] Fix checking for interfaces in ContainerBuilder::getReflectionClass() (@donquixote)
Changelog (https://github.com/symfony/dependency-injection/compare/v6.4.15...v6.4.16)
Changelog (https://github.com/symfony/dependency-injection/compare/v6.4.14...v6.4.15) * no significant changes
Changelog (https://github.com/symfony/dependency-injection/compare/v6.4.14...v6.4.15)
bug symfony/symfony#58618 [DependencyInjection] Fix linting factories implemented via __callStatic (@KevinVanSonsbeek)
Changelog (https://github.com/symfony/dependency-injection/compare/v6.4.12...v6.4.13)
parse_url() checks (@nicolas-grekas)XmlFileLoader not respecting when env for services (Bradley Zeggelaar)bug symfony/symfony#58240 [FrameworkBundle] Fix service reset between tests (@HypeMC)
Changelog (https://github.com/symfony/dependency-injection/compare/v6.4.11...v6.4.12)
bug symfony/symfony#58000 [DependencyInjection] Fix issue between decorator and service locator index (@lyrixx)
Changelog (https://github.com/symfony/dependency-injection/compare/v6.4.10...v6.4.11)
#[Autoconfigure] attributes (@alexandre-daubois)bug symfony/symfony#57832 [DependencyInjection] Do not try to load default method name on interface (@lyrixx)
Changelog (https://github.com/symfony/dependency-injection/compare/v6.4.9...v6.4.10)
bug symfony/symfony#57310 [DependencyInjection] Fix ternary in AutowireCallable attribute (@alamirault)
Changelog (https://github.com/symfony/dependency-injection/compare/v6.4.8...v6.4.9)
AutowireCallable attribute (@alamirault)Changelog (https://github.com/symfony/dependency-injection/compare/v6.4.7...v6.4.8) * no significant changes
Changelog (https://github.com/symfony/dependency-injection/compare/v6.4.7...v6.4.8)
Changelog (https://github.com/symfony/dependency-injection/compare/v6.4.6...v6.4.7) * no significant changes
Changelog (https://github.com/symfony/dependency-injection/compare/v6.4.6...v6.4.7)
bug symfony/symfony#54273 [DependencyInjection] fix XmlDumper when a tag contains also a 'name' property (@lyrixx)
Changelog (https://github.com/symfony/dependency-injection/compare/v6.4.5...v6.4.6)
bug symfony/symfony#54035 [DependencyInjection] Fix computing error messages involving service locators (@nicolas-grekas)
Changelog (https://github.com/symfony/dependency-injection/compare/v6.4.3...v6.4.4)
bug symfony/symfony#51559 [DependencyInjection] #[Autowire] attribute should have precedence over bindings (@HypeMC)
Changelog (https://github.com/symfony/dependency-injection/compare/v6.4.2...v6.4.3)
#[Autowire] attribute should have precedence over bindings (@HypeMC)parse_url() results (@alexandre-daubois)Changelog (https://github.com/symfony/dependency-injection/compare/v6.4.1...v6.4.2) * no significant changes
Changelog (https://github.com/symfony/dependency-injection/compare/v6.4.1...v6.4.2)
bug symfony/symfony#52836 [DependencyInjection] Fix parsing named autowiring aliases that contain underscores (@nicolas-grekas)
Changelog (https://github.com/symfony/dependency-injection/compare/v6.4.0...v6.4.1)
bug symfony/symfony#52780 [DependencyInjection] don't check parameter values if they are not set (@xabbuh)
Changelog (https://github.com/symfony/dependency-injection/compare/v6.4.0-RC2...v6.4.0)
#[Target] with no arguments to state that a parameter must match a named autowiring aliasContainerAwareInterface and ContainerAwareTrait, use dependency injection insteaddefined env var processor that returns true for defined and neither null nor empty env vars#[AutowireLocator] and #[AutowireIterator] attributesurlencode env var processor that url encodes a string valueChangelog (https://github.com/symfony/dependency-injection/compare/v6.4.0-BETA3...v6.4.0-RC1) * no significant changes
Changelog (https://github.com/symfony/dependency-injection/compare/v6.4.0-BETA3...v6.4.0-RC1)
Changelog (https://github.com/symfony/dependency-injection/compare/v6.4.0-BETA2...v6.4.0-BETA3) * no significant changes
Changelog (https://github.com/symfony/dependency-injection/compare/v6.4.0-BETA2...v6.4.0-BETA3)
Changelog (https://github.com/symfony/dependency-injection/compare/v6.4.0-BETA1...v6.4.0-BETA2) * no significant changes
Changelog (https://github.com/symfony/dependency-injection/compare/v6.4.0-BETA1...v6.4.0-BETA2)
feature symfony/symfony#51712 Deprecate Kernel::stripComments() (@alamirault)
Changelog (https://github.com/symfony/dependency-injection/compare/v6.3.6...v6.4.0-BETA1)
kernel.runtime_mode and kernel.runtime_mode.*, all set from env var APP_RUNTIME_MODE (@nicolas-grekas)#[AutowireIterator] attribute and improve #[AutowireLocator] (@nicolas-grekas, @kbond)Kernel::stripComments() (@alamirault)#[AutowireLocator] attribute (@kbond)defined prefix for env var processor (@GaryPEGEOT)ContainerAwareInterface, ContainerAwareTrait and ContainerAwareLoader (@alexandre-daubois)bug symfony/symfony#51559 [DependencyInjection] #[Autowire] attribute should have precedence over bindings (@HypeMC)
Changelog (https://github.com/symfony/dependency-injection/compare/v6.3.11...v6.3.12)
#[Autowire] attribute should have precedence over bindings (@HypeMC)parse_url() results (@alexandre-daubois)Changelog (https://github.com/symfony/dependency-injection/compare/v6.3.10...v6.3.11) * no significant changes
Changelog (https://github.com/symfony/dependency-injection/compare/v6.3.10...v6.3.11)
bug symfony/symfony#52808 [DependencyInjection] Fix dumping containers with null-referenced services (@nicolas-grekas)
Changelog (https://github.com/symfony/dependency-injection/compare/v6.3.9...v6.3.10)
Changelog (https://github.com/symfony/dependency-injection/compare/v6.3.7...v6.3.8) * no significant changes
Changelog (https://github.com/symfony/dependency-injection/compare/v6.3.7...v6.3.8)
bug symfony/symfony#51198 [DependencyInjection] Fix autocasting null env values to empty string with container.env_var_processors_locator (@fancyweb)
Changelog (https://github.com/symfony/dependency-injection/compare/v6.3.4...v6.3.5)
null env values to empty string with container.env_var_processors_locator (@fancyweb)bug symfony/symfony#51307 [DependencyInjection] fix dump xml with array/object/enum default value (@Jean-Beru)
Changelog (https://github.com/symfony/dependency-injection/compare/v6.3.3...v6.3.4)
return in LazyClosure when return type of closure is void (@ruudk)#[AutowireCallable] with controller arguments (@HypeMC)bug symfony/symfony#51031 Fix deprecations on PHP 8.3 (@nicolas-grekas)
Changelog (https://github.com/symfony/dependency-injection/compare/v6.3.1...v6.3.2)
bug symfony/symfony#50763 [DependencyInjection] Skip errored definitions deep-referenced as runtime exceptions (@nicolas-grekas)
Changelog (https://github.com/symfony/dependency-injection/compare/v6.3.0...v6.3.1)
false boolean env vars (@Okhoshi)true and null type (@ruudk)bug symfony/symfony#50478 [DependencyInjection] Escape `` from parameter-like default values (@MatTheCat)
Changelog (https://github.com/symfony/dependency-injection/compare/v6.3.0-RC2...v6.3.0)
inline_factories and inline_class_loader to PhpDumper::dump()PhpDumper options inline_factories_parameter and inline_class_loader_parameterRemoveBuildParametersPass, which removes parameters starting with a dot during compilation#[Autowire(...)]service_locator configContainerBuilder::deprecateParameter()#[AsAlias] attribute to tell under which alias a service should be registered or to use the implemented interface if no parameter is giventrim="true" attributeAutowire attribute#[Exclude] to skip autoregistering a class#[AutowireCallable] or #[AutowireServiceClosure]#[Autowire(lazy: true|class-string)]#[MapDecorated], use #[AutowireDecorated] instead@required annotation, use the Symfony\Contracts\Service\Attribute\Required attribute insteadconstructor option to services declaration and to #[Autoconfigure]bug symfony/symfony#50440 [DependencyInjection] Revert "Use weak references in the container" (@nicolas-grekas)
Changelog (https://github.com/symfony/dependency-injection/compare/v6.3.0-RC1...v6.3.0-RC2)
bug symfony/symfony#50349 [Notifier] Document Notifier options in README files (@alamirault)
Changelog (https://github.com/symfony/dependency-injection/compare/v6.3.0-BETA3...v6.3.0-RC1)
SerializedPath not working with constructor arguments (@HypeMC)excludeSelf option to dumpers (@HypeMC)isRetryable decision of the retry strategy for re-delivery (@FlyingDR)feature symfony/symfony#48579 [Notifier] Add SMS options to GatewayApi notifier (@gnito-org)
Changelog (https://github.com/symfony/dependency-injection/compare/v6.3.0-BETA2...v6.3.0-BETA3)
createTabs from WebProfilerBundle (@MatTheCat)crypto_method to set the minimum TLS version and make it default to v1.2 (@nicolas-grekas)RecurringMessage::getId() and prevent duplicates (@kbond)feature symfony/symfony#50232 [AssetMapper] Better public without digest (@weaverryan)
Changelog (https://github.com/symfony/dependency-injection/compare/v6.3.0-BETA1...v6.3.0-BETA2)
ignoreUndefined() method to allow skip not interesting options (Constantine Shtompel)AutowireCallable without method (@derrabus)feature symfony/symfony#49847 [Cache] Fix DBAL deprecations and stop using NUL chars in tags prefix (@nicolas-grekas)
Changelog (https://github.com/symfony/dependency-injection/compare/v6.2.10...v6.3.0-BETA1)
TriggerInterface extend \Stringable (@kbond)Request::getPayload() (@kbond)AppVariable (@SVillette)placeholder_attr option (@elementaire)ProblemNormalizer give details about ValidationFailedException and PartialDenormalizationException (@nicolas-grekas)constructor option to #[Autoconfigure] (@alexandre-daubois)#[Autowire(lazy: class-string)] (@nicolas-grekas)#[Autowire(lazy: true)] (@nicolas-grekas)@required annotation (@alexislefebvre)exclude option to the Cascade constraint (@alexandre-daubois)#[MapDecorated] in favor of #[AutowireDecorated] (@nicolas-grekas)UriTemplateHttpClient (@fancyweb)ErrorHandler on boot (@HypeMC)NoSuspiciousCharacters constraint to validate a string is not suspicious (@MatTheCat)BatchHandlerTrait with getBatchSize() (@alexandre-daubois)Autowire attribute (@kbond)Twig_Environment (@94noni)TransportNamesStamp (@alexandre-daubois)$normalizeWhitespace to Crawler::innerText() and make it return the first non-empty text (@otsch)enum expression function (@alexandre-daubois)notifier.logger_notification_listener to notifier.notification_logger_listener (@ker0x)enum_exists mock (@alexandre-daubois)extra attribute for HttpClient Configuration (@voodooism)#[WithLogLevel] for setting custom log level for exceptions (@angelov)TaggedIteratorArgument (@chalasr)getConstraint() method to ConstraintViolationInterface (@syl20b)EmojiTransliterator (@fancyweb)Clock class and now() function (@nicolas-grekas)#[HttpStatus] for setting status code and headers for HTTP exceptions (@angelov)#[Autowire(...)] (@nicolas-grekas)dd() and dump() to display a label (@alexandre-daubois)SmsMessage (@gnito-org)assertSelectorCount (@curlycarla2004)Uuid::TIME_BASED_VERSIONS to match that a UUID being validated embeds a timestamp (@alexandre-daubois)env and param parameters for Autowire attribute (@alexndlm)bug symfony/symfony#51031 Fix deprecations on PHP 8.3 (@nicolas-grekas)
Changelog (https://github.com/symfony/dependency-injection/compare/v6.2.12...v6.2.13)
bug symfony/symfony#50763 [DependencyInjection] Skip errored definitions deep-referenced as runtime exceptions (@nicolas-grekas)
Changelog (https://github.com/symfony/dependency-injection/compare/v6.2.11...v6.2.12)
true and null type (@ruudk)bug symfony/symfony#50193 [Serializer] Fix SerializedPath not working with constructor arguments (@HypeMC)
Changelog (https://github.com/symfony/dependency-injection/compare/v6.2.10...v6.2.11)
SerializedPath not working with constructor arguments (@HypeMC)isRetryable decision of the retry strategy for re-delivery (@FlyingDR)bug symfony/symfony#50066 [Dumper] Trim leading newlines when checking if value begins with a space (@bradtreloar)
Changelog (https://github.com/symfony/dependency-injection/compare/v6.2.9...v6.2.10)
name attribute when it does not define their name (@MatTheCat)<bind> (@zerustech)bug #49867 Filter "container.excluded" services when using findTaggedServiceIds() (nicolas-grekas)
Changelog (https://github.com/symfony/dependency-injection/compare/v6.2.7...v6.2.8)
findTaggedServiceIds() (nicolas-grekas)bug #49379 Fix autowire attribute with nullable parameters (alamirault)
Changelog (https://github.com/symfony/dependency-injection/compare/v6.2.6...v6.2.7)
proxy tag on original definition when decorating (kbond)bug #49126 Fix order of arguments when mixing positional and named ones (nicolas-grekas)
Changelog (https://github.com/symfony/dependency-injection/compare/v6.2.5...v6.2.6)
bug #49077 Fix named arguments when using ContainerBuilder before compilation (nicolas-grekas)
Changelog (https://github.com/symfony/dependency-injection/compare/v6.2.4...v6.2.5)
bug #48805 Fix resolving parameters when dumping lazy proxies (nicolas-grekas)
Changelog (https://github.com/symfony/dependency-injection/compare/v6.2.2...v6.2.3)
bug #48591 Shared private services becomes public after a public service is accessed (alexpott)
Changelog (https://github.com/symfony/dependency-injection/compare/v6.2.1...v6.2.2)
bug #48502 Fix ContainerBuilder stats env usage with enum (alamirault)
Changelog (https://github.com/symfony/dependency-injection/compare/v6.2.0...v6.2.1)
ContainerBuilder stats env usage with enum (alamirault)Changelog (https://github.com/symfony/dependency-injection/compare/v6.2.0-RC2...v6.2.0) * no significant changes
Changelog (https://github.com/symfony/dependency-injection/compare/v6.2.0-RC2...v6.2.0)
&$asGhostObject and $id to LazyProxy's DumperInterface to allow using ghost objects for lazy loading servicesenum env var processorshuffle env var processorContainerAwareInterface::setContainer() to setContainer(?ContainerInterface)ContainerAwareTrait::setContainer() without argumentsexclude option to the xml and yaml loaders/dumpersstring $env into php config closuresexcludeSelf parameter to TaggedIteratorArgument with default value to true
to control whether the referencing service should be automatically excluded from the iteratorbug #48224 Process bindings in ServiceLocatorTagPass (MatTheCat)
Changelog (https://github.com/symfony/dependency-injection/compare/v6.2.0-BETA3...v6.2.0-RC1)
ServiceLocatorTagPass (MatTheCat)bug #48093 don't move locator tag for service subscriber (RobertMe)
Changelog (https://github.com/symfony/dependency-injection/compare/v6.2.0-BETA2...v6.2.0-BETA3)
feature #47683 Deprecate numeric parameter names (HeahDude)
Changelog (https://github.com/symfony/dependency-injection/compare/v6.1.6...v6.2.0-BETA1)
SubscribedService[] (kbond)#[When] attribute (ruudk)resolve-env option to debug:config command (alexandre-daubois)shuffle env processor (ostrolucky)bug #49126 Fix order of arguments when mixing positional and named ones (nicolas-grekas)
Changelog (https://github.com/symfony/dependency-injection/compare/v6.1.11...v6.1.12)
Nothing published for this version
One column per quarter.