From 5df7f76e6b810f08076b905f189bc7e4c3f8b8b1 Mon Sep 17 00:00:00 2001 From: Joas Schilling Date: Wed, 15 Jan 2014 11:40:03 +0100 Subject: [ticket/11201] Split language options into a new class Otherwise we run into a circular dependency PHPBB3-11201 --- phpBB/config/profilefields.yml | 17 +++++++++++++++-- 1 file changed, 15 insertions(+), 2 deletions(-) (limited to 'phpBB/config') diff --git a/phpBB/config/profilefields.yml b/phpBB/config/profilefields.yml index 2cecb80534..95242fe10c 100644 --- a/phpBB/config/profilefields.yml +++ b/phpBB/config/profilefields.yml @@ -5,14 +5,27 @@ services: - @auth - @dbal.conn - @service_container + #- @profilefields.type_collection - @request - @template - @user + profilefields.lang_helper: + class: \phpbb\profilefields\lang_helper + arguments: + - @dbal.conn + + profilefields.type_collection: + class: phpbb\di\service_collection + arguments: + - @service_container + tags: + - { name: service_collection, tag: profilefield.type } + profilefields.type.bool: class: \phpbb\profilefields\type\type_bool arguments: - - @profilefields + - @profilefields.lang_helper - @request - @template - @user @@ -32,7 +45,7 @@ services: profilefields.type.dropdown: class: \phpbb\profilefields\type\type_dropdown arguments: - - @profilefields + - @profilefields.lang_helper - @request - @template - @user -- cgit v1.2.1