Updating PHPCI to use Symfony/Console rather than a series of individual PHP files.
This commit is contained in:
parent
505b0c0563
commit
988fa42d92
9 changed files with 231 additions and 132 deletions
17
console
Executable file
17
console
Executable 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();
|
||||
Loading…
Add table
Add a link
Reference in a new issue