-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathanx
29 lines (22 loc) · 778 Bytes
/
anx
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
<?php
// Define o separador de diretorio
use AnexusPHP\Setup\Anx;
define('DS', DIRECTORY_SEPARATOR);
// Carregando PATH
define('PATH_ROOT', dirname(__FILE__) . DS);
define('PATH_PUBLIC', PATH_ROOT . 'public' . DS);
define('PATH_CACHE', PATH_ROOT . 'cache' . DS);
define('PATH_LOGS', PATH_ROOT . 'logs' . DS);
define('PATH_UPLOADS', PATH_PUBLIC . 'uploads' . DS);
define('PATH_MIGRATIONS', PATH_ROOT . 'migrations' . DS);
define('PATH_ROUTES', PATH_ROOT . 'routes' . DS);
// Carregando composer
require PATH_ROOT . 'vendor/autoload.php';
// argumento da linha de comando
unset($argv[0]);
$function = isset($argv[1]) ? $argv[1] : '';
unset($argv[1]);
// configurando script
ignore_user_abort(1);
set_time_limit(0);
(new Anx())->start($function, array_values($argv), true);