-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathengine.php
35 lines (29 loc) · 1.49 KB
/
engine.php
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
<?php
/*
Name: Engine
Purpose: Load framework, assemble resources and execute application
Author: Broken Arrow ([email protected]);
Created: May 30, 2018 05:30 PM
Modified: June 17, 2018 03:36 AM
*/
namespace sPHP;
require __DIR__ . "/errorhandler.php"; // Set custom error handler
require __DIR__ . "/checkenvironment.php"; // Check required environment
#region Internal resource libary
require __DIR__ . "/constant.php"; // Global constants
require __DIR__ . "/constant_mimetypeextension.php"; // MIME type to extension map constants
require __DIR__ . "/function.php"; // Framework dependent namespace independent global user function library
require __DIR__ . "/globalize.php"; // Make sPHP resources available within all scopes
require __DIR__ . "/private_function.php"; // Core private function library
require __DIR__ . "/class.php"; // Core class library
#endregion Internal resource libary
#region 3rd party object
require __DIR__ . "/library/3rdparty/BrowserDetection.php"; // https://github.com/Wolfcast/BrowserDetection
//require __DIR__ . "/library/3rdparty/maxmind/geoip2.php"; // Replaced with $Utility->IP2Geo() method
#endregion 3rd party object
require __DIR__ . "/loadclass.php"; // Load classes dynamically on demand as needed
$Application = new Application( // Create application
$Terminal = new Terminal($Environment = new Environment(new Utility(new Debug()))), // Create Terminal
$Session = new Session($Environment) // Create session
);
?>