diff --git a/CHANGELOG.md b/CHANGELOG.md index b7504cd4a..56dccf5cd 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,13 @@ # Changelog +## [v1.59.1](https://github.com/symfony/maker-bundle/releases/tag/v1.59.1) + +*May 5th, 2024* + +### Bug + +- [#1532](https://github.com/symfony/maker-bundle/pull/1532) [make:auth] only fire deprecation when command is called - *@eltharin* + ## [v1.59.0](https://github.com/symfony/maker-bundle/releases/tag/v1.59.0) *April 27th, 2024* diff --git a/src/Maker/MakeAuthenticator.php b/src/Maker/MakeAuthenticator.php index 17854f7cb..718e3d337 100644 --- a/src/Maker/MakeAuthenticator.php +++ b/src/Maker/MakeAuthenticator.php @@ -54,8 +54,6 @@ use Symfony\Component\Security\Http\Util\TargetPathTrait; use Symfony\Component\Yaml\Yaml; -trigger_deprecation('symfony/maker-bundle', 'v1.59.0', 'The "%s" class is deprecated, use any of the Security\Make* commands instead.', MakeAuthenticator::class); - /** * @deprecated since MakerBundle v1.59.0, use any of the Security/Make* instead. * @@ -99,6 +97,8 @@ public function configureCommand(Command $command, InputConfiguration $inputConf public function interact(InputInterface $input, ConsoleStyle $io, Command $command): void { + trigger_deprecation('symfony/maker-bundle', 'v1.59.0', 'The "%s" class is deprecated, use any of the Security\Make* commands instead.', self::class); + $io->caution('"make:auth" is deprecated, use any of the "make:security" commands instead.'); if (!$this->fileManager->fileExists($path = 'config/packages/security.yaml')) {