-
Notifications
You must be signed in to change notification settings - Fork 0
/
manager
executable file
·54 lines (39 loc) · 1.04 KB
/
manager
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
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
#!/usr/bin/env php
<?php
require __DIR__ . '/vendor/autoload.php';
// Load environment
putenv('BASE_DIR='.realpath(__DIR__));
$dotenv = \Dotenv\Dotenv::create(getenv('BASE_DIR'));
$dotenv->load();
use Symfony\Component\Console\Application;
use Commands\Migration\CreateMigrationCommand;
use Commands\Migration\RunMigrationCommand;
use Commands\Seed\CreateSeedCommand;
use Commands\Seed\RunSeedCommand;
use Commands\Asset\CompileCommand;
use Commands\Secret\GenerateSecretCommand;
use Commands\Initialization\InitializationCommand;
$application = new Application();
/*
* Initialization command
*/
$application->add(new InitializationCommand());
/*
* Migration commands
*/
$application->add(new CreateMigrationCommand());
$application->add(new RunMigrationCommand());
/*
* Seed commands
*/
$application->add(new CreateSeedCommand());
$application->add(new RunSeedCommand());
/*
* Assets management commands
*/
$application->add(new CompileCommand());
/*
* Secret generator
*/
$application->add(new GenerateSecretCommand());
$application->run();