diff --git a/src/Maker/MakeAuthenticator.php b/src/Maker/MakeAuthenticator.php index 00b029b64..17854f7cb 100644 --- a/src/Maker/MakeAuthenticator.php +++ b/src/Maker/MakeAuthenticator.php @@ -54,7 +54,11 @@ 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. + * * @author Ryan Weaver * @author Jesse Rushlow * @@ -95,6 +99,8 @@ public function configureCommand(Command $command, InputConfiguration $inputConf public function interact(InputInterface $input, ConsoleStyle $io, Command $command): void { + $io->caution('"make:auth" is deprecated, use any of the "make:security" commands instead.'); + if (!$this->fileManager->fileExists($path = 'config/packages/security.yaml')) { throw new RuntimeCommandException('The file "config/packages/security.yaml" does not exist. PHP & XML configuration formats are currently not supported.'); } diff --git a/tests/Maker/MakeAuthenticatorTest.php b/tests/Maker/MakeAuthenticatorTest.php index 93fa38fcb..81de4053d 100644 --- a/tests/Maker/MakeAuthenticatorTest.php +++ b/tests/Maker/MakeAuthenticatorTest.php @@ -16,6 +16,9 @@ use Symfony\Bundle\MakerBundle\Test\MakerTestRunner; use Symfony\Component\Security\Core\User\PasswordAuthenticatedUserInterface; +/** + * @group legacy + */ class MakeAuthenticatorTest extends MakerTestCase { protected function getMakerClass(): string