diff options
author | Marc Alexander <admin@m-a-styles.de> | 2014-08-10 12:55:49 +0200 |
---|---|---|
committer | Marc Alexander <admin@m-a-styles.de> | 2014-08-10 13:41:08 +0200 |
commit | a57a96cbddbfdad65823aeca2901f26b62c9b12d (patch) | |
tree | 22ef0efa2366d64f71f99f38f0403f1ef4ea17db /phpBB/config | |
parent | 7cc9f216e71de8515d5adb8e4fb48e3f6456d689 (diff) | |
download | forums-a57a96cbddbfdad65823aeca2901f26b62c9b12d.tar forums-a57a96cbddbfdad65823aeca2901f26b62c9b12d.tar.gz forums-a57a96cbddbfdad65823aeca2901f26b62c9b12d.tar.bz2 forums-a57a96cbddbfdad65823aeca2901f26b62c9b12d.tar.xz forums-a57a96cbddbfdad65823aeca2901f26b62c9b12d.zip |
[ticket/12932] Add method for getting the datetime class and allow overriding
An extension can now override the datetime class by overwriting the
datetime.class parameter in their own yml file.
PHPBB3-12932
Diffstat (limited to 'phpBB/config')
-rw-r--r-- | phpBB/config/parameters.yml | 2 | ||||
-rw-r--r-- | phpBB/config/services.yml | 3 |
2 files changed, 5 insertions, 0 deletions
diff --git a/phpBB/config/parameters.yml b/phpBB/config/parameters.yml new file mode 100644 index 0000000000..5bf2c678ee --- /dev/null +++ b/phpBB/config/parameters.yml @@ -0,0 +1,2 @@ +parameters: + datetime.class: \phpbb\datetime diff --git a/phpBB/config/services.yml b/phpBB/config/services.yml index a9f9f5ed19..6b06deb256 100644 --- a/phpBB/config/services.yml +++ b/phpBB/config/services.yml @@ -10,6 +10,7 @@ imports: - { resource: mimetype_guessers.yml } - { resource: passwords.yml } - { resource: profilefields.yml } + - { resource: parameters.yml } services: acl.permissions: @@ -346,6 +347,8 @@ services: user: class: phpbb\user + arguments: + - %datetime.class% user_loader: class: phpbb\user_loader |