All Versions
106
Latest Version
Avg Release Cycle
19 days
Latest Release
917 days ago

Changelog History
Page 8

  • v4.2.10

    June 26, 2019
  • v4.2.9

    May 28, 2019
  • v4.2.0 Changes

    • 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
  • v4.1.0 Changes

    • added support for variadics in named arguments
    • added PSR-11 ContainerBagInterface and its ContainerBag implementation to access parameters as-a-service
    • added support for service's decorators autowiring
    • deprecated the TypedReference::canBeAutoregistered() and TypedReference::getRequiringClass() methods
    • environment variables are validated when used in extension configuration
    • deprecated support for auto-discovered extension configuration class which does not implement ConfigurationInterface
  • v4.0.0 Changes

    • Relying on service auto-registration while autowiring is not supported anymore. Explicitly inject your dependencies or create services whose ids are their fully-qualified class name.

    Before:

       namespace App\Controller;
    
       use App\Mailer;
    
       class DefaultController
       {
           public function __construct(Mailer $mailer) {
               // ...
           }
    
           // ...
       }
    
       services:
           App\Controller\DefaultController:
               autowire: true
    

    After:

       // same PHP code
    
       services:
           App\Controller\DefaultController:
               autowire: true
    
           # or
           # App\Controller\DefaultController:
           #     arguments: { $mailer: "@App\Mailer" }
    
           App\Mailer:
               autowire: true
        ```
     * removed autowiring services based on the types they implement
     * added a third `$methodName` argument to the `getProxyFactoryCode()` method
       of the `DumperInterface`
     * removed support for autowiring types
     * removed `Container::isFrozen`
     * removed support for dumping an ucompiled container in `PhpDumper`
     * removed support for generating a dumped `Container` without populating the method map
     * removed support for case insensitive service identifiers
     * removed the `DefinitionDecorator` class, replaced by `ChildDefinition`
     * removed the `AutowireServiceResource` class and related `AutowirePass::createResourceForClass()` method
     * removed `LoggingFormatter`, `Compiler::getLoggingFormatter()` and `addLogMessage()` class and methods, use the `ContainerBuilder::log()` method instead
     * removed `FactoryReturnTypePass`
     * removed `ContainerBuilder::addClassResource()`, use the `addObjectResource()` or the `getReflectionClass()` method instead.
     * removed support for top-level anonymous services
     * removed silent behavior for unused attributes and elements
     * removed support for setting and accessing private services in `Container`
     * removed support for setting pre-defined services in `Container`
     * removed support for case insensitivity of parameter names
     * removed `AutowireExceptionPass` and `AutowirePass::getAutowiringExceptions()`, use `Definition::addError()` and the `DefinitionErrorExceptionPass` instead
    
  • v3.4.47 Changes

    November 27, 2020

    Changelog (v3.4.46...v3.4.47)

    • no changes
  • v3.4.46 Changes

    October 28, 2020

    Changelog (v3.4.45...v3.4.46)

    • ๐Ÿ› bug #38582 Fix Reflection file name with eval()'d code (maxime-aknin)
  • v3.4.45 Changes

    September 27, 2020

    Changelog (v3.4.44...v3.4.45)

    • ๐Ÿ› bug #38091 fix ContainerBuilder on PHP8 (nicolas-grekas)
  • v3.4.44 Changes

    August 31, 2020

    Changelog (v3.4.43...v3.4.44)

    • bug #37763 Fix deprecated libxml_disable_entity_loader (jderusse)
  • v3.4.43 Changes

    July 24, 2020

    Changelog (v3.4.42...v3.4.43)

    • ๐Ÿ› bug #37340 Fix support for PHP8 union types (nicolas-grekas)
    • ๐Ÿ› bug #37275 tighten detection of local dirs to prevent false positives (nicolas-grekas)