mirror of
https://github.com/friendica/friendica
synced 2025-04-27 09:10:12 +00:00
Merge pull request #7379 from nupplaphil/task/refactor_l10n_for_test
Refactor L10n for testing
This commit is contained in:
commit
0b97b32a59
13 changed files with 596 additions and 450 deletions
|
@ -4,6 +4,7 @@ namespace Friendica\Factory;
|
|||
|
||||
use Friendica\App;
|
||||
use Friendica\Core\Config\Cache\PConfigCache;
|
||||
use Friendica\Core\L10n\L10n;
|
||||
use Friendica\Factory;
|
||||
use Friendica\Util\BasePath;
|
||||
use Friendica\Util\BaseURL;
|
||||
|
@ -39,7 +40,10 @@ class DependencyFactory
|
|||
$logger = Factory\LoggerFactory::create($channel, $database, $config, $profiler);
|
||||
Factory\LoggerFactory::createDev($channel, $config, $profiler);
|
||||
$baseURL = new BaseURL($config, $_SERVER);
|
||||
$l10n = new L10n(L10n::detectLanguage($config->get('system', 'language')),
|
||||
$database,
|
||||
$logger);
|
||||
|
||||
return new App($database, $config, $mode, $router, $baseURL, $logger, $profiler, $isBackend);
|
||||
return new App($database, $config, $mode, $router, $baseURL, $logger, $profiler, $l10n, $isBackend);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue