1 | <?php |
||
17 | class ConfigureInstallationCommand extends Command |
||
18 | { |
||
19 | private $externalToolsConfigurationHelper; |
||
20 | private $pluginDownloader; |
||
21 | private $defaultGlobalConfiguration; |
||
22 | |||
23 | public function __construct( |
||
24 | ExternalToolsConfigurationHelper $externalToolsConfigurationHelper, |
||
25 | PluginDownloader $pluginDownloader |
||
26 | ) { |
||
27 | parent::__construct(); |
||
28 | |||
29 | $this->externalToolsConfigurationHelper = $externalToolsConfigurationHelper; |
||
30 | $this->pluginDownloader = $pluginDownloader; |
||
31 | $this->defaultGlobalConfiguration = new SuggestedGlobalConfiguration(); |
||
32 | } |
||
33 | |||
34 | public function setDefaultGlobalConfiguration(GlobalConfiguration $defaultGlobalConfiguration): self |
||
39 | |||
40 | protected function configure() |
||
41 | { |
||
42 | $this |
||
43 | ->setName('configure-installation') |
||
44 | ->addArgument( |
||
45 | 'path-to-config-file', |
||
46 | InputArgument::OPTIONAL, |
||
47 | 'Path to php configuration file, which returns GlobalConfiguration object' |
||
48 | ) |
||
49 | ; |
||
50 | } |
||
51 | |||
52 | protected function execute(InputInterface $input, OutputInterface $output) |
||
64 | |||
65 | protected function resolveGlobalConfiguration(InputInterface $input): GlobalConfiguration |
||
79 | } |
||
80 |