File tree Expand file tree Collapse file tree 1 file changed +14
-6
lines changed Expand file tree Collapse file tree 1 file changed +14
-6
lines changed Original file line number Diff line number Diff line change 11
11
12
12
namespace Symfony \Bundle \DebugBundle \Command ;
13
13
14
+ use Symfony \Component \Console \Command \Command ;
14
15
use Symfony \Component \Console \Input \InputInterface ;
15
16
use Symfony \Component \Console \Output \OutputInterface ;
16
17
use Symfony \Component \Console \Style \SymfonyStyle ;
24
25
*
25
26
* @internal
26
27
*/
27
- class ServerDumpPlaceholderCommand extends ServerDumpCommand
28
+ class ServerDumpPlaceholderCommand extends Command
28
29
{
30
+ private $ replacedCommand ;
31
+
29
32
public function __construct (DumpServer $ server = null , array $ descriptors = array ())
30
33
{
31
- parent ::__construct (new class () extends DumpServer {
32
- public function __construct ()
33
- {
34
- }
35
- }, $ descriptors );
34
+ $ this ->replacedCommand = new ServerDumpCommand ((new \ReflectionClass (DumpServer::class))->newInstanceWithoutConstructor (), $ descriptors );
35
+
36
+ parent ::__construct ();
37
+ }
38
+
39
+ protected function configure ()
40
+ {
41
+ $ this ->setDefinition ($ this ->replacedCommand ->getDefinition ());
42
+ $ this ->setHelp ($ this ->replacedCommand ->getHelp ());
43
+ $ this ->setDescription ($ this ->replacedCommand ->getDescription ());
36
44
}
37
45
38
46
protected function execute (InputInterface $ input , OutputInterface $ output )
You can’t perform that action at this time.
0 commit comments