Skip to content

Releases

v2.0.0

Choose a tag to compare

@tg666 tg666 released this 28 Oct 15:08
7654b41

Added

  • Support for nette/robot-loader ^4.0 (dev dependency, suggested for the option scanDirs).
  • Integration test of the authorization (trait → authorizator → rules provider → reader) without mocks.

Changed

  • Minimal PHP version is 8.3.
  • ❗ AuthorizationTrait passes the action name (default) and the signal name (delete) to ComponentAuthorizatorInterface::checkAction() and checkSignal() instead of the method names (actionDefault, handleDelete). Custom implementations of ComponentAuthorizatorInterface must be updated.
  • nette/utils is 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/application 3.2+).

Removed

  • ❗ Support for PHP < 8.3.

Fixed

  • Security: authorization attributes on action methods (action<Action>()) and signal methods (handle<Signal>()) were never enforced, because AuthorizationTrait passed 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 $previous in ForbiddenRequestException::__construct().

v1.0.0

Choose a tag to compare

@tg666 tg666 released this 12 Dec 01:35

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

v0.2.1

Choose a tag to compare

@tg666 tg666 released this 15 May 20:32
Added methods `Control::render()` and `Control::doRenderToString()`

v0.2

Choose a tag to compare

@tg666 tg666 released this 19 Nov 01:40
  • added support for both Nette versions - 2.4 and 3.0
  • coding style changes (interfaces and traits naming conventions, FQN in use sections)

v0.1.4

Choose a tag to compare

@tg666 tg666 released this 26 Aug 18:08

💡 Added missing method ITranslatorAware::getPrefixedTranslator().

v0.1.3

Choose a tag to compare

@tg666 tg666 released this 22 Aug 16:06

🆕 TranslatorAware interface

v0.1.2

Choose a tag to compare

@tg666 tg666 released this 30 Jul 07:39

🐛 Fixed order of class annotations

v0.1.1

Choose a tag to compare

@tg666 tg666 released this 14 Jul 21:24

🆕 added Link Authorization

v0.1 - First release

Choose a tag to compare

@tg666 tg666 released this 09 Jun 21:50

✔️ Nette ^2.4