| 1 | <?php |
||
| 9 | use Symfony\Component\Console\Input\InputInterface; |
||
| 10 | use Symfony\Component\Console\Output\OutputInterface; |
||
| 11 | |||
| 12 | class ConfigurationBuild extends Command |
||
| 13 | { |
||
| 14 | |||
| 15 | const COMMAND = 'magium:configuration:build'; |
||
| 16 | |||
| 17 | protected function configure() |
||
| 18 | { |
||
| 19 | $this |
||
| 20 | ->setName(self::COMMAND) |
||
| 21 | ->setDescription('Build configuration') |
||
| 22 | ->setHelp( |
||
| 23 | 'This command will build the configuration object based off of configuration files and ' |
||
| 24 | . 'persistent storage data. By default, it will rebuild all contexts, but you can specify an ' |
||
| 25 | . 'individual context if you so like.') |
||
| 26 | ; |
||
| 27 | |||
| 28 | $this->addArgument('context', InputArgument::OPTIONAL, 'Configuration Context (ignore to build all contexts)'); |
||
| 29 | } |
||
| 30 | |||
| 31 | protected function execute(InputInterface $input, OutputInterface $output) |
||
| 45 |