Skip to content

Releases: nette/di

Released version 3.1.1

17 Jan 01:26
@dg dg
Compare
Choose a tag to compare
  • better exception messages
  • Container: added typehint object
  • composer: accepts nette/utils & robot-loader 4.0
  • removed Adapter::dump() interface method

Released version 3.0.15

17 Jan 00:34
@dg dg
Compare
Choose a tag to compare
  • revert "used generics (#261)" [Closes #274]
  • improved exception messages

Released version 3.1.0

05 Dec 01:07
@dg dg
Compare
Choose a tag to compare

Changes:

  • supports PascalCase constants in configuration
  • Resolver: non-optional autowired parameters trigger notice that value is required [Closes #271]
  • constants are PascalCase
  • NeonAdapter: automatically escapes @
  • Compiler: constants are evaluated immediately"

Deprecations:

  • deprecated options 'parameters', 'dynamic', 'class' (instead of 'type') in configuration
  • Three ... dots are deprecated in configuration
  • Loader::save() is deprecated
  • annotations @return are deprecated
  • PhpExtension & ConstantsExtension are deprecated (have been moved to nette/bootstrap)

Released version 3.0.14

02 Nov 19:43
@dg dg
Compare
Choose a tag to compare
  • support for PHP 8.2
  • ExtensionsExtension: removed final #280
  • Revert "ContainerLoader: mutex handling clarification (#270)"

Released version 3.0.13

10 Mar 02:41
@dg dg
Compare
Choose a tag to compare
  • private constants are PascalCase
  • Resolver: autowiring of collection supports 'array`<int,T>`` annotation #277
  • composer: updated dependencies
  • DefinitionSchema: recognizes Locator with one service #276

Released version 3.0.12

14 Dec 18:21
@dg dg
Compare
Choose a tag to compare
  • Resolver::resolveEntityType() ignores return types 'object' & 'mixed' #274
  • Resolver::autowireArgument() uses named arguments to skip optional parameters in PHP 8
  • Resolver: forbidden to use extra parameter after optional (for forward compatibility) (BC break)
  • Resolver::autowireArguments() improved support for variadics
  • Resolver: refactoring of autowireArguments()
  • ServicesExtension: improved parameter merging method
  • DependencyChecker: do not serialize object parameters #273
  • PhpGenerator: do not format the statement twice or incorrectly
  • improved exception messages
  • improved coding style
  • ServiceDefinition: added setCreator() & getCreator(), aliases for setFactory() & getFactory()

Released version 3.0.11

26 Oct 09:26
@dg dg
Compare
Choose a tag to compare
  • The _ are removed using Neon visitor #264 (requires neon/neon 3.3)
  • InjectExtension: warns on non-public, static or readonly properties
  • ServiceDefinition: type checking removed, because methods have a type defined
  • FactoryDefinition: fixed notice #266
  • Partially reverts "improved phpDoc, used generics (#261)" #263
  • Revert "Resolver::autowireArguments() throws an exception when combining a named and positional parameter" #265

Released version 3.0.10

29 Sep 15:24
@dg dg
Compare
Choose a tag to compare
  • added _ as alias for ... in config
  • FactoryDefinition: added support for syntax $params in definition
  • added 'create' as alias for 'factory'
  • Resolver::autowireArguments() throws an exception when combining a named and positional parameter
  • DefinitionSchema: better exception on empty definition
  • FactoryDefinition::resolveType() checks for type compatibility
  • Resolver::completeException() truncates but does not remove the class name
  • Unified type validation using Helper::ensureClassType()
  • replaced use of Reflection::getReturnTypes() etc
  • uses nette/utils 3.1.6
  • improved phpDoc, used generics (#261)

Released version 3.0.9

25 Aug 14:58
@dg dg
Compare
Choose a tag to compare
  • support for PHP 8.1
  • improved error messages
  • added support for enums in config file
  • support for intersection type
  • Revert "uses nette/utils 3.2" to maintain compatibility with PHP 7.1

Released version 3.0.8

02 Mar 03:42
@dg dg
Compare
Choose a tag to compare
  • Resolver: handles nullable or default union|types
  • ContainerPanel: better sorting for human eyes
  • ContainerPanel: shows names of anonymous services
  • uses nette/utils 3.2