Mercurial > hg > isophonics-drupal-site
comparison vendor/symfony/console/Event/ConsoleEvent.php @ 14:1fec387a4317
Update Drupal core to 8.5.2 via Composer
author | Chris Cannam |
---|---|
date | Mon, 23 Apr 2018 09:46:53 +0100 |
parents | 4c8ae668cc8c |
children |
comparison
equal
deleted
inserted
replaced
13:5fb285c0d0e3 | 14:1fec387a4317 |
---|---|
26 protected $command; | 26 protected $command; |
27 | 27 |
28 private $input; | 28 private $input; |
29 private $output; | 29 private $output; |
30 | 30 |
31 public function __construct(Command $command, InputInterface $input, OutputInterface $output) | 31 public function __construct(Command $command = null, InputInterface $input, OutputInterface $output) |
32 { | 32 { |
33 $this->command = $command; | 33 $this->command = $command; |
34 $this->input = $input; | 34 $this->input = $input; |
35 $this->output = $output; | 35 $this->output = $output; |
36 } | 36 } |
37 | 37 |
38 /** | 38 /** |
39 * Gets the command that is executed. | 39 * Gets the command that is executed. |
40 * | 40 * |
41 * @return Command A Command instance | 41 * @return Command|null A Command instance |
42 */ | 42 */ |
43 public function getCommand() | 43 public function getCommand() |
44 { | 44 { |
45 return $this->command; | 45 return $this->command; |
46 } | 46 } |