Skip to content

Commit 03b5a9f

Browse files
authored
feature #1523 [make:auth] deprecated command
- use any of the `make:security:*` commands instead
1 parent 03592b9 commit 03b5a9f

File tree

2 files changed

+9
-0
lines changed

2 files changed

+9
-0
lines changed

src/Maker/MakeAuthenticator.php

+6
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,11 @@
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+
5759
/**
60+
* @deprecated since MakerBundle v1.59.0, use any of the Security/Make* instead.
61+
*
5862
* @author Ryan Weaver <ryan@symfonycasts.com>
5963
* @author Jesse Rushlow <jr@rushlow.dev>
6064
*
@@ -95,6 +99,8 @@ public function configureCommand(Command $command, InputConfiguration $inputConf
9599

96100
public function interact(InputInterface $input, ConsoleStyle $io, Command $command): void
97101
{
102+
$io->caution('"make:auth" is deprecated, use any of the "make:security" commands instead.');
103+
98104
if (!$this->fileManager->fileExists($path = 'config/packages/security.yaml')) {
99105
throw new RuntimeCommandException('The file "config/packages/security.yaml" does not exist. PHP & XML configuration formats are currently not supported.');
100106
}

tests/Maker/MakeAuthenticatorTest.php

+3
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,9 @@
1616
use Symfony\Bundle\MakerBundle\Test\MakerTestRunner;
1717
use Symfony\Component\Security\Core\User\PasswordAuthenticatedUserInterface;
1818

19+
/**
20+
* @group legacy
21+
*/
1922
class MakeAuthenticatorTest extends MakerTestCase
2023
{
2124
protected function getMakerClass(): string

0 commit comments

Comments
 (0)