1 | <?php |
||
21 | class SetPermissions extends BaseCommand { |
||
22 | protected function configure() { |
||
28 | |||
29 | /** (optional) |
||
30 | * This method is executed before the interact() and the execute() methods. |
||
31 | * Its main purpose is to initialize variables used in the rest of the command methods. |
||
32 | * |
||
33 | * @param \Symfony\Component\Console\Input\InputInterface $input |
||
34 | * @param \Symfony\Component\Console\Output\OutputInterface $output |
||
35 | */ |
||
36 | protected function initialize(InputInterface $input, OutputInterface $output) {} |
||
37 | |||
38 | /** (optional) |
||
39 | * This method is executed after initialize() and before execute(). |
||
40 | * Its purpose is to check if some of the options/arguments are missing and interactively |
||
41 | * ask the user for those values. This is the last place where you can ask for missing |
||
42 | * options/arguments. After this command, missing options/arguments will result in an error. |
||
43 | * |
||
44 | * @param \Symfony\Component\Console\Input\InputInterface $input |
||
45 | * @param \Symfony\Component\Console\Output\OutputInterface $output |
||
46 | */ |
||
47 | protected function interact(InputInterface $input, OutputInterface $output) {} |
||
48 | |||
49 | |||
50 | /** (required) |
||
51 | * This method is executed after interact() and initialize(). |
||
52 | * It contains the logic you want the command to execute. |
||
53 | * |
||
54 | * @param InputInterface $input |
||
55 | * @param OutputInterface $output |
||
56 | */ |
||
57 | protected function execute(InputInterface $input, OutputInterface $output) { |
||
60 | } |
||
61 |