Repository navigation
Expand file tree
/
Copy pathheader.php
More file actions
65 lines (55 loc) · 2.01 KB
/
Copy pathheader.php
File metadata and controls
65 lines (55 loc) · 2.01 KB
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
55
56
57
58
59
60
61
62
63
64
65
<?php
/**
* @package ZCode
* @author Miguel92
* @copyright 2024 - 2026
* @version 4.0.0
*/
declare(strict_types=1);
use App\Http\MiddlewareKernel;
use App\Themes\ThemeResolver;
use App\Views\ViewComposer;
/*
|--------------------------------------------------------------------------
| CONSTANTES BÁSICAS DEL SISTEMA
|--------------------------------------------------------------------------
*/
defined('ZCODE_ULTIMATE') or define('ZCODE_ULTIMATE', true);
defined('SCRIPT_VERSION') or define(
'SCRIPT_VERSION',
trim(file_get_contents(__DIR__ . '/.version'))
);
defined('SCRIPT_NAME') or define('SCRIPT_NAME', 'ZCode');
defined('SCRIPT_AUTHOR') or define('SCRIPT_AUTHOR', 'Miguel92');
/*
|--------------------------------------------------------------------------
| BOOTSTRAP: AUTOLOAD + CONTENEDOR + CONFIG SISTEMA
|--------------------------------------------------------------------------
*/
$app = require __DIR__ . '/bootstrap/app.php';
/*
|--------------------------------------------------------------------------
| TEMA
|--------------------------------------------------------------------------
*/
define('TS_TEMA', (new ThemeResolver)->resolve($tsCore));
/*
|--------------------------------------------------------------------------
| CONFIGURACIÓN DE SMARTY
|--------------------------------------------------------------------------
| Mantener esto limpio es crítico. Nada de lógica mezclada con asignaciones.
|--------------------------------------------------------------------------
*/
$smarty->output(false);
/*
|--------------------------------------------------------------------------
| MIDDLEWARES
|--------------------------------------------------------------------------
*/
(new MiddlewareKernel)->run($tsCore, $tsUser, $smarty);
/*
|--------------------------------------------------------------------------
| VIEW COMPOSER
|--------------------------------------------------------------------------
*/
(new ViewComposer)->compose($smarty, $tsCore, $tsUser, $tsMonitor, $tsMP, $Theme, $Seo);