php-censor/bin/console

42 lines
1.5 KiB
Plaintext
Raw Normal View History

#!/usr/bin/env php
<?php
2016-04-25 19:30:23 +02:00
2013-05-16 03:16:56 +02:00
/**
* PHPCI - Continuous Integration for PHP
*
* @copyright Copyright 2013, Block 8 Limited.
* @license https://github.com/Block8/PHPCI/blob/master/LICENSE.md
* @link http://www.phptesting.org/
2013-05-16 03:16:56 +02:00
*/
2016-07-19 20:28:11 +02:00
use PHPCensor\Command\RunCommand;
use PHPCensor\Command\RebuildCommand;
use PHPCensor\Command\InstallCommand;
use PHPCensor\Command\DaemonCommand;
use PHPCensor\Command\PollCommand;
use PHPCensor\Command\CreateAdminCommand;
use PHPCensor\Command\CreateBuildCommand;
use PHPCensor\Command\WorkerCommand;
use PHPCensor\Command\RebuildQueueCommand;
use PHPCensor\Service\BuildService;
2014-12-04 12:31:21 +01:00
use b8\Store\Factory;
use PHPCensor\Console\Application;
2016-07-21 17:20:34 +02:00
define('IS_CONSOLE', true);
2016-04-21 19:05:32 +02:00
require_once(dirname(__DIR__) . '/bootstrap.php');
$application = new Application();
2013-11-28 22:18:11 +01:00
$application->add(new RunCommand($loggerConfig->getFor('RunCommand')));
$application->add(new RebuildCommand($loggerConfig->getFor('RunCommand')));
$application->add(new InstallCommand);
2013-11-28 22:18:11 +01:00
$application->add(new DaemonCommand($loggerConfig->getFor('DaemonCommand')));
$application->add(new PollCommand($loggerConfig->getFor('PollCommand')));
2014-12-04 12:31:21 +01:00
$application->add(new CreateAdminCommand(Factory::getStore('User')));
$application->add(new CreateBuildCommand(Factory::getStore('Project'), new BuildService(Factory::getStore('Build'))));
$application->add(new WorkerCommand($loggerConfig->getFor('WorkerCommand')));
2015-11-03 21:42:47 +01:00
$application->add(new RebuildQueueCommand($loggerConfig->getFor('RebuildQueueCommand')));
2014-12-04 12:31:21 +01:00
$application->run();