From cb1ad4287d114ef3c712aa2d163a7f80e9bd48f1 Mon Sep 17 00:00:00 2001 From: Philipp Holzer Date: Sat, 16 Feb 2019 23:18:24 +0100 Subject: [PATCH] adding parameter to App --- bin/auth_ejabberd.php | 2 +- bin/console.php | 2 +- bin/daemon.php | 2 +- bin/worker.php | 2 +- index.php | 2 +- 5 files changed, 5 insertions(+), 5 deletions(-) diff --git a/bin/auth_ejabberd.php b/bin/auth_ejabberd.php index 8a5c43c6df..cc2517644c 100755 --- a/bin/auth_ejabberd.php +++ b/bin/auth_ejabberd.php @@ -58,7 +58,7 @@ $basedir = BasePath::create(dirname(__DIR__), $_SERVER); $configLoader = new Config\ConfigCacheLoader($basedir); $config = Factory\ConfigFactory::createCache($configLoader); $logger = Factory\LoggerFactory::create('auth_ejabberd', $config); -$profiler = Factory\ProfilerFactory::create($config); +$profiler = Factory\ProfilerFactory::create($logger, $config); $a = new App($config, $logger, $profiler); diff --git a/bin/console.php b/bin/console.php index ceccfc823e..757af31d5d 100755 --- a/bin/console.php +++ b/bin/console.php @@ -11,7 +11,7 @@ $basedir = BasePath::create(dirname(__DIR__), $_SERVER); $configLoader = new Config\ConfigCacheLoader($basedir); $config = Factory\ConfigFactory::createCache($configLoader); $logger = Factory\LoggerFactory::create('console', $config); -$profiler = Factory\ProfilerFactory::create($config); +$profiler = Factory\ProfilerFactory::create($logger, $config); $a = new Friendica\App($config, $logger, $profiler); \Friendica\BaseObject::setApp($a); diff --git a/bin/daemon.php b/bin/daemon.php index 3b5c04b7ab..da4bc19925 100755 --- a/bin/daemon.php +++ b/bin/daemon.php @@ -37,7 +37,7 @@ $basedir = BasePath::create(dirname(__DIR__), $_SERVER); $configLoader = new Config\ConfigCacheLoader($basedir); $config = Factory\ConfigFactory::createCache($configLoader); $logger = Factory\LoggerFactory::create('daemon', $config); -$profiler = Factory\ProfilerFactory::create($config); +$profiler = Factory\ProfilerFactory::create($logger, $config); $a = new App($config, $logger, $profiler); diff --git a/bin/worker.php b/bin/worker.php index c93abaf0fe..9b396c6f9c 100755 --- a/bin/worker.php +++ b/bin/worker.php @@ -35,7 +35,7 @@ $basedir = BasePath::create(dirname(__DIR__), $_SERVER); $configLoader = new Config\ConfigCacheLoader($basedir); $config = Factory\ConfigFactory::createCache($configLoader); $logger = Factory\LoggerFactory::create('worker', $config); -$profiler = Factory\ProfilerFactory::create($config); +$profiler = Factory\ProfilerFactory::create($logger, $config); $a = new App($config, $logger, $profiler); diff --git a/index.php b/index.php index d8c233be23..216fbe90ad 100644 --- a/index.php +++ b/index.php @@ -19,7 +19,7 @@ $basedir = BasePath::create(__DIR__, $_SERVER); $configLoader = new Config\ConfigCacheLoader($basedir); $config = Factory\ConfigFactory::createCache($configLoader); $logger = Factory\LoggerFactory::create('index', $config); -$profiler = Factory\ProfilerFactory::create($config); +$profiler = Factory\ProfilerFactory::create($logger, $config); // We assume that the index.php is called by a frontend process // The value is set to "true" by default in App -- 2.39.5