Пример #1
0
<?php

use Virge\Event\Command\AsyncEventRunnerCommand;
use Virge\Cli;
/**
 * 
 * @author Michael Kramer
 */
Cli::add(AsyncEventRunnerCommand::COMMAND . ':init', "\\Virge\\Event\\Command\\AsyncEventRunnerCommand", "init");
Пример #2
0
<?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');
Пример #3
0
<?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');
Пример #4
0
<?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");