phpci/daemonise

23 lines
610 B
Plaintext
Raw Normal View History

#!/usr/bin/env php
<?php
/**
* 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-10-10 02:01:06 +02:00
define('PHPCI_IS_CONSOLE', true);
require('bootstrap.php');
use PHPCI\Command\DaemoniseCommand;
use Symfony\Component\Console\Application;
2014-03-07 03:06:17 +01:00
$loggerConfig = \PHPCI\Logging\LoggerConfig::newFromFile(__DIR__ . "/loggerconfig.php");
2014-01-04 10:19:55 +01:00
$application = new Application();
2014-01-04 10:19:55 +01:00
$application->add(new DaemoniseCommand($loggerConfig->getFor('DaemoniseCommand')));
$application->run();