-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcmd
More file actions
31 lines (25 loc) · 1018 Bytes
/
cmd
File metadata and controls
31 lines (25 loc) · 1018 Bytes
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
#!/usr/bin/env php
<?php
require './vendor/autoload.php';
use Abdslam01\MiniFrameworkCore\Env;
use Symfony\Component\Console\Application;
use Abdslam01\MiniFrameworkCore\Helpers\Helpers;
use Abdslam01\MiniFrameworkCore\Database\Database;
use Abdslam01\MiniFrameworkCore\Console\ModelMakeCommand;
use Abdslam01\MiniFrameworkCore\Console\RequestMakeCommand;
use Abdslam01\MiniFrameworkCore\Console\MigrationMakeCommand;
use Abdslam01\MiniFrameworkCore\Console\ControllerMakeCommand;
use Abdslam01\MiniFrameworkCore\Console\MigrationExecuteCommand;
use Abdslam01\MiniFrameworkCore\Console\ProjectServeCommand;
Env::load();
Helpers::load();
Database::init();
$application = new Application();
# add commands in here
$application->add(new ControllerMakeCommand());
$application->add(new ModelMakeCommand());
$application->add(new MigrationExecuteCommand());
$application->add(new MigrationMakeCommand());
$application->add(new RequestMakeCommand());
$application->add(new ProjectServeCommand());
$application->run();