1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/phpbb_ynh.git synced 2024-09-03 19:56:36 +02:00
phpbb_ynh/sources/phpBB/config/services.yml
2015-03-07 13:50:13 +00:00

188 lines
4.4 KiB
YAML

imports:
- { resource: auth.yml }
- { resource: avatar.yml }
- { resource: captcha.yml }
- { resource: console.yml }
- { resource: content.yml }
- { resource: cron.yml }
- { resource: db.yml }
- { resource: event.yml }
- { resource: feed.yml }
- { resource: mimetype_guesser.yml }
- { resource: notification.yml }
- { resource: password.yml }
- { resource: profilefield.yml }
- { resource: user.yml }
- { resource: tables.yml }
- { resource: parameters.yml }
services:
cache:
class: phpbb\cache\service
arguments:
- @cache.driver
- @config
- @dbal.conn
- %core.root_path%
- %core.php_ext%
cache.driver:
class: %cache.driver.class%
class_loader:
class: phpbb\class_loader
arguments:
- phpbb\
- %core.root_path%includes/
- %core.php_ext%
calls:
- [register, []]
- [set_cache, [@cache.driver]]
class_loader.ext:
class: phpbb\class_loader
arguments:
- \
- %core.root_path%ext/
- %core.php_ext%
calls:
- [register, []]
- [set_cache, [@cache.driver]]
config:
class: phpbb\config\db
arguments:
- @dbal.conn
- @cache.driver
- %tables.config%
config.php:
synthetic: true
config_text:
class: phpbb\config\db_text
arguments:
- @dbal.conn
- %tables.config_text%
controller.helper:
class: phpbb\controller\helper
arguments:
- @template
- @user
- @config
- @controller.provider
- @ext.manager
- @symfony_request
- @request
- @filesystem
- %core.root_path%
- %core.php_ext%
controller.resolver:
class: phpbb\controller\resolver
arguments:
- @user
- @service_container
- %core.root_path%
- @template
controller.provider:
class: phpbb\controller\provider
calls:
- [find, [%core.root_path%]]
ext.manager:
class: phpbb\extension\manager
arguments:
- @service_container
- @dbal.conn
- @config
- @filesystem
- @user
- %tables.ext%
- %core.root_path%
- %core.php_ext%
- @cache.driver
filesystem:
class: phpbb\filesystem
file_downloader:
class: phpbb\file_downloader
http_kernel:
class: Symfony\Component\HttpKernel\HttpKernel
arguments:
- @dispatcher
- @controller.resolver
log:
class: phpbb\log\log
arguments:
- @dbal.conn
- @user
- @auth
- @dispatcher
- %core.root_path%
- %core.adm_relative_path%
- %core.php_ext%
- %tables.log%
path_helper:
class: phpbb\path_helper
arguments:
- @symfony_request
- @filesystem
- @request
- %core.root_path%
- %core.php_ext%
- %core.adm_relative_path%
php_ini:
class: phpbb\php\ini
plupload:
class: phpbb\plupload\plupload
arguments:
- %core.root_path%
- @config
- @request
- @user
- @php_ini
- @mimetype.guesser
request:
class: phpbb\request\request
arguments:
- null
- %core.disable_super_globals%
# WARNING: The Symfony request does not escape the input and should be used very carefully
# prefer the phpbb request (service @request) as possible
symfony_request:
class: phpbb\symfony_request
arguments:
- @request
template:
class: phpbb\template\twig\twig
arguments:
- @path_helper
- @config
- @user
- @template_context
- @ext.manager
template_context:
class: phpbb\template\context
version_helper:
class: phpbb\version_helper
scope: prototype
arguments:
- @cache
- @config
- @file_downloader
- @user