Skip to content

Commit c19f411

Browse files
Improve error messages to show PHP & XML configurations are not supported (#1239)
* Adding info on PHP&XML to error message
1 parent b860bdf commit c19f411

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

src/Maker/MakeAuthenticator.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,7 @@ public function configureCommand(Command $command, InputConfiguration $inputConf
9393
public function interact(InputInterface $input, ConsoleStyle $io, Command $command): void
9494
{
9595
if (!$this->fileManager->fileExists($path = 'config/packages/security.yaml')) {
96-
throw new RuntimeCommandException('The file "config/packages/security.yaml" does not exist. This command requires that file to exist so that it can be updated.');
96+
throw new RuntimeCommandException('The file "config/packages/security.yaml" does not exist. PHP & XML configuration formats are currently not supported.');
9797
}
9898
$manipulator = new YamlSourceManipulator($this->fileManager->getFileContents($path));
9999
$securityData = $manipulator->getData();

src/Maker/MakeRegistrationForm.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -116,7 +116,7 @@ public function interact(InputInterface $input, ConsoleStyle $io, Command $comma
116116
}
117117

118118
if (!$this->fileManager->fileExists($path = 'config/packages/security.yaml')) {
119-
throw new RuntimeCommandException('The file "config/packages/security.yaml" does not exist. This command needs that file to accurately build your registration form.');
119+
throw new RuntimeCommandException('The file "config/packages/security.yaml" does not exist. PHP & XML configuration formats are currently not supported.');
120120
}
121121

122122
$manipulator = new YamlSourceManipulator($this->fileManager->getFileContents($path));

src/Maker/MakeResetPassword.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -137,7 +137,7 @@ public function interact(InputInterface $input, ConsoleStyle $io, Command $comma
137137
$interactiveSecurityHelper = new InteractiveSecurityHelper();
138138

139139
if (!$this->fileManager->fileExists($path = 'config/packages/security.yaml')) {
140-
throw new RuntimeCommandException('The file "config/packages/security.yaml" does not exist. This command needs that file to accurately build the reset password form.');
140+
throw new RuntimeCommandException('The file "config/packages/security.yaml" does not exist. PHP & XML configuration formats are currently not supported.');
141141
}
142142

143143
$manipulator = new YamlSourceManipulator($this->fileManager->getFileContents($path));

0 commit comments

Comments
 (0)