1
0
mirror of https://github.com/phpbb/phpbb.git synced 2025-08-11 19:24:01 +02:00

[ticket/11481] Use container for all classes and inject dependencies

PHPBB3-11481
This commit is contained in:
Joas Schilling
2013-06-06 20:04:23 +02:00
parent b5f1484744
commit 3efe0eb246
9 changed files with 139 additions and 34 deletions

56
phpBB/config/feed.yml Normal file
View File

@@ -0,0 +1,56 @@
services:
feed.helper:
class: phpbb_feed_helper
arguments:
- @config
- @user
- %core.root_path%
feed.factory:
class: phpbb_feed_factory
arguments:
- @service_container
- @config
- @dbal.conn
feed.forum:
class: phpbb_feed_forum
scope: prototype
arguments:
- @feed.helper
feed.forums:
class: phpbb_feed_forums
scope: prototype
arguments:
- @feed.helper
feed.news:
class: phpbb_feed_news
scope: prototype
arguments:
- @feed.helper
feed.overall:
class: phpbb_feed_overall
scope: prototype
arguments:
- @feed.helper
feed.topic:
class: phpbb_feed_topic
scope: prototype
arguments:
- @feed.helper
feed.topics:
class: phpbb_feed_topics
scope: prototype
arguments:
- @feed.helper
feed.topics_active:
class: phpbb_feed_topics_active
scope: prototype
arguments:
- @feed.helper