Skip to content

Commit 132d766

Browse files
eltharinjrushlow
andauthored
bug #1532 [make:auth] only fire deprecation when command is called
Co-authored-by: Jesse Rushlow <40327885+jrushlow@users.noreply.github.com>
1 parent 1f02b59 commit 132d766

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/Maker/MakeAuthenticator.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -54,8 +54,6 @@
5454
use Symfony\Component\Security\Http\Util\TargetPathTrait;
5555
use Symfony\Component\Yaml\Yaml;
5656

57-
trigger_deprecation('symfony/maker-bundle', 'v1.59.0', 'The "%s" class is deprecated, use any of the Security\Make* commands instead.', MakeAuthenticator::class);
58-
5957
/**
6058
* @deprecated since MakerBundle v1.59.0, use any of the Security/Make* instead.
6159
*
@@ -99,6 +97,8 @@ public function configureCommand(Command $command, InputConfiguration $inputConf
9997

10098
public function interact(InputInterface $input, ConsoleStyle $io, Command $command): void
10199
{
100+
trigger_deprecation('symfony/maker-bundle', 'v1.59.0', 'The "%s" class is deprecated, use any of the Security\Make* commands instead.', self::class);
101+
102102
$io->caution('"make:auth" is deprecated, use any of the "make:security" commands instead.');
103103

104104
if (!$this->fileManager->fileExists($path = 'config/packages/security.yaml')) {

0 commit comments

Comments
 (0)