Releases: nette/component-model
Releases · nette/component-model
Released version 3.1.1
Released version 3.1.0
- requires PHP 8.1
- uses PHP 8.1 features
- added
Container::getComponentTree()
Container::getComponents()
parameters are silently deprecated, returns array when $deep is false (BC break)
Released version 3.0.3
- composer: allows nette/utils 4.0
- constants are PascalCase
Released version 3.0.2
- support for PHP 8.1
Released version 3.0.1
- Container: component name may be number or null
- Container: added const NAME_REGEXP
- added .phpstorm.meta.php
- fixed bugs reported by PHPStan
For the details you can have a look at the diff.
Released version 3.0.0 🎉
Features
- requires PHP 7.1
- uses declare(strict_types=1)
- uses PHP 7.1 scalar and return type hints
- Component::monitor accepts callbacks
- added trait ArrayAccess
- Component: More informative message in case that name is not available (#5)
Changes
- Component::__construct($parent) is deprecated (BC break)
- Container::getComponents(): removed child-first option (BC break)
- Component: removed constructor (BC break)
- Container: name must be string, int is allowed via ArrayAccess (BC break)
- Component: attached() and detached() marked as deprecated in favor of monitoring callbacks
Released version 2.4.0
- Component::monitor() accepts callbacks
- Component: attached() and detached() marked as deprecated in favor of monitoring callbacks
- added trait ArrayAccess
- Component::__construct($parent, $name) is deprecated (BC break)
Released version 2.3.1
Released version 2.2.5
Released version 2.3.0
- requires PHP 5.6
- uses Nette\SmartObject
Container::getComponent()
optimizationComponent::__construct()
parameters $parent & $name are deprecated
For the details you can have a look at the diff.