diff options
author | s9e <s9e.dev@gmail.com> | 2015-02-04 23:07:58 +0100 |
---|---|---|
committer | JoshyPHP <s9e.dev@gmail.com> | 2015-04-02 19:16:01 +0200 |
commit | 72fb380c9fbb0d6fa51236bdc179ba7ef6126a5a (patch) | |
tree | 11faf4a7b94b8ba93ebc517d055df734437386fa /phpBB/config/default/container/services_text_formatter.yml | |
parent | e0bb446c57d692b3e968a7a3ccd9d726f0779391 (diff) | |
download | forums-72fb380c9fbb0d6fa51236bdc179ba7ef6126a5a.tar forums-72fb380c9fbb0d6fa51236bdc179ba7ef6126a5a.tar.gz forums-72fb380c9fbb0d6fa51236bdc179ba7ef6126a5a.tar.bz2 forums-72fb380c9fbb0d6fa51236bdc179ba7ef6126a5a.tar.xz forums-72fb380c9fbb0d6fa51236bdc179ba7ef6126a5a.zip |
[ticket/11768] Updated constructors with explicit dependencies
The trade-off is that an instance of phpbb\textformatter\s9e\factory and
phpbb\textformatter\data_access is created on any page that uses the
parser or the renderer, even when neither need to be regenerated. It has
no measureable impact on performance and costs ~20KB of RAM.
PHPBB3-11768
Diffstat (limited to 'phpBB/config/default/container/services_text_formatter.yml')
-rw-r--r-- | phpBB/config/default/container/services_text_formatter.yml | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/phpBB/config/default/container/services_text_formatter.yml b/phpBB/config/default/container/services_text_formatter.yml index 7d21e4498e..3d5fb3766d 100644 --- a/phpBB/config/default/container/services_text_formatter.yml +++ b/phpBB/config/default/container/services_text_formatter.yml @@ -41,7 +41,7 @@ services: - @cache.driver - %text_formatter.cache.parser.key% - @user - - @service_container + - @text_formatter.s9e.factory text_formatter.s9e.renderer: class: phpbb\textformatter\s9e\renderer @@ -49,7 +49,7 @@ services: - @cache.driver - %text_formatter.cache.dir% - %text_formatter.cache.renderer.key% - - @service_container + - @text_formatter.s9e.factory calls: - [configure_smilies_path, [@config, @path_helper]] - [configure_user, [@user, @config, @auth]] |