-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathnova
More file actions
70 lines (63 loc) · 2.38 KB
/
nova
File metadata and controls
70 lines (63 loc) · 2.38 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
66
67
68
69
70
#!/usr/bin/env php
<?php
/*
|========================================================================================
| Version Check
|========================================================================================
|
| This step verifies whether the php version meets the requirements of the framework.
| If the php version does not meet the required criteria, an error will be displayed,
| and the application will terminate to prevent potential compatibility issues and
| optimal performance.
|
*/
if (version_compare(phpversion(), '8.2', '<')) {
exit('PHP version 8.2 or newer is required. Current version: ' . phpversion());
}
# define a short definition for DIRECTORY_SEPARATOR
define('DS', DIRECTORY_SEPARATOR);
/*
|========================================================================
| Root Directory Constant Definition
|========================================================================
|
| Set DIR_ROOT aas the parent directory of the current directory,
| establishing the base path for the application structure.
|
*/
define('DIR_ROOT', __DIR__ . DS);
/*
|========================================================================
| Framework's Constants Inclusion
|========================================================================
|
| Loads the constant.php file from the framework's lib directory,
| bringing in essential constant definitions for the framework.
|
*/
require_once join(DS, [DIR_ROOT, 'lib', 'constant.php']);
/*
|======================================================================
| Composer Autoloader Initialization
|======================================================================
|
| Includes Composer's autoload file to enable PSR-4 autoloading,
| automatically loading all vendor dependencies and classes
|
*/
require "vendor/autoload.php";
/*
|======================================================================
| Boot Application
|======================================================================
|
| Loads the `application.php` bootstrap file and calls
| the `boot` method of the `NovaFrame\Kernel` class to finalize
| the bootstrapping process
|
| @see bootstrap/application.php
| @see \NovaFrame\Kernel::boot()
|
*/
exit((require DIR_BOOTSTRAP . 'application.php')
->boot(new \Symfony\Component\Console\Input\ArgvInput()));