File tree Expand file tree Collapse file tree 1 file changed +1
-19
lines changed Expand file tree Collapse file tree 1 file changed +1
-19
lines changed Original file line number Diff line number Diff line change 4
4
5
5
namespace ProjectZer0 \PzSymfony ;
6
6
7
- use LogicException ;
8
7
use ProjectZer0 \Pz \Config \PzModuleConfigurationInterface ;
9
8
use ProjectZer0 \Pz \Console \Command \ProcessCommand ;
10
9
use ProjectZer0 \Pz \Module \PzModule ;
22
21
*/
23
22
class PzSymfonyModule extends PzModule
24
23
{
25
- private ?string $ cwd = null ;
26
-
27
24
public function getCommands (): array
28
25
{
29
26
return [
30
- new class ($ this -> getCWD () ) extends ProcessCommand {
27
+ new class () extends ProcessCommand {
31
28
protected static $ defaultName = 'symfony:console ' ;
32
29
33
- public function __construct (private string $ cwd )
34
- {
35
- parent ::__construct ();
36
- }
37
-
38
30
protected function configure (): void
39
31
{
40
32
$ this ->setDescription ('Dependency Management for PHP ' )
@@ -84,7 +76,6 @@ public function getProcess(
84
76
85
77
public function boot (ProjectZer0Toolkit $ toolkit ): void
86
78
{
87
- $ this ->cwd = $ toolkit ->getCurrentDirectory ();
88
79
}
89
80
90
81
/**
@@ -118,13 +109,4 @@ public function getName(): string
118
109
{
119
110
return 'symnfony ' ;
120
111
}
121
-
122
- private function getCWD (): string
123
- {
124
- if (null === $ this ->cwd ) {
125
- throw new LogicException ('PzModule was not initialized correctly ' );
126
- }
127
-
128
- return $ this ->cwd ;
129
- }
130
112
}
You can’t perform that action at this time.
0 commit comments