8000 minor #54779 [Dotenv]  restore deprecated properties (xabbuh) · symfony/symfony@2722fb5 · GitHub
[go: up one dir, main page]

Skip to content

Commit 2722fb5

Browse files
minor #54779 [Dotenv]  restore deprecated properties (xabbuh)
This PR was merged into the 6.4 branch. Discussion ---------- [Dotenv]  restore deprecated properties | Q | A | ------------- | --- | Branch? | 6.4 | Bug fix? | no | New feature? | no | Deprecations? | no | Issues | | License | MIT Commits ------- 26f8a8b restore deprecated properties
2 parents e107d3b + 26f8a8b commit 2722fb5

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