Symfony DI v4.2.0 Release Notes

    • added ContainerBuilder::registerAliasForArgument() to support autowiring by type+name
    • added support for binding by type+name
    • added ServiceSubscriberTrait to ease implementing ServiceSubscriberInterface using methods' return types
    • added ServiceLocatorArgument and !service_locator config tag for creating optimized service-locators
    • added support for autoconfiguring bindings
    • added %env(key:...)% processor to fetch a specific key from an array
    • deprecated ServiceSubscriberInterface, use the same interface from the Symfony\Contracts\Service namespace instead
    • deprecated ResettableContainerInterface, use Symfony\Contracts\Service\ResetInterface instead