-
Notifications
You must be signed in to change notification settings - Fork 20
/
cli.php
31 lines (28 loc) · 1.01 KB
/
cli.php
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
<?php
// application.php
require 'vendor/autoload.php';
use App\Commands\CreateActionCommand;
use App\Commands\CreateMiddlewareCommand;
use App\Commands\CreateModelCommand;
use App\Commands\CreateScaffoldCommand;
use App\Commands\MigrationGeneratorCommand;
use Phpmig\Console\Command;
use Symfony\Component\Console\Application;
$application = new Application();
$application->add(new CreateActionCommand());
$application->add(new CreateMiddlewareCommand());
$application->add(new CreateModelCommand());
$application->add(new CreateScaffoldCommand());
$application->add(new MigrationGeneratorCommand());
$application->addCommands(array(
new Command\InitCommand(),
new Command\StatusCommand(),
new Command\CheckCommand(),
new Command\GenerateCommand(),
new Command\UpCommand(),
new Command\DownCommand(),
new Command\MigrateCommand(),
new Command\RollbackCommand(),
new Command\RedoCommand()
));
$application->run();