mirror of
https://github.com/friendica/friendica
synced 2025-02-07 01:38:51 +00:00
Inject profiler into App::load() via parameter
This commit is contained in:
parent
6c0a2eaefc
commit
e57424ec35
1 changed files with 4 additions and 2 deletions
|
@ -164,6 +164,7 @@ class App
|
||||||
$this->container->create(ViewDefinition::class),
|
$this->container->create(ViewDefinition::class),
|
||||||
$this->mode,
|
$this->mode,
|
||||||
$this->config,
|
$this->config,
|
||||||
|
$this->profiler,
|
||||||
);
|
);
|
||||||
|
|
||||||
$this->registerTemplateEngine();
|
$this->registerTemplateEngine();
|
||||||
|
@ -278,7 +279,8 @@ class App
|
||||||
DbaDefinition $dbaDefinition,
|
DbaDefinition $dbaDefinition,
|
||||||
ViewDefinition $viewDefinition,
|
ViewDefinition $viewDefinition,
|
||||||
Mode $mode,
|
Mode $mode,
|
||||||
IManageConfigValues $config
|
IManageConfigValues $config,
|
||||||
|
Profiler $profiler
|
||||||
): void {
|
): void {
|
||||||
if ($config->get('system', 'ini_max_execution_time') !== false) {
|
if ($config->get('system', 'ini_max_execution_time') !== false) {
|
||||||
set_time_limit((int) $config->get('system', 'ini_max_execution_time'));
|
set_time_limit((int) $config->get('system', 'ini_max_execution_time'));
|
||||||
|
@ -296,7 +298,7 @@ class App
|
||||||
// Ensure that all "strtotime" operations do run timezone independent
|
// Ensure that all "strtotime" operations do run timezone independent
|
||||||
date_default_timezone_set('UTC');
|
date_default_timezone_set('UTC');
|
||||||
|
|
||||||
$this->profiler->reset();
|
$profiler->reset();
|
||||||
|
|
||||||
if ($mode->has(Mode::DBAVAILABLE)) {
|
if ($mode->has(Mode::DBAVAILABLE)) {
|
||||||
Core\Hook::loadHooks();
|
Core\Hook::loadHooks();
|
||||||
|
|
Loading…
Add table
Reference in a new issue