adding parameter to App

This commit is contained in:
Philipp Holzer 2019-02-16 23:18:24 +01:00
parent 0a7861da65
commit cb1ad4287d
No known key found for this signature in database
GPG key ID: 517BE60E2CE5C8A5
5 changed files with 5 additions and 5 deletions

View file

@ -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);

View file

@ -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);

View file

@ -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);

View file

@ -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);

View file

@ -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