This repository has been archived by the owner on Oct 15, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathindex.php
37 lines (34 loc) · 1.76 KB
/
index.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
36
37
<?php
/*!
* This file is part of {@link https://github.com/MovLib MovLib}.
*
* Copyright © 2013-present {@link https://movlib.org/ MovLib}.
*
* MovLib is free software: you can redistribute it and/or modify it under the terms of the GNU Affero General Public
* License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later
* version.
*
* MovLib is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty
* of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Affero General Public License for more details.
*
* You should have received a copy of the GNU Affero General Public License along with MovLib.
* If not, see {@link http://www.gnu.org/licenses/ gnu.org/licenses}.
*/
/**
* Main PHP script serving all page requests within the MovLib application.
*
* The main script contains all bootstrap functionaility that every script needs. We do not include another file for the
* bootstrap process, simply to keep things easy to understand. But, this file should only contains procedural PHP
* extensions and no object-oriented code. Additionally developers should think long and hard if the function they are
* going to implement is really needed by every request. If not, move it to some other place that is more appropriate
* (like a static class that is automatically loaded if a script needs a method from it).
*
* @author Richard Fussenegger <[email protected]>
* @copyright © 2013 MovLib
* @license http://www.gnu.org/licenses/agpl.html AGPL-3.0
* @link https://movlib.org/
* @since 0.0.1-dev
*/
// No need for IIFE because we aren't declaring any variables.
require __DIR__ . "/lib/autoload.php";
(new \MovLib\Core\Kernel())->bootHTTP();