Skip to content

Releases: nette/di

Released version 3.2.3

05 Oct 03:06
@dg dg
Compare
Choose a tag to compare
  • support for PHP 8.4
  • md5 replaced with xxHash
  • fixed ReflectionParameter::getDefaultValue() error #315

Released version 3.2.2

16 May 13:25
@dg dg
Compare
Choose a tag to compare
  • Container: refactoring
  • NeonAdapter: resolving of constants and enums moved here from filterArguments() (BC break)
  • Container::getServiceType() ignores dynamically added services (BC break)
  • Container::getByType() fixed cooperation with dynamic factory #314
  • Resolver: better exception when normalizeEntity() fails due to service replacement
  • Revert "LocatorDefinition: deprecated support for create($name) method (BC break)"

Released version 3.2.1

04 Mar 13:14
@dg dg
Compare
Choose a tag to compare
  • PhpGenerator: DTO and DateTime are not suspicious objects #306 #308
  • NeonAdapter: fixed to string conversion #307
  • Compiler::loadDefinitionsFromConfig() expands parameters (after 3399312)

Released version 3.2.0

06 Feb 00:49
@dg dg
Compare
Choose a tag to compare
  • requires PHP 8.1
  • uses PHP 8.1 features
  • Sensitive parameters are put in markers /sensitive{/ and /}/
  • added support for first-class callable syntax in NEON
  • SearchExtension: added 'exclude -> files'
  • ServicesExtension: locator supports Statement (#294)

changes

  • Resolver: only optional parameters are autowired with default value (BC break)
  • generated accessors/factories must have defined return type (BC break)
  • %parameters% is deprecated (BC break)
  • LocatorDefinition: deprecated support for create($name) method (BC break)
  • PhpGenerator: warns about suspicious dumping of objects

Released version 3.1.10

04 Feb 12:27
@dg dg
Compare
Choose a tag to compare
  • ParametersExtension: exports both statements and dynamic parameters, preloads only the latter
  • allowed %foo.bar% expansion of Statement
  • SearchExtension: also searches for accessors
  • Resolver::autowireArgument() fixed handling of new-initializer with typehint #302
  • InjectExtension: added type checking
  • NeonAdapter::removeUnderscoreVisitor() checks if key doesn't exist

Released version 3.1.8

15 Oct 12:26
@dg dg
Compare
Choose a tag to compare
  • ParametersExtension, Container: redesigned way of exporting dynamic parameters via getParameter() #291
  • Helpers::expand() allow concatenation of Statements #288
  • more self explanatory message for factory and service mismatch (closes #199) (#284)
  • Support list<Type> syntax for autowiring a collection of services (#293)
  • Resolver: added support for named variadics #289
  • ParametersExtension: better validation exception for dynamic parameters
  • ContainerPanel: refactoring
  • Container: detects circular reference for parameters
  • ServiceDefinition: prepends @self to setup immediately
  • Option 'class' is allowed again

Released version 3.0.17

21 Sep 22:33
@dg dg
Compare
Choose a tag to compare
  • Resolver: added support for named variadics #289
  • Resolver: tolerates nullable types when resolving
  • Container: added initialize()

Released version 3.1.3

09 Aug 14:25
@dg dg
Compare
Choose a tag to compare
  • support for PHP 8.3
  • Resolver: tolerates nullable types when resolving

Released version 3.1.2

13 Mar 13:42
@dg dg
Compare
Choose a tag to compare
  • ContainerPanel: removed padding & word-break for dumps, class name moved to the top and removed from the header
  • Resolver::autowireArguments() fixed support for variadics
  • fixed exception messages
  • fix Container::getByType() compatibility with PHPStan (#285)

Released version 3.0.16 (end of support)

13 Mar 13:41
@dg dg
Compare
Choose a tag to compare
  • ContainerPanel: removed padding & word-break for dumps
  • Resolver::autowireArguments() fixed support for variadics
  • fixed exception messages

v3.0 maintenance has been ended, please update to v 3.1