mirror of
https://github.com/Combodo/iTop.git
synced 2026-05-21 16:22:20 +02:00
N°2060 [WIP] Initialisation of the portal application:
- Refactor kernel bootstrapping: - Make bin/console from SF work - Make iTopPortalEditUrlMaker / iTopPortalViewUrlMaker work again - Add classmap to /application in composer.json
This commit is contained in:
@@ -1,17 +1,9 @@
|
||||
<?php
|
||||
|
||||
use Combodo\iTop\Portal\Kernel;
|
||||
use Symfony\Component\Debug\Debug;
|
||||
use Symfony\Component\HttpFoundation\Request;
|
||||
|
||||
require dirname(__DIR__).'/config/bootstrap.php';
|
||||
require_once APPROOT . '/application/loginwebpage.class.inc.php';
|
||||
|
||||
if ($_SERVER['APP_DEBUG']) {
|
||||
umask(0000);
|
||||
|
||||
Debug::enable();
|
||||
}
|
||||
require_once MODULESROOT . 'itop-portal-base/portal/config/bootstrap.php';
|
||||
|
||||
// Note: Manually refactored ternary condition to be PHP 5.x compatible
|
||||
if ($trustedProxies = isset($_SERVER['TRUSTED_PROXIES']) ? $_SERVER['TRUSTED_PROXIES'] : (isset($_ENV['TRUSTED_PROXIES']) ? $_ENV['TRUSTED_PROXIES'] : false) ) {
|
||||
|
||||
Reference in New Issue
Block a user