Updating PHPCI to use Symfony/Console rather than a series of individual PHP files.

This commit is contained in:
Dan Cryer 2013-05-15 18:27:13 +01:00
commit 988fa42d92
9 changed files with 231 additions and 132 deletions

17
console Executable file
View file

@ -0,0 +1,17 @@
#!/usr/bin/env php
<?php
require_once('bootstrap.php');
use PHPCI\Command\RunCommand;
use PHPCI\Command\GenerateCommand;
use PHPCI\Command\InstallCommand;
use Symfony\Component\Console\Application;
define('PHPCI_BIN_DIR', dirname(__FILE__) . '/vendor/bin/');
define('PHPCI_DIR', dirname(__FILE__) . '/');
$application = new Application();
$application->add(new RunCommand);
$application->add(new InstallCommand);
$application->add(new GenerateCommand);
$application->run();