1 | <?php |
||
17 | abstract class BaseCommand extends Command |
||
18 | { |
||
19 | /** |
||
20 | * Load a .csr file via an CLI argument |
||
21 | * @param Symfony\Component\Console\Input\InputInterface $input |
||
22 | * @param Symfony\Component\Console\Output\OutputInterface $output |
||
23 | * @return bool|void |
||
24 | */ |
||
25 | public function loadCSR(InputInterface $input, OutputInterface $output) |
||
37 | } |
||
38 |
An exit expression should only be used in rare cases. For example, if you write a short command line script.
In most cases however, using an
exit
expression makes the code untestable and often causes incompatibilities with other libraries. Thus, unless you are absolutely sure it is required here, we recommend to refactor your code to avoid its usage.