You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This commit was created on GitHub.com and signed with GitHub’s verified signature.
Added
Added Nette Tester tests (DI container with a typical application configuration, DeviceInfo, CancelPasswordRequestPresenterTrait, AuthenticatorMount, PasswordHasBeenResetEmail) and GitHub Actions (coding style, tests on PHP 8.3, 8.4 and 8.5 with highest dependencies and on PHP 8.3 with lowest dependencies) and a docker dev environment with PHP 8.3, 8.4 and 8.5.
Added support for doctrine/orm 3, symfony/event-dispatcher 8, matomo/device-detector 5 and 6.
Added tests of the entity mapping combined with an annotation-mapped (doctrine/orm 2) or attribute-mapped application user entity.
Declared the directly used dependency doctrine/orm (^2.10 || ^3.0).
Changed
Minimal PHP version is 8.3 (BC break).
The entities PasswordRequest and DeviceInfo are mapped with PHP attributes instead of annotations and registered with EntityMapping::DRIVER_ATTRIBUTE (BC break: a mapping driver service of the type Doctrine\ORM\Mapping\Driver\AttributeDriver is required in the container). The database schema is unchanged.
Requires 68publishers/doctrine-bridge^2.0, 68publishers/doctrine-persistence^0.4, 68publishers/doctrine-query-objects^0.3, 68publishers/smart-nette-component^2.0 and 68publishers/translation-bridge^3.0 (BC break).
Minimal versions are nette/security 3.1.8, nette/application 3.1, nette/di 3.1.3 and nette/utils 3.2.10.
The authenticator service is registered with the type Nette\Security\Authenticator instead of the deprecated Nette\Security\IAuthenticator. It is now also autowired for Nette\Security\Authenticator.
DeviceInfo::fill() creates a new device detector on every call (a static detector kept the User-Agent of the first call).
PasswordRequest::$updated is set in UTC on update (like on creation).
Replaced deprecated IAuthenticator constants, Strings::contains() and PhpLiteral with Authenticator::Failure (etc.), str_contains() and Literal.
Migrated PHP-CS-Fixer to v3 (.php-cs-fixer.dist.php) and applied it, updated nette/tester to ^2.6, roave/security-advisories to dev-latest, contributte/mailing (dev) to ^0.5 || ^0.6 || ^0.7 and psr/log (dev) to ^1.0 || ^2.0 || ^3.0.
Removed
Removed the class SixtyEightPublishers\User\Common\EventSubscriber\HashUserPasswordSubscriber (BC break). It was never registered by the bundle and caused a TypeError with the Password value object, passwords are hashed by the Password value object and the PasswordType.
Removed Travis CI and Scrutinizer configurations.
Fixed
DeviceInfo::fill() no longer fails without the User-Agent header or the remote address (e.g. in CLI), and only the first (client) address of X-Forwarded-For is stored.
CancelPasswordRequestPresenterTrait uses getAction() instead of the deprecated property $action (deprecation with nette/application 3.2).
Removed the import of the non-existent class DoctrineIdentityExtension in UserBundleExtension.
PHP 8.4 deprecation of the implicitly nullable parameter $previous in PasswordRequestProcessException::__construct().