-
Notifications
You must be signed in to change notification settings - Fork 0
/
dbot
52 lines (45 loc) · 1.85 KB
/
dbot
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
#!/usr/bin/env php
<?php
/**
* dFramework
*
* The simplest PHP framework for beginners
* Copyright (c) 2019 - 2021, Dimtrov Lab's
* This content is released under the Mozilla Public License 2 (MPL-2.0)
*
* @package dFramework
* @author Dimitri Sitchet Tomkeu <[email protected]>
* @copyright Copyright (c) 2019 - 2021, Dimtrov Lab's. (https://dimtrov.hebfree.org)
* @copyright Copyright (c) 2019 - 2021, Dimitri Sitchet Tomkeu. (https://www.facebook.com/dimtrovich)
* @license https://opensource.org/licenses/MPL-2.0 MPL-2.0 License
* @link https://dimtrov.hebfree.org/works/dframework
* @version 3.4.0
*/
/*
* --------------------------------------------------------------------
* dFramework Command Line Interface
* --------------------------------------------------------------------
* The main entry point into the CLI system and allows you to run
* commands and perform maintenance on your application.
*/
require_once __DIR__.DIRECTORY_SEPARATOR.'public'.DIRECTORY_SEPARATOR.'.bootstrap.php';
$app = new dFramework\core\cli\Console('dFramework', dFramework\core\dFramework::VERSION);
$app
->add(dFramework\core\cli\App::initialize())
->add(dFramework\core\cli\App::routes())
->add(dFramework\core\cli\App::serve())
->add(dFramework\core\cli\Database::create())
->add(dFramework\core\cli\Database::dump())
->add(dFramework\core\cli\Database::seed())
->add(dFramework\core\cli\General::map())
->add(dFramework\core\cli\General::test())
->add(dFramework\core\cli\Maker::controller())
->add(dFramework\core\cli\Maker::entity())
->add(dFramework\core\cli\Migration::down())
->add(dFramework\core\cli\Migration::make())
->add(dFramework\core\cli\Migration::up())
;/*
->add(new dFramework\core\cli\Maker, 'make')
->add(new dFramework\core\cli\Less);
*/
$app->handle($_SERVER['argv']);