X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=src%2FFactory%2FDependencyFactory.php;h=65bdf37140a4ebc232d55932a21a4b89eddfdd09;hb=49def0dc27285557e91d7f8cf4c4ff97bac1489c;hp=52178bb77fb9d41e753205f187d94d20b55f191d;hpb=fb371e10486f535ffcb52569a55e185b5a78c015;p=friendica.git diff --git a/src/Factory/DependencyFactory.php b/src/Factory/DependencyFactory.php index 52178bb77f..65bdf37140 100644 --- a/src/Factory/DependencyFactory.php +++ b/src/Factory/DependencyFactory.php @@ -3,9 +3,9 @@ namespace Friendica\Factory; use Friendica\App; -use Friendica\Core\Config\Cache; use Friendica\Factory; use Friendica\Util\BasePath; +use Friendica\Util\Config; class DependencyFactory { @@ -23,15 +23,17 @@ class DependencyFactory public static function setUp($channel, $directory, $isBackend = true) { $basePath = BasePath::create($directory, $_SERVER); - $configLoader = new Cache\ConfigCacheLoader($basePath); + $mode = new App\Mode($basePath); + $configLoader = new Config\ConfigFileLoader($basePath, $mode); $configCache = Factory\ConfigFactory::createCache($configLoader); $profiler = Factory\ProfilerFactory::create($configCache); Factory\DBFactory::init($basePath, $configCache, $profiler, $_SERVER); $config = Factory\ConfigFactory::createConfig($configCache); // needed to call PConfig::init() Factory\ConfigFactory::createPConfig($configCache); - $logger = Factory\LoggerFactory::create($channel, $config); + $logger = Factory\LoggerFactory::create($channel, $config, $profiler); + Factory\LoggerFactory::createDev($channel, $config, $profiler); - return new App($basePath, $config, $logger, $profiler, $isBackend); + return new App($basePath, $config, $mode, $logger, $profiler, $isBackend); } }