Example #1
0
 /**
  * Schedule our potential jobs
  */
 public function schedule()
 {
     $this->getScheduleService()->scheduleJobs();
     Cli::output('Sucessfully scheduled jobs');
 }
Example #2
0
<?php

use Virge\Event\Command\AsyncEventRunnerCommand;
use Virge\Cli;
/**
 * 
 * @author Michael Kramer
 */
Cli::add(AsyncEventRunnerCommand::COMMAND . ':init', "\\Virge\\Event\\Command\\AsyncEventRunnerCommand", "init");
Example #3
0
 /**
  * Setup table to hold our migrations
  */
 public function init()
 {
     include_once Config::path("Virge\\Cron@resources/setup/database.php");
     Cli::output('Successfully initialized cron table');
 }
Example #4
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');
Example #5
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');
Example #6
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");