mirror of
https://github.com/filegator/filegator.git
synced 2025-09-01 11:42:37 +02:00
initial commit
This commit is contained in:
32
dist/index.php
vendored
Normal file
32
dist/index.php
vendored
Normal file
@@ -0,0 +1,32 @@
|
||||
<?php
|
||||
|
||||
/*
|
||||
* This file is part of the FileGator package.
|
||||
*
|
||||
* (c) Milos Stojanovic <alcalbg@gmail.com>
|
||||
*
|
||||
* For the full copyright and license information, please view the LICENSE
|
||||
* file that was distributed with this source code.
|
||||
*/
|
||||
|
||||
require __DIR__.'/../vendor/autoload.php';
|
||||
|
||||
if (! defined('APP_ENV')) {
|
||||
define('APP_ENV', 'production');
|
||||
}
|
||||
if (! defined('APP_PUBLIC_PATH')) {
|
||||
define('APP_PUBLIC_PATH', '');
|
||||
}
|
||||
define('APP_PUBLIC_DIR', __DIR__);
|
||||
define('APP_VERSION', '7.0.0');
|
||||
|
||||
use Filegator\App;
|
||||
use Filegator\Config\Config;
|
||||
use Filegator\Container\Container;
|
||||
use Filegator\Kernel\Request;
|
||||
use Filegator\Kernel\Response;
|
||||
use Filegator\Kernel\StreamedResponse;
|
||||
|
||||
$config = require __DIR__.'/../configuration.php';
|
||||
|
||||
new App(new Config($config), Request::createFromGlobals(), new Response(), new StreamedResponse(), new Container());
|
Reference in New Issue
Block a user