Releases: nette/di
Releases · nette/di
Released version 3.1.1
- 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
Released version 3.1.0
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
Released version 3.0.13
Released version 3.0.12
Resolver::resolveEntityType()
ignores return types 'object' & 'mixed' #274Resolver::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 forsetFactory()
&getFactory()
Released version 3.0.11
- 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
- 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 compatibilityResolver::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
- 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
- Resolver: handles nullable or default union|types
- ContainerPanel: better sorting for human eyes
- ContainerPanel: shows names of anonymous services
- uses nette/utils 3.2