|
@@ -63,6 +63,7 @@ if (!defined('DISABLE_DATA_LOCALIZER_PORTAL'))
|
|
$bDebug = (isset($_REQUEST['debug']) && ($_REQUEST['debug'] === 'true') );
|
|
$bDebug = (isset($_REQUEST['debug']) && ($_REQUEST['debug'] === 'true') );
|
|
|
|
|
|
// Initializing Silex framework
|
|
// Initializing Silex framework
|
|
|
|
+$oKPI = new ExecutionKPI();
|
|
$oApp = new Silex\Application();
|
|
$oApp = new Silex\Application();
|
|
|
|
|
|
// Registring optional silex components
|
|
// Registring optional silex components
|
|
@@ -80,6 +81,7 @@ $oApp->register(new Silex\Provider\TwigServiceProvider(), array(
|
|
)
|
|
)
|
|
));
|
|
));
|
|
$oApp->register(new Silex\Provider\HttpFragmentServiceProvider());
|
|
$oApp->register(new Silex\Provider\HttpFragmentServiceProvider());
|
|
|
|
+$oKPI->ComputeAndReport('Initialization of the Silex application');
|
|
|
|
|
|
// Configuring Silex application
|
|
// Configuring Silex application
|
|
$oApp['debug'] = $bDebug;
|
|
$oApp['debug'] = $bDebug;
|
|
@@ -96,17 +98,27 @@ $oApp['combodo.portal.instance.routes'] = array();
|
|
ApplicationHelper::RegisterExceptionHandler($oApp);
|
|
ApplicationHelper::RegisterExceptionHandler($oApp);
|
|
|
|
|
|
// Preparing portal foundations (Can't use Silex autoload through composer as we don't follow PSR conventions -filenames, functions-)
|
|
// Preparing portal foundations (Can't use Silex autoload through composer as we don't follow PSR conventions -filenames, functions-)
|
|
|
|
+$oKPI = new ExecutionKPI();
|
|
ApplicationHelper::LoadControllers();
|
|
ApplicationHelper::LoadControllers();
|
|
ApplicationHelper::LoadRouters();
|
|
ApplicationHelper::LoadRouters();
|
|
ApplicationHelper::RegisterRoutes($oApp);
|
|
ApplicationHelper::RegisterRoutes($oApp);
|
|
ApplicationHelper::LoadBricks();
|
|
ApplicationHelper::LoadBricks();
|
|
ApplicationHelper::LoadFormManagers();
|
|
ApplicationHelper::LoadFormManagers();
|
|
ApplicationHelper::RegisterTwigExtensions($oApp['twig']);
|
|
ApplicationHelper::RegisterTwigExtensions($oApp['twig']);
|
|
|
|
+$oKPI->ComputeAndReport('Loading portal files (routers, controllers, ...)');
|
|
|
|
|
|
// Loading portal configuration from the module design
|
|
// Loading portal configuration from the module design
|
|
|
|
+$oKPI = new ExecutionKPI();
|
|
ApplicationHelper::LoadPortalConfiguration($oApp);
|
|
ApplicationHelper::LoadPortalConfiguration($oApp);
|
|
|
|
+$oKPI->ComputeAndReport('Parsing portal configuration');
|
|
// Loading current user
|
|
// Loading current user
|
|
ApplicationHelper::LoadCurrentUser($oApp);
|
|
ApplicationHelper::LoadCurrentUser($oApp);
|
|
|
|
|
|
// Running application
|
|
// Running application
|
|
|
|
+$oKPI = new ExecutionKPI();
|
|
$oApp->run();
|
|
$oApp->run();
|
|
|
|
+$oKPI->ComputeAndReport('Page execution and rendering');
|
|
|
|
+
|
|
|
|
+// Logging trace and stats
|
|
|
|
+DBSearch::RecordQueryTrace();
|
|
|
|
+ExecutionKPI::ReportStats();
|