X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=src%2FFactory%2FDependencyFactory.php;h=acbf4bfaf7a0ced05776e455404baba58439d194;hb=d6944eb894df3f245e2a5bb691da2f9b306e253a;hp=041202e6bfde7eedad4dbe9ffba1d0edbbeff41e;hpb=cdcf1667d7cb5cdcf960b5939deb558dd3f22233;p=friendica.git diff --git a/src/Factory/DependencyFactory.php b/src/Factory/DependencyFactory.php index 041202e6bf..acbf4bfaf7 100644 --- a/src/Factory/DependencyFactory.php +++ b/src/Factory/DependencyFactory.php @@ -25,12 +25,13 @@ class DependencyFactory $basedir = BasePath::create($directory, $_SERVER); $configLoader = new Cache\ConfigCacheLoader($basedir); $configCache = Factory\ConfigFactory::createCache($configLoader); - Factory\DBFactory::init($configCache, $_SERVER); + $profiler = Factory\ProfilerFactory::create($configCache); + Factory\DBFactory::init($configCache, $profiler, $_SERVER); $config = Factory\ConfigFactory::createConfig($configCache); // needed to call PConfig::init() Factory\ConfigFactory::createPConfig($configCache); - Factory\LoggerFactory::create($channel, $config); + $logger = Factory\LoggerFactory::create($channel, $config); - return new App($config, $isBackend); + return new App($config, $logger, $profiler, $isBackend); } }