-
Notifications
You must be signed in to change notification settings - Fork 1
/
index.php
29 lines (24 loc) · 976 Bytes
/
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
<?php
/*
* Copyright (c) 2014, webvariants GmbH & Co. KG, http://www.webvariants.de
*
* This file is released under the terms of the MIT license. You can find the
* complete text in the attached LICENSE file or online at:
*
* http://www.opensource.org/licenses/mit-license.php
*/
// remove magic_quotes and register_globals side effects
// You can safely remove this if your server is properly configured.
require 'sally/core/request-filter.php';
// determine application from URI
// If you want/need custom app routing (e.g. not have the backend at /backend/),
// copy the file's content here and adjust as necessary.
list ($slyAppName, $slyAppBase) = require 'sally/core/detect-app.php';
// start output buffering
ob_start();
ob_implicit_flush(0);
// boot Core system
$loader = require 'sally/core/autoload.php';
$container = sly_Core::boot($loader, null, $slyAppName, $slyAppBase);
// boot the requested application
require 'sally/'.$slyAppName.'/boot.php';