Repository navigation
Releases
Releases · 68publishers/smart-nette-component
v2.0.0
Added
- Support for
nette/robot-loader^4.0(dev dependency, suggested for the optionscanDirs). - Integration test of the authorization (trait → authorizator → rules provider → reader) without mocks.
Changed
- Minimal PHP version is 8.3.
- ❗
AuthorizationTraitpasses the action name (default) and the signal name (delete) toComponentAuthorizatorInterface::checkAction()andcheckSignal()instead of the method names (actionDefault,handleDelete). Custom implementations ofComponentAuthorizatorInterfacemust be updated. nette/utilsis declared as a dependency (it was used without being required).- Dev tooling: PHPStan 2, Nette Tester 2.6+, Mockery 1.6.12+, PHP-CS-Fixer 3.89+, CI matrix PHP 8.3, 8.4 and 8.5. The tests attach components to a presenter (required by
nette/application3.2+).
Removed
- ❗ Support for PHP < 8.3.
Fixed
- Security: authorization attributes on action methods (
action<Action>()) and signal methods (handle<Signal>()) were never enforced, becauseAuthorizationTraitpassed the method name and the rules provider formatted it once more (actionActionDefault). Requests that were allowed until now may be forbidden after the upgrade. - PHP 8.4 deprecation of the implicitly nullable parameter
$previousinForbiddenRequestException::__construct().
v1.0.0
Version 1.0.0 🎉
Platform support
- added support for PHP
^8.1 - dropped support for PHP
7 - dropped support for Nette
2.4
Changes
- new more robust solution for actions/signals authorization (custom attributes, rules and handlers should be defined)
- removed Doctrine annotations
- added PHP8 attributes
- installation and usage changes, please read updated README
Development
- added Dockerfile and docker-compose.yml with containers for all supported PHP versions
- added tests (full coverage)
- added Makefile
- added GitHub actions
- added PHPStan