1 | <?php |
||
19 | class SilverStripeCommand extends Command |
||
20 | { |
||
21 | /** |
||
22 | * Retrieve an argument from the input interface, or use the Question helper to ask for input |
||
23 | * if it wasn't provided. Will automatically hide input for password fields. |
||
24 | * |
||
25 | * @param InputInterface $input |
||
26 | * @param OutputInterface $output |
||
27 | * @param string $key The argument key, e.g. "username" |
||
28 | * @param string $question The question to ask, e.g. "Which username: " |
||
29 | * @return string|null |
||
30 | 3 | */ |
|
31 | protected function getOrAskForArgument(InputInterface $input, OutputInterface $output, $key, $question) |
||
45 | |||
46 | /** |
||
47 | * Get the SilverStripe Injector |
||
48 | * |
||
49 | * @return Injector |
||
50 | 1 | */ |
|
51 | public function getInjector() |
||
55 | |||
56 | /** |
||
57 | * Get the configuration API handler |
||
58 | * |
||
59 | * @return ConfigCollectionInterface |
||
60 | 1 | */ |
|
61 | public function getConfig() |
||
65 | } |
||
66 |