Selaa lähdekoodia

adding parameter to App

tags/2019.03^2
Philipp Holzer 1 vuosi sitten
vanhempi
commit
cb1ad4287d
No known key found for this signature in database GPG Key ID: 517BE60E2CE5C8A5
5 muutettua tiedostoa jossa 5 lisäystä ja 5 poistoa
  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 Näytä tiedosto

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



+ 1
- 1
bin/console.php Näytä tiedosto

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


+ 1
- 1
bin/daemon.php Näytä tiedosto

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



+ 1
- 1
bin/worker.php Näytä tiedosto

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



+ 1
- 1
index.php Näytä tiedosto

@@ -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…
Peruuta
Tallenna