mirror of
https://github.com/friendica/friendica
synced 2024-12-22 18:00:16 +00:00
adding parameter to App
This commit is contained in:
parent
0a7861da65
commit
cb1ad4287d
5 changed files with 5 additions and 5 deletions
|
@ -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);
|
||||
|
||||
|
|
|
@ -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);
|
||||
|
|
|
@ -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);
|
||||
|
||||
|
|
|
@ -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);
|
||||
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue