mirror of
https://github.com/friendica/friendica
synced 2025-02-06 23:38:50 +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->mode,
|
||||
$this->config,
|
||||
$this->profiler,
|
||||
);
|
||||
|
||||
$this->registerTemplateEngine();
|
||||
|
@ -278,7 +279,8 @@ class App
|
|||
DbaDefinition $dbaDefinition,
|
||||
ViewDefinition $viewDefinition,
|
||||
Mode $mode,
|
||||
IManageConfigValues $config
|
||||
IManageConfigValues $config,
|
||||
Profiler $profiler
|
||||
): void {
|
||||
if ($config->get('system', 'ini_max_execution_time') !== false) {
|
||||
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
|
||||
date_default_timezone_set('UTC');
|
||||
|
||||
$this->profiler->reset();
|
||||
$profiler->reset();
|
||||
|
||||
if ($mode->has(Mode::DBAVAILABLE)) {
|
||||
Core\Hook::loadHooks();
|
||||
|
|
Loading…
Add table
Reference in a new issue