8000 restore deprecated properties · symfony/symfony@26f8a8b · GitHub
[go: up one dir, main page]

Skip to content

Commit 26f8a8b

Browse files
committed
restore deprecated properties
1 parent e107d3b commit 26f8a8b

File tree

1 file changed

+18
-4
lines changed

1 file changed

+18
-4
lines changed

src/Symfony/Component/Dotenv/Command/DebugCommand.php

Lines changed: 18 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -30,10 +30,24 @@
3030
#[AsCommand(name: 'debug:dotenv', description: 'List all dotenv files with variables and values')]
3131
final class DebugCommand extends Command
3232
{
33-
public function __construct(
34-
private string $kernelEnvironment,
35-
private string $projectDirectory,
36-
) {
33+
/**
34+
* @deprecated since Symfony 6.1
35+
*/
36+
protected static $defaultName = 'debug:dotenv';
37+
38+
/**
39+
* @deprecated since Symfony 6.1
40+
*/
41+
protected static $defaultDescription = 'List all dotenv files with variables and values';
42+
43+
private string $kernelEnvironment;
44+
private string $projectDirectory;
45+
46+
public function __construct(string $kernelEnvironment, string $projectDirectory)
47+
{
48+
$this->kernelEnvironment = $kernelEnvironment;
49+
$this->projectDirectory = $projectDirectory;
50+
3751
parent::__construct();
3852
}
3953

0 commit comments

Comments
 (0)
0