mirror of
https://git.friendi.ca/friendica/friendica.git
synced 2025-06-12 00:14:26 +02:00
Create own base URL class which holds the whole base url business logic
This commit is contained in:
parent
6ea531d2f8
commit
318a3ca785
16 changed files with 434 additions and 876 deletions
|
@ -5,6 +5,7 @@ namespace Friendica\Factory;
|
|||
use Friendica\App;
|
||||
use Friendica\Factory;
|
||||
use Friendica\Util\BasePath;
|
||||
use Friendica\Util\BaseURL;
|
||||
use Friendica\Util\Config;
|
||||
|
||||
class DependencyFactory
|
||||
|
@ -34,7 +35,8 @@ class DependencyFactory
|
|||
Factory\ConfigFactory::createPConfig($configCache);
|
||||
$logger = Factory\LoggerFactory::create($channel, $config, $profiler);
|
||||
Factory\LoggerFactory::createDev($channel, $config, $profiler);
|
||||
$baseURL = new BaseURL($config, $_SERVER);
|
||||
|
||||
return new App($config, $mode, $router, $logger, $profiler, $isBackend);
|
||||
return new App($config, $mode, $router, $baseURL, $logger, $profiler, $isBackend);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue