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 4 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/v7.3.9...v7.3.10)
bug symfony/symfony#62843 [DependencyInjection] Fix referencing build-time array parameters (@nicolas-grekas)
Changelog (https://github.com/symfony/dependency-injection/compare/v7.3.8...v7.3.9)
#[AutowireCallable] sometimes incorrectly inlined (@HypeMC)PhpDumper (@nicolas-grekas)PriorityTaggedServiceTrait when tag attributes are not a list (@GromNaN)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/v7.3.7...v7.3.8)
#[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)Changelog (https://github.com/symfony/dependency-injection/compare/v7.3.5...v7.3.6) * no significant changes
Changelog (https://github.com/symfony/dependency-injection/compare/v7.3.5...v7.3.6)
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/v7.3.3...v7.3.4)
bug symfony/symfony#61402 Remove calls to deprecated methods of SplObjectStorage (@nicolas-grekas)
Changelog (https://github.com/symfony/dependency-injection/compare/v7.3.2...v7.3.3)
bug symfony/symfony#61276 [DependencyInjection] Escape parameters before resolving env placeholders (@MatTheCat)
Changelog (https://github.com/symfony/dependency-injection/compare/v7.3.1...v7.3.2)
@var phpdoc (@fabpot)bug symfony/symfony#60842 [DependencyInjection] Fix generating adapters of functional interfaces (@nicolas-grekas)
Changelog (https://github.com/symfony/dependency-injection/compare/v7.3.0...v7.3.1)
ServiceLocatorTagPass indexes handling (@MatTheCat)YamlDumper quote resolved env vars if necessary (@MatTheCat)Changelog (https://github.com/symfony/dependency-injection/compare/v7.3.0-RC1...v7.3.0) * no significant changes
Changelog (https://github.com/symfony/dependency-injection/compare/v7.3.0-RC1...v7.3.0)
#[AsTaggedItem] repeatable@> as a shorthand for !service_closure in yaml filesDefinition::addResourceTag() and ContainerBuilder::findTaggedResourceIds()
for auto-configuration of classes excluded from the service containerwhen argument to #[AsAlias]bug symfony/symfony#60423 [DependencyInjection] Make DefinitionErrorExceptionPass consider IGNORE_ON_UNINITIALIZED_REFERENCE and RUNTIME_EXCEPTION_ON_
Changelog (https://github.com/symfony/dependency-injection/compare/v7.3.0-BETA2...v7.3.0-RC1)
DefinitionErrorExceptionPass consider IGNORE_ON_UNINITIALIZED_REFERENCE and RUNTIME_EXCEPTION_ON_INVALID_REFERENCE the same (@MatTheCat)bug symfony/symfony#60392 [DependencyInjection][FrameworkBundle] Fix precedence of App\Kernel alias and ignore container.excluded tag on synthetic ser
Changelog (https://github.com/symfony/dependency-injection/compare/v7.3.0-BETA1...v7.3.0-BETA2)
App\Kernel alias and ignore container.excluded tag on synthetic services (@nicolas-grekas)feature symfony/symfony#60186 [DependencyInjection] Add "when" argument to #[AsAlias] (@Zuruuh)
Changelog (https://github.com/symfony/dependency-injection/compare/v7.2.6...v7.3.0-BETA1)
Definition::addExcludedTag() and ContainerBuilder::findExcludedServiceIds() for auto-discovering value-objects (@GromNaN)@> as a shorthand for !service_closure in YamlFileLoader (@chx)#[AsTaggedItem] repeatable (@alexandre-daubois)bug symfony/symfony#61276 [DependencyInjection] Escape parameters before resolving env placeholders (@MatTheCat)
Changelog (https://github.com/symfony/dependency-injection/compare/v7.2.8...v7.2.9)
@var phpdoc (@fabpot)bug symfony/symfony#60842 [DependencyInjection] Fix generating adapters of functional interfaces (@nicolas-grekas)
Changelog (https://github.com/symfony/dependency-injection/compare/v7.2.7...v7.2.8)
ServiceLocatorTagPass indexes handling (@MatTheCat)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/v7.2.6...v7.2.7)
DefinitionErrorExceptionPass consider IGNORE_ON_UNINITIALIZED_REFERENCE and RUNTIME_EXCEPTION_ON_INVALID_REFERENCE the same (@MatTheCat)Changelog (https://github.com/symfony/dependency-injection/compare/v7.2.5...v7.2.6) * no significant changes
Changelog (https://github.com/symfony/dependency-injection/compare/v7.2.5...v7.2.6)
bug symfony/symfony#59965 [VarExporter] Fix support for hooks and asymmetric visibility (@nicolas-grekas)
Changelog (https://github.com/symfony/dependency-injection/compare/v7.2.4...v7.2.5)
bug symfony/symfony#59810 [DependencyInjection] Defer check for circular references instead of skipping them (@biozshock)
Changelog (https://github.com/symfony/dependency-injection/compare/v7.2.3...v7.2.4)
bug symfony/symfony#59136 [DependencyInjection] Reset env vars with kernel.reset (@faizanakram99)
Changelog (https://github.com/symfony/dependency-injection/compare/v7.2.2...v7.2.3)
kernel.reset (@faizanakram99)bug symfony/symfony#58822 [DependencyInjection] Fix checking for interfaces in ContainerBuilder::getReflectionClass() (@donquixote)
Changelog (https://github.com/symfony/dependency-injection/compare/v7.2.0-RC1...v7.2.0)
!tagged tag, use !tagged_iterator insteadContainerBuilder::registerChild() shortcut method for registering child definitionskey-type in XmlFileLoaderParameterBag::cannotBeEmpty() and ContainerBuilder::parameterCannotBeEmpty() methodsChangelog (https://github.com/symfony/dependency-injection/compare/v7.2.0-BETA2...v7.2.0-RC1) * no significant changes
Changelog (https://github.com/symfony/dependency-injection/compare/v7.2.0-BETA2...v7.2.0-RC1)
bug symfony/symfony#58776 [DependencyInjection][HttpClient][Routing] Reject URIs that contain invalid characters (@nicolas-grekas)
Changelog (https://github.com/symfony/dependency-injection/compare/v7.2.0-BETA1...v7.2.0-BETA2)
feature symfony/symfony#57934 [DependencyInjection] Deprecate !tagged tag, use !tagged_iterator instead (@alexandre-daubois)
Changelog (https://github.com/symfony/dependency-injection/compare/v7.1.6...v7.2.0-BETA1)
key-type in XmlFileLoader (@alexandre-daubois)ContainerBuilder::registerChild() shortcut method (@HypeMC)!tagged tag, use !tagged_iterator instead (@alexandre-daubois)ExpectUserDeprecationMessageTrait (@derrabus)#[WhenNot] attribute (@alexandre-daubois)bug symfony/symfony#59136 [DependencyInjection] Reset env vars with kernel.reset (@faizanakram99)
Changelog (https://github.com/symfony/dependency-injection/compare/v7.1.10...v7.1.11)
kernel.reset (@faizanakram99)bug symfony/symfony#58822 [DependencyInjection] Fix checking for interfaces in ContainerBuilder::getReflectionClass() (@donquixote)
Changelog (https://github.com/symfony/dependency-injection/compare/v7.1.8...v7.1.9)
Changelog (https://github.com/symfony/dependency-injection/compare/v7.1.7...v7.1.8) * no significant changes
Changelog (https://github.com/symfony/dependency-injection/compare/v7.1.7...v7.1.8)
bug symfony/symfony#58618 [DependencyInjection] Fix linting factories implemented via __callStatic (@KevinVanSonsbeek)
Changelog (https://github.com/symfony/dependency-injection/compare/v7.1.5...v7.1.6)
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/v7.1.4...v7.1.5)
bug symfony/symfony#58000 [DependencyInjection] Fix issue between decorator and service locator index (@lyrixx)
Changelog (https://github.com/symfony/dependency-injection/compare/v7.1.3...v7.1.4)
#[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/v7.1.2...v7.1.3)
bug symfony/symfony#57345 [DependencyInjection] Fix regression in ordering service locators by priority (@longwave)
Changelog (https://github.com/symfony/dependency-injection/compare/v7.1.1...v7.1.2)
AutowireCallable attribute (@alamirault)Changelog (https://github.com/symfony/dependency-injection/compare/v7.1.0...v7.1.1) * no significant changes
Changelog (https://github.com/symfony/dependency-injection/compare/v7.1.0...v7.1.1)
bug symfony/symfony#54977 [DependencyInjection] Fix prepending strategy for php config loader (@yceruto)
Changelog (https://github.com/symfony/dependency-injection/compare/v7.1.0-RC1...v7.1.0)
CheckAliasValidityPass to check service compatibility with aliased interface$prepend to ContainerConfigurator::extension() to prepend the configuration instead of appending itServiceLocator implement ServiceCollectionInterface#[Lazy] attribute as shortcut for #[Autowire(lazy: [bool|string])] and #[Autoconfigure(lazy: [bool|string])]#[AutowireMethodOf] attribute to autowire a method of a service as a callableContainerBuilder::registerAttributeForAutoconfiguration() propagate to attribute classes that extend the registered class$prepend to FileLoader::construct() to prepend loaded configuration instead of appending itprependExtension() method, the ContainerConfigurator::import() method now prepends the configuration instead of appending it#[Autowire(env: '...')] depending on the signature of the corresponding parameter#[AutowireInline] attribute to allow service definition at the class levelStaticEnvVarLoaderbug symfony/symfony#54970 [DependencyInjection] Process PHP configs using the ContainerConfigurator (@MatTheCat)
Changelog (https://github.com/symfony/dependency-injection/compare/v7.1.0-BETA1...v7.1.0-RC1)
feature symfony/symfony#54371 [DependencyInjection] Deprecate #[TaggedIterator] and #[TaggedLocator] (@GromNaN)
Changelog (https://github.com/symfony/dependency-injection/compare/v7.0.7...v7.1.0-BETA1)
#[AutowireInline] attribute to allow service definition at the class level (@DaDeather, @nicolas-grekas)#[TaggedIterator] and #[TaggedLocator] (@GromNaN)#[Autowire(env: '...')] depending on the signature of the corresponding parameter (@ruudk)#[AutowireMethodOf] attribute to autowire a method of a service as a callable (@nicolas-grekas)CheckAliasValidityPass to check interface compatibility (@n-valverde)ServiceCollectionInterface (@kbond)ContainerConfigurator (@yceruto)urlencode function to EnvVarProcessor (@crtl)bug symfony/symfony#57832 [DependencyInjection] Do not try to load default method name on interface (@lyrixx)
Changelog (https://github.com/symfony/dependency-injection/compare/v7.0.9...v7.0.10)
bug symfony/symfony#57345 [DependencyInjection] Fix regression in ordering service locators by priority (@longwave)
Changelog (https://github.com/symfony/dependency-injection/compare/v7.0.8...v7.0.9)
AutowireCallable attribute (@alamirault)Changelog (https://github.com/symfony/dependency-injection/compare/v7.0.7...v7.0.8) * no significant changes
Changelog (https://github.com/symfony/dependency-injection/compare/v7.0.7...v7.0.8)
Changelog (https://github.com/symfony/dependency-injection/compare/v7.0.6...v7.0.7) * no significant changes
Changelog (https://github.com/symfony/dependency-injection/compare/v7.0.6...v7.0.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/v7.0.5...v7.0.6)
bug symfony/symfony#54035 [DependencyInjection] Fix computing error messages involving service locators (@nicolas-grekas)
Changelog (https://github.com/symfony/dependency-injection/compare/v7.0.3...v7.0.4)
bug symfony/symfony#51559 [DependencyInjection] #[Autowire] attribute should have precedence over bindings (@HypeMC)
Changelog (https://github.com/symfony/dependency-injection/compare/v7.0.2...v7.0.3)
#[Autowire] attribute should have precedence over bindings (@HypeMC)parse_url() results (@alexandre-daubois)Changelog (https://github.com/symfony/dependency-injection/compare/v7.0.1...v7.0.2) * no significant changes
Changelog (https://github.com/symfony/dependency-injection/compare/v7.0.1...v7.0.2)
bug symfony/symfony#52836 [DependencyInjection] Fix parsing named autowiring aliases that contain underscores (@nicolas-grekas)
Changelog (https://github.com/symfony/dependency-injection/compare/v7.0.0...v7.0.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/v7.0.0-RC2...v7.0.0)
#[MapDecorated], use #[AutowireDecorated] insteadProxyHelper, use Symfony\Component\VarExporter\ProxyHelper insteadReferenceSetArgumentTrait@required annotation, use the Symfony\Contracts\Service\Attribute\Required attribute insteadContainerAwareTrait::setContainer()PhpDumper options inline_factories_parameter and inline_class_loader_parameter, use options inline_factories and inline_class_loader insteadParameterBag cannot be numericsContainerAwareInterface and ContainerAwareTrait, use dependency injection instead$id and $asGhostObject to DumperInterface::isProxyCandidate() and getProxyCode()$source to FileLoader::registerClasses()bug symfony/symfony#52597 [DependencyInjection] Fix dumping containers with null-referenced services (@nicolas-grekas)
Changelog (https://github.com/symfony/dependency-injection/compare/v7.0.0-BETA3...v7.0.0-RC1)
Changelog (https://github.com/symfony/dependency-injection/compare/v7.0.0-BETA2...v7.0.0-BETA3) * no significant changes
Changelog (https://github.com/symfony/dependency-injection/compare/v7.0.0-BETA2...v7.0.0-BETA3)
Changelog (https://github.com/symfony/dependency-injection/compare/v7.0.0-BETA1...v7.0.0-BETA2) * no significant changes
Changelog (https://github.com/symfony/dependency-injection/compare/v7.0.0-BETA1...v7.0.0-BETA2)
feature symfony/symfony#51712 Deprecate Kernel::stripComments() (@alamirault)
Changelog (https://github.com/symfony/dependency-injection/compare/v6.3.6...v7.0.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 #67376 Preserve XML schema temporary files in forked processes (@mbeccati)
Changelog (https://github.com/symfony/dependency-injection/compare/v6.4.48...v6.4.49)
process() running twice on extensions also registered as compiler passes (@HypeMC)# ignoring # (@nicolas-grekas)[SECURITY] Security release
bug #66894 Fix ignoring env var processors after resolving env vars before compilation (@nicolas-grekas)
Changelog (https://github.com/symfony/dependency-injection/compare/v6.4.47...v6.4.48)
bug #66434 Track env placeholders reused after a previous extension dropped them (@TamasSzigeti)
Changelog (https://github.com/symfony/dependency-injection/compare/v6.4.44...v6.4.47)
bug #65367 Fix PHP 8.6 deprecations (@nicolas-grekas)
Changelog (https://github.com/symfony/dependency-injection/compare/v6.4.43...v6.4.44)
bug #64668 Fix env var reported as never used for a removed autowired service (@eyupcanakman)
Changelog (https://github.com/symfony/dependency-injection/compare/v6.4.42...v6.4.43)
minor #64476 Unsafe unserialize phpstan rule (@jack-worman)
Changelog (https://github.com/symfony/dependency-injection/compare/v6.4.38...v6.4.42)
bug #64100 URL-encode tmp path in XliffUtils::shouldEnableEntityLoader (@ousamabenyounes)
Changelog (https://github.com/symfony/dependency-injection/compare/v6.4.37...v6.4.38)
bug #64090 Reject circular references through a factory builder's setup (@nicolas-grekas)
Changelog (https://github.com/symfony/dependency-injection/compare/v6.4.36...v6.4.37)
bug #63823 Fix rejecting inline services in parameters section (@nicolas-grekas)
Changelog (https://github.com/symfony/dependency-injection/compare/v6.4.35...v6.4.36)
bug #63506 Fix TypeError when using a custom container base class with typed $parameterBag (@nicolas-grekas)
Changelog (https://github.com/symfony/dependency-injection/compare/v6.4.34...v6.4.35)
TypeError when using a custom container base class with typed $parameterBag (@nicolas-grekas)bug #63473 Fix PriorityTaggedServiceTrait not discovering # on decorated services (@lacatoire)
Changelog (https://github.com/symfony/dependency-injection/compare/v6.4.33...v6.4.34)
# on decorated services (@lacatoire)ResolveBindingsPass error message (@yoeunes)One column per quarter.