forked from chaosarium/lwt
-
-
Notifications
You must be signed in to change notification settings - Fork 19
Expand file tree
/
Copy pathindex.php
More file actions
30 lines (27 loc) · 832 Bytes
/
index.php
File metadata and controls
30 lines (27 loc) · 832 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
<?php declare(strict_types=1);
/**
* LWT Front Controller
*
* This file serves as the single entry point for all requests.
* It bootstraps the application and delegates to the Application class.
*
* PHP version 8.1
*
* @category User_Interface
* @package Lwt
* @author LWT Project <lwt-project@hotmail.com>
* @license Unlicense <http://unlicense.org/>
* @link https://hugofara.github.io/lwt/developer/api
* @since 3.0.0
*
* "Learning with Texts" (LWT) is free and unencumbered software
* released into the PUBLIC DOMAIN.
*/
// Define base path constant
define('LWT_BASE_PATH', __DIR__);
// Load Composer autoloader for PSR-4 class autoloading
require_once LWT_BASE_PATH . '/vendor/autoload.php';
// Create and run the application
$app = new \Lwt\Application(LWT_BASE_PATH);
$app->bootstrap();
$app->run();