8000 [make:auth] only fire deprecation when command is called by eltharin · Pull Request #1532 · symfony/maker-bundle · GitHub
[go: up one dir, main page]

Skip to content

[make:auth] only fire deprecation when command is called #1532

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy stateme 8000 nt. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
May 3, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading
0