Skip to content

Commit b25aa61

Browse files
committed
removing some of the "empty" parts
1 parent a7ffc78 commit b25aa61

File tree

3 files changed

+6
-6
lines changed

3 files changed

+6
-6
lines changed

src/Command/MakeAuthenticatorEmptyCommand.php renamed to src/Command/MakeAuthenticatorCommand.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -21,16 +21,16 @@
2121
/**
2222
* @author Ryan Weaver <[email protected]>
2323
*/
24-
final class MakeAuthenticatorEmptyCommand extends AbstractCommand
24+
final class MakeAuthenticatorCommand extends AbstractCommand
2525
{
26-
protected static $defaultName = 'make:auth:empty';
26+
protected static $defaultName = 'make:auth';
2727

2828
public function configure()
2929
{
3030
$this
3131
->setDescription('Creates an empty Guard authenticator')
3232
->addArgument('authenticator-class', InputArgument::OPTIONAL, 'The class name of the authenticator to create (e.g. <fg=yellow>AppCustomAuthenticator</>)')
33-
->setHelp(file_get_contents(__DIR__.'/../Resources/help/MakeAuthEmpty.txt'))
33+
->setHelp(file_get_contents(__DIR__.'/../Resources/help/MakeAuth.txt'))
3434
;
3535
}
3636

@@ -54,7 +54,7 @@ protected function getFiles(array $params): array
5454
protected function writeNextStepsMessage(array $params, ConsoleStyle $io)
5555
{
5656
$io->text([
57-
'Next: Customize your new, empty authenticator.',
57+
'Next: Customize your new authenticator.',
5858
'Then, configure the "guard" key on your firewall to use it.'
5959
]);
6060
}

tests/Command/FunctionalTest.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44

55
use PHPUnit\Framework\TestCase;
66
use Symfony\Bundle\MakerBundle\Command\AbstractCommand;
7-
use Symfony\Bundle\MakerBundle\Command\MakeAuthenticatorEmptyCommand;
7+
use Symfony\Bundle\MakerBundle\Command\MakeAuthenticatorCommand;
88
use Symfony\Bundle\MakerBundle\Command\MakeCommandCommand;
99
use Symfony\Bundle\MakerBundle\Command\MakeControllerCommand;
1010
use Symfony\Bundle\MakerBundle\Command\MakeEntityCommand;
@@ -185,7 +185,7 @@ public function getCommandTests()
185185
];
186186

187187
$commands['auth_empty'] = [
188-
new MakeAuthenticatorEmptyCommand($generator),
188+
new MakeAuthenticatorCommand($generator),
189189
[
190190
// class name
191191
'AppCustomAuthenticator'

0 commit comments

Comments
 (0)