1 | <?php |
||
24 | class GenerateController extends Command |
||
25 | { |
||
26 | /** |
||
27 | * Configures the current command. |
||
28 | */ |
||
29 | protected function configure() |
||
61 | |||
62 | /** |
||
63 | * Executes the current command. |
||
64 | * |
||
65 | * This method is not abstract because you can use this class |
||
66 | * as a concrete class. In this case, instead of defining the |
||
67 | * execute() method, you set the code to execute by passing |
||
68 | * a Closure to the setCode() method. |
||
69 | * |
||
70 | * @param InputInterface $input An InputInterface instance |
||
71 | * @param OutputInterface $output An OutputInterface instance |
||
72 | * |
||
73 | * @return null|integer null or 0 if everything went fine, or an error code |
||
74 | * |
||
75 | * @throws \LogicException When this abstract method is not implemented |
||
76 | * @see setCode() |
||
77 | */ |
||
78 | protected function execute(InputInterface $input, OutputInterface $output) |
||
80 | } |