Skip to content

Commit

Permalink
bug #1532 [make:auth] only fire deprecation when command is called
Browse files Browse the repository at this point in the history
Co-authored-by: Jesse Rushlow <40327885+jrushlow@users.noreply.github.com>
  • Loading branch information
eltharin and jrushlow committed May 3, 2024
1 parent 1f02b59 commit 132d766
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Maker/MakeAuthenticator.php
Original file line number Diff line number Diff line change
Expand Up @@ -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.
*
Expand Down Expand Up @@ -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')) {
Expand Down

0 comments on commit 132d766

Please sign in to comment.