aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB/config
diff options
context:
space:
mode:
authorMateBartus <mate.bartus@gmail.com>2015-04-14 02:31:23 +0200
committerMateBartus <mate.bartus@gmail.com>2015-05-02 13:37:12 +0200
commit179a4700221aa49071b07d638c44b9326c7a14a8 (patch)
tree3dd78a5fb9353afabaa629e8dae58b7f8d99c144 /phpBB/config
parent2f480be02d25421fa4c372c103604f24d4adf0ab (diff)
downloadforums-179a4700221aa49071b07d638c44b9326c7a14a8.tar
forums-179a4700221aa49071b07d638c44b9326c7a14a8.tar.gz
forums-179a4700221aa49071b07d638c44b9326c7a14a8.tar.bz2
forums-179a4700221aa49071b07d638c44b9326c7a14a8.tar.xz
forums-179a4700221aa49071b07d638c44b9326c7a14a8.zip
[ticket/13762] Moving language related functionality into a separate class
PHPBB3-13762
Diffstat (limited to 'phpBB/config')
-rw-r--r--phpBB/config/default/container/services.yml1
-rw-r--r--phpBB/config/default/container/services_language.yml22
-rw-r--r--phpBB/config/default/container/services_user.yml1
3 files changed, 24 insertions, 0 deletions
diff --git a/phpBB/config/default/container/services.yml b/phpBB/config/default/container/services.yml
index 11032408d7..670ea3bd61 100644
--- a/phpBB/config/default/container/services.yml
+++ b/phpBB/config/default/container/services.yml
@@ -9,6 +9,7 @@ imports:
- { resource: services_event.yml }
- { resource: services_feed.yml }
- { resource: services_help.yml }
+ - { resource: services_language.yml }
- { resource: services_mimetype_guesser.yml }
- { resource: services_notification.yml }
- { resource: services_password.yml }
diff --git a/phpBB/config/default/container/services_language.yml b/phpBB/config/default/container/services_language.yml
new file mode 100644
index 0000000000..aa3631ded1
--- /dev/null
+++ b/phpBB/config/default/container/services_language.yml
@@ -0,0 +1,22 @@
+services:
+ language.helper.language_file:
+ class: phpbb\language\language_file_helper
+ arguments:
+ - %core.root_path%
+
+ language:
+ class: phpbb\language\language
+ arguments:
+ - @language.loader
+
+ language.loader_abstract:
+ abstract: true
+ class: phpbb\language\language_file_loader
+ arguments:
+ - %core.root_path%
+ - %core.php_ext%
+
+ language.loader:
+ parent: language.loader_abstract
+ calls:
+ - [set_extension_manager, ["@ext.manager"]]
diff --git a/phpBB/config/default/container/services_user.yml b/phpBB/config/default/container/services_user.yml
index 1ca853ea45..ff114f022a 100644
--- a/phpBB/config/default/container/services_user.yml
+++ b/phpBB/config/default/container/services_user.yml
@@ -8,6 +8,7 @@ services:
user:
class: phpbb\user
arguments:
+ - @language
- %datetime.class%
user_loader: