mirror of
https://github.com/symfony/var-dumper.git
synced 2026-03-23 23:42:22 +01:00
[Console][FrameworkBundle] Remove deprecated Application::add() methods
This commit is contained in:
@@ -60,13 +60,8 @@ $app->getDefinition()->addOption(
|
||||
new InputOption('--host', null, InputOption::VALUE_REQUIRED, 'The address the server should listen to', $defaultHost)
|
||||
);
|
||||
|
||||
$command = new ServerDumpCommand(new DumpServer($host, $logger));
|
||||
if (method_exists($app, 'addCommand')) {
|
||||
$app->addCommand($command);
|
||||
} else {
|
||||
$app->add($command);
|
||||
}
|
||||
$app
|
||||
$app->addCommand($command = new ServerDumpCommand(new DumpServer($host, $logger)))
|
||||
->getApplication()
|
||||
->setDefaultCommand($command->getName(), true)
|
||||
->run($input, $output)
|
||||
;
|
||||
|
||||
@@ -29,6 +29,7 @@
|
||||
"twig/twig": "^3.12"
|
||||
},
|
||||
"conflict": {
|
||||
"symfony/console": "<7.4",
|
||||
"symfony/error-handler": "<7.4"
|
||||
},
|
||||
"autoload": {
|
||||
|
||||
Reference in New Issue
Block a user