1
0
mirror of https://github.com/phpbb/phpbb.git synced 2025-08-05 08:17:47 +02:00

[ticket/12016] Use a service provider for event listeners

This allows them to use dependency injection

PHPBB3-12016
This commit is contained in:
Joas Schilling
2013-11-13 17:34:06 +01:00
parent cfb0a41030
commit d3f9a51709
2 changed files with 16 additions and 13 deletions

View File

@@ -140,10 +140,17 @@ services:
class: phpbb\event\extension_subscriber_loader
arguments:
- @dispatcher
- @ext.manager
- @event.listener_collection
calls:
- [load, []]
event.listener_collection:
class: phpbb\di\service_collection
arguments:
- @service_container
tags:
- { name: service_collection, tag: event.listener }
ext.manager:
class: phpbb\extension\manager
arguments: