forked from c2is/silex-bootstrap
-
Notifications
You must be signed in to change notification settings - Fork 0
/
console
executable file
·33 lines (26 loc) · 1.01 KB
/
console
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
#!/usr/bin/env php
<?php
/*
* This file is part of the c2is/silex-bootstrap.
*
* (c) Morgan Brunot <brunot.morgan@gmail.com>
*/
set_time_limit(0);
require_once __DIR__.'/vendor/autoload.php';
require_once __DIR__.'/src/bootstrap.php';
$console = $app['console'];
use Core\Command\Tests\UnitsCommand as TestsUnitsCommand;
use Core\Command\Tests\FeaturesCommand as TestsFeaturesCommand;
use Core\Command\Migration\UpCommand as MigrationUpCommand;
use Core\Command\Migration\DownCommand as MigrationDownCommand;
use Core\Command\Migration\GenerateCommand as MigrationGenerateCommand;
use Core\Command\Propel\GenerateCommand as PropelGenerateCommand;
use Core\Command\Clear\CacheCommand as ClearCacheCommand;
$console->add(new TestsUnitsCommand());
$console->add(new TestsFeaturesCommand());
$console->add(new MigrationUpCommand());
$console->add(new MigrationDownCommand());
$console->add(new MigrationGenerateCommand());
$console->add(new PropelGenerateCommand());
$console->add(new ClearCacheCommand());
$console->run();