diff options
author | Tristan Darricau <github@nicofuma.fr> | 2014-10-04 16:30:34 +0200 |
---|---|---|
committer | Tristan Darricau <github@nicofuma.fr> | 2014-11-20 20:59:48 +0100 |
commit | 6cbb60d13f75da6d9b6c6d60555ea119df79b5c0 (patch) | |
tree | 3977e49d0e6eee7bf153973a81f459b0b0a612f1 /phpBB/config/default/container/services.yml | |
parent | 74cd97e75b1dce43a05d8e15e9fbccf01e833b57 (diff) | |
download | forums-6cbb60d13f75da6d9b6c6d60555ea119df79b5c0.tar forums-6cbb60d13f75da6d9b6c6d60555ea119df79b5c0.tar.gz forums-6cbb60d13f75da6d9b6c6d60555ea119df79b5c0.tar.bz2 forums-6cbb60d13f75da6d9b6c6d60555ea119df79b5c0.tar.xz forums-6cbb60d13f75da6d9b6c6d60555ea119df79b5c0.zip |
[ticket/12620] Adds a yaml config file
PHPBB3-12620
Diffstat (limited to 'phpBB/config/default/container/services.yml')
-rw-r--r-- | phpBB/config/default/container/services.yml | 196 |
1 files changed, 196 insertions, 0 deletions
diff --git a/phpBB/config/default/container/services.yml b/phpBB/config/default/container/services.yml new file mode 100644 index 0000000000..3f36a5178a --- /dev/null +++ b/phpBB/config/default/container/services.yml @@ -0,0 +1,196 @@ +imports: + - { resource: services_auth.yml } + - { resource: services_avatar.yml } + - { resource: services_captcha.yml } + - { resource: services_console.yml } + - { resource: services_content.yml } + - { resource: services_cron.yml } + - { resource: services_db.yml } + - { resource: services_event.yml } + - { resource: services_feed.yml } + - { resource: services_mimetype_guesser.yml } + - { resource: services_notification.yml } + - { resource: services_password.yml } + - { resource: services_profilefield.yml } + - { resource: services_twig.yml } + - { resource: services_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 + - @router + - @symfony_request + - @request + - @filesystem + - %core.root_path% + - %core.php_ext% + + controller.resolver: + class: phpbb\controller\resolver + arguments: + - @user + - @service_container + - %core.root_path% + - @template + + 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 + + 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% + + router: + class: phpbb\routing\router + arguments: + - @ext.manager + - %core.root_path% + - %core.php_ext% + + router.listener: + class: Symfony\Component\HttpKernel\EventListener\RouterListener + arguments: + - @router + tags: + - { name: kernel.event_subscriber } + + # 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 + - @template.twig.environment + - %core.template.cache_path% + - @template.twig.extensions.collection + - @ext.manager + + template_context: + class: phpbb\template\context + + version_helper: + class: phpbb\version_helper + scope: prototype + arguments: + - @cache + - @config + - @user |