1
0
mirror of https://github.com/phpbb/phpbb.git synced 2025-08-13 04:04:12 +02:00

[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
This commit is contained in:
s9e
2015-02-04 23:07:58 +01:00
committed by JoshyPHP
parent e0bb446c57
commit 72fb380c9f
3 changed files with 11 additions and 11 deletions

View File

@@ -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]]