1 | <?php |
||
11 | class DoctorCommand extends Command |
||
12 | { |
||
13 | /** |
||
14 | * @var Doctor |
||
15 | */ |
||
16 | private $doctor; |
||
17 | |||
18 | /** |
||
19 | * @param Doctor $doctor |
||
20 | */ |
||
21 | public function __construct(Doctor $doctor) |
||
22 | { |
||
23 | parent::__construct(); |
||
24 | |||
25 | $this->doctor = $doctor; |
||
26 | } |
||
27 | |||
28 | /** |
||
29 | * {@inheritdoc} |
||
30 | */ |
||
31 | protected function configure() |
||
32 | { |
||
33 | $this |
||
34 | ->setName('docker:doctor') |
||
35 | ->setDescription('Diagnose problems with Docker setup and attempt to fix them') |
||
36 | ->addOption( |
||
37 | 'dry-run', |
||
38 | null, |
||
39 | InputOption::VALUE_NONE, |
||
40 | "Diagnose problems, don't attempt to fix them" |
||
41 | ) |
||
42 | ; |
||
43 | } |
||
44 | |||
45 | /** |
||
46 | * {@inheritdoc} |
||
47 | */ |
||
48 | protected function execute(InputInterface $input, OutputInterface $output) |
||
52 | } |
||
53 |