Browse Source

adding parameter to App

tags/2019.03^2
Philipp Holzer 5 months ago
parent
commit
cb1ad4287d
No account linked to committer's email address
5 changed files with 5 additions and 5 deletions
  1. 1
    1
      bin/auth_ejabberd.php
  2. 1
    1
      bin/console.php
  3. 1
    1
      bin/daemon.php
  4. 1
    1
      bin/worker.php
  5. 1
    1
      index.php

+ 1
- 1
bin/auth_ejabberd.php View File

@@ -58,7 +58,7 @@ $basedir = BasePath::create(dirname(__DIR__), $_SERVER);
58 58
 $configLoader = new Config\ConfigCacheLoader($basedir);
59 59
 $config = Factory\ConfigFactory::createCache($configLoader);
60 60
 $logger = Factory\LoggerFactory::create('auth_ejabberd', $config);
61
-$profiler = Factory\ProfilerFactory::create($config);
61
+$profiler = Factory\ProfilerFactory::create($logger, $config);
62 62
 
63 63
 $a = new App($config, $logger, $profiler);
64 64
 

+ 1
- 1
bin/console.php View File

@@ -11,7 +11,7 @@ $basedir = BasePath::create(dirname(__DIR__), $_SERVER);
11 11
 $configLoader = new Config\ConfigCacheLoader($basedir);
12 12
 $config = Factory\ConfigFactory::createCache($configLoader);
13 13
 $logger = Factory\LoggerFactory::create('console', $config);
14
-$profiler = Factory\ProfilerFactory::create($config);
14
+$profiler = Factory\ProfilerFactory::create($logger, $config);
15 15
 
16 16
 $a = new Friendica\App($config, $logger, $profiler);
17 17
 \Friendica\BaseObject::setApp($a);

+ 1
- 1
bin/daemon.php View File

@@ -37,7 +37,7 @@ $basedir = BasePath::create(dirname(__DIR__), $_SERVER);
37 37
 $configLoader = new Config\ConfigCacheLoader($basedir);
38 38
 $config = Factory\ConfigFactory::createCache($configLoader);
39 39
 $logger = Factory\LoggerFactory::create('daemon', $config);
40
-$profiler = Factory\ProfilerFactory::create($config);
40
+$profiler = Factory\ProfilerFactory::create($logger, $config);
41 41
 
42 42
 $a = new App($config, $logger, $profiler);
43 43
 

+ 1
- 1
bin/worker.php View File

@@ -35,7 +35,7 @@ $basedir = BasePath::create(dirname(__DIR__), $_SERVER);
35 35
 $configLoader = new Config\ConfigCacheLoader($basedir);
36 36
 $config = Factory\ConfigFactory::createCache($configLoader);
37 37
 $logger = Factory\LoggerFactory::create('worker', $config);
38
-$profiler = Factory\ProfilerFactory::create($config);
38
+$profiler = Factory\ProfilerFactory::create($logger, $config);
39 39
 
40 40
 $a = new App($config, $logger, $profiler);
41 41
 

+ 1
- 1
index.php View File

@@ -19,7 +19,7 @@ $basedir = BasePath::create(__DIR__, $_SERVER);
19 19
 $configLoader = new Config\ConfigCacheLoader($basedir);
20 20
 $config = Factory\ConfigFactory::createCache($configLoader);
21 21
 $logger = Factory\LoggerFactory::create('index', $config);
22
-$profiler = Factory\ProfilerFactory::create($config);
22
+$profiler = Factory\ProfilerFactory::create($logger, $config);
23 23
 
24 24
 // We assume that the index.php is called by a frontend process
25 25
 // The value is set to "true" by default in App

Loading…
Cancel
Save