-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathforge.php
More file actions
30 lines (23 loc) · 774 Bytes
/
forge.php
File metadata and controls
30 lines (23 loc) · 774 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
#!/usr/bin/env php
<?php
declare(strict_types=1);
define("BASE_PATH", __DIR__);
require_once BASE_PATH . "/engine/Core/Support/helpers.php";
use Forge\Core\Bootstrap\Bootstrap;
use Forge\Core\DI\Container;
use Forge\CLI\Application;
use Forge\Core\Autoloader;
use Forge\Core\Config\EnvParser;
use Forge\Core\Debug\Metrics;
require BASE_PATH . "/engine/Core/Autoloader.php";
require BASE_PATH . "/engine/Core/Config/EnvParser.php";
Autoloader::register();
EnvParser::load(BASE_PATH . "/.env");
ini_set('display_errors', '1');
error_reporting(E_ALL);
$container = Container::getInstance();
Metrics::start('cli_resolution');
$container = Bootstrap::initCliContainer();
$app = $container->get(Application::class);
Metrics::stop('cli_resolution');
exit($app->run($argv));