-
-
Notifications
You must be signed in to change notification settings - Fork 408
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feature #1523 [make:auth] deprecated command
- use any of the `make:security:*` commands instead
- Loading branch information
Showing
2 changed files
with
9 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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 <[email protected]> | ||
* @author Jesse Rushlow <[email protected]> | ||
* | ||
|
@@ -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.'); | ||
} | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters