From 132d7668e9da60d7b943caa11af1ca658f270464 Mon Sep 17 00:00:00 2001 From: eltharin Date: Fri, 3 May 2024 18:37:35 +0200 Subject: [PATCH] bug #1532 [make:auth] only fire deprecation when command is called Co-authored-by: Jesse Rushlow <40327885+jrushlow@users.noreply.github.com> --- src/Maker/MakeAuthenticator.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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')) {