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

[ticket/13867] Enable/disable mechanism for new profile field types

Adds methods to enable, disable and purge profile field types to the
profilefields\manager class. These methods are to be called from
extensions that add new profile field types on the enable, disable
and purge methods of the ext class. If not done, any profile field
of a new type that is left after extension is disabled or removed will
break the forum in several places.
Remove dependency from container, add dependencies with specific classes.
Change try/catch by !isset.

PHPBB3-13867
This commit is contained in:
javiexin
2015-06-19 12:46:25 +02:00
committed by mrgoldy
parent 78ea308608
commit b89539a70e
2 changed files with 19 additions and 19 deletions

View File

@@ -2,14 +2,15 @@ services:
profilefields.manager:
class: phpbb\profilefields\manager
arguments:
- '@service_container'
- '@auth'
- '@dbal.conn'
- '@dbal.tools'
- '@dispatcher'
- '@request'
- '@template'
- '@profilefields.type_collection'
- '@user'
- '@config_text'
- '%tables.profile_fields%'
- '%tables.profile_fields_language%'
- '%tables.profile_fields_data%'