X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=src%2FApp.php;h=7c7496c3baf138a0b47d66b9241d2653d39354eb;hb=e8c0d5d445b978cbec559a8fcd15dbbfa8fd636a;hp=3a952c7a338c7ba7f43b7994adf7325f694ce43f;hpb=15b93b4459f051c1cf6d394a597399f17f9748f3;p=friendica.git diff --git a/src/App.php b/src/App.php index 3a952c7a33..7c7496c3ba 100644 --- a/src/App.php +++ b/src/App.php @@ -25,6 +25,7 @@ use Exception; use Friendica\App\Arguments; use Friendica\App\BaseURL; use Friendica\App\Module; +use Friendica\Factory\ConfigFactory; use Friendica\Module\Maintenance; use Friendica\Security\Authentication; use Friendica\Core\Config\Cache; @@ -132,7 +133,7 @@ class App * @param int $user_id * @return void */ - public function setUserId(int $user_id) + public function setLoggedInUserId(int $user_id) { $this->user_id = $user_id; } @@ -143,7 +144,7 @@ class App * @param int $user_id * @return void */ - public function setNickname(string $nickname) + public function setLoggedInUserNickname(string $nickname) { $this->nickname = $nickname; } @@ -157,7 +158,7 @@ class App * Fetch the user id * @return int */ - public function getUserId() + public function getLoggedInUserId() { return $this->user_id; } @@ -352,7 +353,7 @@ class App $this->profiler->update($this->config); Core\Hook::loadHooks(); - $loader = new ConfigFileLoader($this->getBasePath()); + $loader = (new ConfigFactory())->createConfigFileLoader($this->getBasePath(), $_SERVER); Core\Hook::callAll('load_config', $loader); }