<?php use Virge\Event\Command\AsyncEventRunnerCommand; use Virge\Cli; /** * * @author Michael Kramer */ Cli::add(AsyncEventRunnerCommand::COMMAND . ':init', "\\Virge\\Event\\Command\\AsyncEventRunnerCommand", "init");
<?php use Virge\Cli; /** * Registers all given handlers with Virge that this Capsule contains * @author Michael Kramer */ Cli::add('db:schema:create', '\\Virge\\Database\\Command\\SchemaCommand', 'create'); Cli::add('db:schema:commit', '\\Virge\\Database\\Command\\SchemaCommand', 'commit'); Cli::add('db:schema:init', '\\Virge\\Database\\Command\\SchemaCommand', 'init');
<?php use Virge\Cli; use Virge\Graphite\Command\WorkerCommand; use Virge\Graphite\Command\SupervisorCommand; Cli::add(WorkerCommand::COMMAND, new WorkerCommand(), 'run'); Cli::add(SupervisorCommand::COMMAND, new SupervisorCommand(), 'run');
<?php use Virge\Cli; use Virge\Cron\Command\CleanupCommand; use Virge\Cron\Command\InitCommand; use Virge\Cron\Command\ScheduleCommand; use Virge\Cron\Command\SupervisorCommand; use Virge\Cron\Command\WorkerCommand; /** * * @author Michael Kramer */ Cli::add(CleanupCommand::COMMAND, "\\Virge\\Cron\\Command\\CleanupCommand", "cleanup"); Cli::add(InitCommand::COMMAND, "\\Virge\\Cron\\Command\\InitCommand", "init"); Cli::add(ScheduleCommand::COMMAND, "\\Virge\\Cron\\Command\\ScheduleCommand", "schedule"); Cli::add(SupervisorCommand::COMMAND, "\\Virge\\Cron\\Command\\SupervisorCommand", "start"); Cli::add(WorkerCommand::COMMAND, "\\Virge\\Cron\\Command\\WorkerCommand", "work");