Skip to content

Commit

Permalink
(NFC) BaseCommand
Browse files Browse the repository at this point in the history
  • Loading branch information
totten committed Sep 24, 2024
1 parent 0dfb8e3 commit 25cb9d8
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions lib/src/Command/BaseCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,14 @@
use Symfony\Component\Console\Input\InputInterface;
use Symfony\Component\Console\Output\OutputInterface;

/**
* Cv's `BaseCommand` is a Symfony `Command` with support for bootstrapping CiviCRM/CMS.
*
* - From end-user POV, the command accepts options like --user, --level, --hostname.
* - From dev POV, the command allows you to implement `execute()` method without needing to
* explicitly boot Civi.
* - From dev POV, you may fine-tune command by changing the $bootOptions / getBootOptions().
*/
class BaseCommand extends Command {

use OptionCallbackTrait;
Expand Down

0 comments on commit 25cb9d8

Please sign in to comment.