Augmentation vers version 3.3.0

This commit is contained in:
Gauvain Boiché
2020-03-31 15:31:03 +02:00
parent d926806907
commit a1864c0414
2618 changed files with 406015 additions and 31377 deletions

View File

@@ -0,0 +1,20 @@
parameters:
# Disable the usage of the super globals (_GET, _POST, _SERVER...)
core.disable_super_globals: true
# Datetime class to use
datetime.class: \phpbb\datetime
# Mimetype guesser priorities
mimetype.guesser.priority.lowest: -2
mimetype.guesser.priority.low: -1
mimetype.guesser.priority.default: 0
mimetype.guesser.priority.high: 1
mimetype.guesser.priority.highest: 2
# List of default password driver types
passwords.algorithms:
- passwords.driver.bcrypt_2y
- passwords.driver.bcrypt
- passwords.driver.salted_md5
- passwords.driver.phpass

View File

@@ -0,0 +1,169 @@
imports:
- { resource: services_attachment.yml }
- { 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_files.yml }
- { resource: services_filesystem.yml }
- { resource: services_help.yml }
- { resource: services_hook.yml }
- { resource: services_http.yml }
- { resource: services_language.yml }
- { resource: services_migrator.yml }
- { resource: services_mimetype_guesser.yml }
- { resource: services_module.yml }
- { resource: services_notification.yml }
- { resource: services_password.yml }
- { resource: services_php.yml }
- { resource: services_profilefield.yml }
- { resource: services_report.yml }
- { resource: services_routing.yml }
- { resource: services_text_formatter.yml }
- { resource: services_text_reparser.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'
- '@symfony_request'
- '@request'
- '@routing.helper'
controller.resolver:
class: phpbb\controller\resolver
arguments:
- '@service_container'
- '%core.root_path%'
- '@template'
ext.manager:
class: phpbb\extension\manager
arguments:
- '@service_container'
- '@dbal.conn'
- '@config'
- '@filesystem'
- '%tables.ext%'
- '%core.root_path%'
- '%core.php_ext%'
- '@cache'
file_downloader:
class: phpbb\file_downloader
file_locator:
class: phpbb\routing\file_locator
arguments:
- '@filesystem'
- '%core.root_path%'
group_helper:
class: phpbb\group\helper
arguments:
- '@language'
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%'
plupload:
class: phpbb\plupload\plupload
arguments:
- '%core.root_path%'
- '@config'
- '@request'
- '@user'
- '@php_ini'
- '@mimetype.guesser'
upload_imagesize:
class: FastImageSize\FastImageSize
version_helper:
class: phpbb\version_helper
shared: false
arguments:
- '@cache'
- '@config'
- '@file_downloader'
- '@user'

View File

@@ -0,0 +1,110 @@
services:
# ----- Auth management -----
auth:
class: phpbb\auth\auth
# ----- Auth providers -----
auth.provider_collection:
class: phpbb\auth\provider_collection
arguments:
- '@service_container'
- '@config'
tags:
- { name: service_collection, tag: auth.provider }
auth.provider.db:
class: phpbb\auth\provider\db
arguments:
- '@dbal.conn'
- '@config'
- '@passwords.manager'
- '@request'
- '@user'
- '@service_container'
- '%core.root_path%'
- '%core.php_ext%'
tags:
- { name: auth.provider }
auth.provider.apache:
class: phpbb\auth\provider\apache
arguments:
- '@dbal.conn'
- '@config'
- '@passwords.manager'
- '@request'
- '@user'
- '%core.root_path%'
- '%core.php_ext%'
tags:
- { name: auth.provider }
auth.provider.ldap:
class: phpbb\auth\provider\ldap
arguments:
- '@dbal.conn'
- '@config'
- '@passwords.manager'
- '@user'
tags:
- { name: auth.provider }
auth.provider.oauth:
class: phpbb\auth\provider\oauth\oauth
arguments:
- '@dbal.conn'
- '@config'
- '@passwords.manager'
- '@request'
- '@user'
- '%tables.auth_provider_oauth_token_storage%'
- '%tables.auth_provider_oauth_states%'
- '%tables.auth_provider_oauth_account_assoc%'
- '@auth.provider.oauth.service_collection'
- '%tables.users%'
- '@service_container'
- '@dispatcher'
- '%core.root_path%'
- '%core.php_ext%'
tags:
- { name: auth.provider }
# ----- OAuth services providers -----
auth.provider.oauth.service_collection:
class: phpbb\di\service_collection
arguments:
- '@service_container'
tags:
- { name: service_collection, tag: auth.provider.oauth.service }
auth.provider.oauth.service.bitly:
class: phpbb\auth\provider\oauth\service\bitly
arguments:
- '@config'
- '@request'
tags:
- { name: auth.provider.oauth.service }
auth.provider.oauth.service.facebook:
class: phpbb\auth\provider\oauth\service\facebook
arguments:
- '@config'
- '@request'
tags:
- { name: auth.provider.oauth.service }
auth.provider.oauth.service.google:
class: phpbb\auth\provider\oauth\service\google
arguments:
- '@config'
- '@request'
tags:
- { name: auth.provider.oauth.service }
auth.provider.oauth.service.twitter:
class: phpbb\auth\provider\oauth\service\twitter
arguments:
- '@config'
- '@request'
tags:
- { name: auth.provider.oauth.service }

View File

@@ -0,0 +1,295 @@
services:
console.exception_subscriber:
class: phpbb\console\exception_subscriber
arguments:
- '@language'
tags:
- { name: kernel.event_subscriber }
console.command_collection:
class: phpbb\di\service_collection
arguments:
- '@service_container'
tags:
- { name: service_collection, tag: console.command }
console.command.cache.purge:
class: phpbb\console\command\cache\purge
arguments:
- '@user'
- '@cache.driver'
- '@dbal.conn'
- '@auth'
- '@log'
- '@config'
tags:
- { name: console.command }
console.command.config.delete:
class: phpbb\console\command\config\delete
arguments:
- '@user'
- '@config'
tags:
- { name: console.command }
console.command.config.increment:
class: phpbb\console\command\config\increment
arguments:
- '@user'
- '@config'
tags:
- { name: console.command }
console.command.config.get:
class: phpbb\console\command\config\get
arguments:
- '@user'
- '@config'
tags:
- { name: console.command }
console.command.config.set:
class: phpbb\console\command\config\set
arguments:
- '@user'
- '@config'
tags:
- { name: console.command }
console.command.config.set_atomic:
class: phpbb\console\command\config\set_atomic
arguments:
- '@user'
- '@config'
tags:
- { name: console.command }
console.command.cron.list:
class: phpbb\console\command\cron\cron_list
arguments:
- '@user'
- '@cron.manager'
tags:
- { name: console.command }
console.command.cron.run:
class: phpbb\console\command\cron\run
arguments:
- '@user'
- '@cron.manager'
- '@cron.lock_db'
tags:
- { name: console.command }
console.command.db.list:
class: phpbb\console\command\db\list_command
arguments:
- '@user'
- '@migrator'
- '@ext.manager'
- '@config'
- '@cache'
tags:
- { name: console.command }
console.command.db.migrate:
class: phpbb\console\command\db\migrate
arguments:
- '@user'
- '@language'
- '@migrator'
- '@ext.manager'
- '@config'
- '@cache'
- '@log'
- '@filesystem'
- '%core.root_path%'
tags:
- { name: console.command }
console.command.db.revert:
class: phpbb\console\command\db\revert
parent: console.command.db.migrate
tags:
- { name: console.command }
console.command.dev.migration_tips:
class: phpbb\console\command\dev\migration_tips
arguments:
- '@user'
- '@ext.manager'
tags:
- { name: console.command }
console.command.extension.disable:
class: phpbb\console\command\extension\disable
arguments:
- '@user'
- '@ext.manager'
- '@log'
tags:
- { name: console.command }
console.command.extension.enable:
class: phpbb\console\command\extension\enable
arguments:
- '@user'
- '@ext.manager'
- '@log'
tags:
- { name: console.command }
console.command.extension.purge:
class: phpbb\console\command\extension\purge
arguments:
- '@user'
- '@ext.manager'
- '@log'
tags:
- { name: console.command }
console.command.extension.show:
class: phpbb\console\command\extension\show
arguments:
- '@user'
- '@ext.manager'
- '@log'
tags:
- { name: console.command }
console.command.fixup.recalculate_email_hash:
class: phpbb\console\command\fixup\recalculate_email_hash
arguments:
- '@user'
- '@dbal.conn'
tags:
- { name: console.command }
console.command.fixup.update_hashes:
class: phpbb\console\command\fixup\update_hashes
arguments:
- '@config'
- '@user'
- '@dbal.conn'
- '@passwords.manager'
- '@passwords.driver_collection'
- '%passwords.algorithms%'
tags:
- { name: console.command }
console.command.fixup.fix_left_right_ids:
class: phpbb\console\command\fixup\fix_left_right_ids
arguments:
- '@user'
- '@dbal.conn'
- '@cache.driver'
tags:
- { name: console.command }
console.command.reparser.list:
class: phpbb\console\command\reparser\list_all
arguments:
- '@user'
- '@text_reparser_collection'
tags:
- { name: console.command }
console.command.reparser.reparse:
class: phpbb\console\command\reparser\reparse
arguments:
- '@user'
- '@text_reparser.lock'
- '@text_reparser.manager'
- '@text_reparser_collection'
tags:
- { name: console.command }
console.command.thumbnail.delete:
class: phpbb\console\command\thumbnail\delete
arguments:
- '@config'
- '@user'
- '@dbal.conn'
- '%core.root_path%'
tags:
- { name: console.command }
console.command.thumbnail.generate:
class: phpbb\console\command\thumbnail\generate
arguments:
- '@config'
- '@user'
- '@dbal.conn'
- '@cache'
- '%core.root_path%'
- '%core.php_ext%'
tags:
- { name: console.command }
console.command.thumbnail.recreate:
class: phpbb\console\command\thumbnail\recreate
arguments:
- '@user'
tags:
- { name: console.command }
console.command.update.check:
class: phpbb\console\command\update\check
arguments:
- '@user'
- '@config'
- '@service_container'
- '@language'
tags:
- { name: console.command }
console.command.user.activate:
class: phpbb\console\command\user\activate
arguments:
- '@user'
- '@dbal.conn'
- '@config'
- '@language'
- '@log'
- '@notification_manager'
- '@user_loader'
- '%core.root_path%'
- '%core.php_ext%'
tags:
- { name: console.command }
console.command.user.add:
class: phpbb\console\command\user\add
arguments:
- '@user'
- '@dbal.conn'
- '@config'
- '@language'
- '@passwords.manager'
- '%core.root_path%'
- '%core.php_ext%'
tags:
- { name: console.command }
console.command.user.delete:
class: phpbb\console\command\user\delete
arguments:
- '@user'
- '@dbal.conn'
- '@language'
- '@log'
- '@user_loader'
- '%core.root_path%'
- '%core.php_ext%'
tags:
- { name: console.command }
console.command.user.reclean:
class: phpbb\console\command\user\reclean
arguments:
- '@user'
- '@dbal.conn'
- '@language'
tags:
- { name: console.command }

View File

@@ -0,0 +1,235 @@
services:
cron.manager:
class: phpbb\cron\manager
arguments:
- '@cron.task_collection'
- '%core.root_path%'
- '%core.php_ext%'
cron.lock_db:
class: phpbb\lock\db
arguments:
- cron_lock
- '@config'
- '@dbal.conn'
# ----- Cron tasks -----
cron.task_collection:
class: phpbb\di\service_collection
arguments:
- '@service_container'
tags:
- { name: service_collection, tag: cron.task }
cron.task.core.prune_all_forums:
class: phpbb\cron\task\core\prune_all_forums
arguments:
- '%core.root_path%'
- '%core.php_ext%'
- '@config'
- '@dbal.conn'
calls:
- [set_name, [cron.task.core.prune_all_forums]]
tags:
- { name: cron.task }
cron.task.core.prune_forum:
class: phpbb\cron\task\core\prune_forum
arguments:
- '%core.root_path%'
- '%core.php_ext%'
- '@config'
- '@dbal.conn'
calls:
- [set_name, [cron.task.core.prune_forum]]
tags:
- { name: cron.task }
cron.task.core.prune_shadow_topics:
class: phpbb\cron\task\core\prune_shadow_topics
arguments:
- '%core.root_path%'
- '%core.php_ext%'
- '@config'
- '@dbal.conn'
- '@log'
- '@user'
calls:
- [set_name, [cron.task.core.prune_shadow_topics]]
tags:
- { name: cron.task }
cron.task.core.prune_notifications:
class: phpbb\cron\task\core\prune_notifications
arguments:
- '@config'
- '@notification_manager'
calls:
- [set_name, [cron.task.core.prune_notifications]]
tags:
- { name: cron.task }
cron.task.core.queue:
class: phpbb\cron\task\core\queue
arguments:
- '%core.root_path%'
- '%core.php_ext%'
- '@config'
- '%core.cache_dir%'
calls:
- [set_name, [cron.task.core.queue]]
tags:
- { name: cron.task }
cron.task.core.tidy_cache:
class: phpbb\cron\task\core\tidy_cache
arguments:
- '@config'
- '@cache.driver'
calls:
- [set_name, [cron.task.core.tidy_cache]]
tags:
- { name: cron.task }
cron.task.core.tidy_database:
class: phpbb\cron\task\core\tidy_database
arguments:
- '%core.root_path%'
- '%core.php_ext%'
- '@config'
calls:
- [set_name, [cron.task.core.tidy_database]]
tags:
- { name: cron.task }
cron.task.core.tidy_plupload:
class: phpbb\cron\task\core\tidy_plupload
arguments:
- '%core.root_path%'
- '@config'
- '@log'
- '@user'
calls:
- [set_name, [cron.task.core.tidy_plupload]]
tags:
- { name: cron.task }
cron.task.core.tidy_search:
class: phpbb\cron\task\core\tidy_search
arguments:
- '%core.root_path%'
- '%core.php_ext%'
- '@auth'
- '@config'
- '@dbal.conn'
- '@user'
- '@dispatcher'
calls:
- [set_name, [cron.task.core.tidy_search]]
tags:
- { name: cron.task }
cron.task.core.tidy_sessions:
class: phpbb\cron\task\core\tidy_sessions
arguments:
- '@config'
- '@user'
calls:
- [set_name, [cron.task.core.tidy_sessions]]
tags:
- { name: cron.task }
cron.task.core.tidy_warnings:
class: phpbb\cron\task\core\tidy_warnings
arguments:
- '%core.root_path%'
- '%core.php_ext%'
- '@config'
calls:
- [set_name, [cron.task.core.tidy_warnings]]
tags:
- { name: cron.task }
cron.task.text_reparser.pm_text:
class: phpbb\cron\task\text_reparser\reparser
arguments:
- '@config'
- '@config_text'
- '@text_reparser.lock'
- '@text_reparser.manager'
- '@text_reparser_collection'
calls:
- [set_name, [cron.task.text_reparser.pm_text]]
- [set_reparser, [text_reparser.pm_text]]
tags:
- { name: cron.task }
cron.task.text_reparser.poll_option:
class: phpbb\cron\task\text_reparser\reparser
arguments:
- '@config'
- '@config_text'
- '@text_reparser.lock'
- '@text_reparser.manager'
- '@text_reparser_collection'
calls:
- [set_name, [cron.task.text_reparser.poll_option]]
- [set_reparser, [text_reparser.poll_option]]
tags:
- { name: cron.task }
cron.task.text_reparser.poll_title:
class: phpbb\cron\task\text_reparser\reparser
arguments:
- '@config'
- '@config_text'
- '@text_reparser.lock'
- '@text_reparser.manager'
- '@text_reparser_collection'
calls:
- [set_name, [cron.task.text_reparser.poll_title]]
- [set_reparser, [text_reparser.poll_title]]
tags:
- { name: cron.task }
cron.task.text_reparser.post_text:
class: phpbb\cron\task\text_reparser\reparser
arguments:
- '@config'
- '@config_text'
- '@text_reparser.lock'
- '@text_reparser.manager'
- '@text_reparser_collection'
calls:
- [set_name, [cron.task.text_reparser.post_text]]
- [set_reparser, [text_reparser.post_text]]
tags:
- { name: cron.task }
cron.task.text_reparser.user_signature:
class: phpbb\cron\task\text_reparser\reparser
arguments:
- '@config'
- '@config_text'
- '@text_reparser.lock'
- '@text_reparser.manager'
- '@text_reparser_collection'
calls:
- [set_name, [cron.task.text_reparser.user_signature]]
- [set_reparser, [text_reparser.user_signature]]
tags:
- { name: cron.task }
cron.task.core.update_hashes:
class: phpbb\cron\task\core\update_hashes
arguments:
- '@config'
- '@dbal.conn'
- '@passwords.update.lock'
- '@passwords.manager'
- '@passwords.driver_collection'
- '%passwords.algorithms%'
calls:
- [set_name, [cron.task.core.update_hashes]]
tags:
- { name: cron.task }

View File

@@ -0,0 +1,136 @@
parameters:
passwords.driver.bcrypt_cost: 10
services:
# ----- Password management -----
passwords.manager:
class: phpbb\passwords\manager
arguments:
- '@config'
- '@passwords.driver_collection'
- '@passwords.helper'
- '%passwords.algorithms%'
passwords.helper:
class: phpbb\passwords\helper
passwords.driver_helper:
class: phpbb\passwords\driver\helper
arguments:
- '@config'
# ----- Password's drivers -----
passwords.driver_collection:
class: phpbb\di\service_collection
arguments:
- '@service_container'
tags:
- { name: service_collection, tag: passwords.driver }
passwords.driver.bcrypt:
class: phpbb\passwords\driver\bcrypt
arguments:
- '@config'
- '@passwords.driver_helper'
- '%passwords.driver.bcrypt_cost%'
tags:
- { name: passwords.driver }
passwords.driver.bcrypt_2y:
class: phpbb\passwords\driver\bcrypt_2y
arguments:
- '@config'
- '@passwords.driver_helper'
- '%passwords.driver.bcrypt_cost%'
tags:
- { name: passwords.driver }
passwords.driver.bcrypt_wcf2:
class: phpbb\passwords\driver\bcrypt_wcf2
arguments:
- '@passwords.driver.bcrypt'
- '@passwords.driver_helper'
tags:
- { name: passwords.driver }
passwords.driver.salted_md5:
class: phpbb\passwords\driver\salted_md5
arguments:
- '@config'
- '@passwords.driver_helper'
tags:
- { name: passwords.driver }
passwords.driver.phpass:
class: phpbb\passwords\driver\phpass
arguments:
- '@config'
- '@passwords.driver_helper'
tags:
- { name: passwords.driver }
passwords.driver.convert_password:
class: phpbb\passwords\driver\convert_password
arguments:
- '@config'
- '@passwords.driver_helper'
tags:
- { name: passwords.driver }
passwords.driver.sha1_smf:
class: phpbb\passwords\driver\sha1_smf
arguments:
- '@config'
- '@passwords.driver_helper'
tags:
- { name: passwords.driver }
passwords.driver.sha1_wcf1:
class: phpbb\passwords\driver\sha1_wcf1
arguments:
- '@config'
- '@passwords.driver_helper'
tags:
- { name: passwords.driver }
passwords.driver.sha1:
class: phpbb\passwords\driver\sha1
arguments:
- '@config'
- '@passwords.driver_helper'
tags:
- { name: passwords.driver }
passwords.driver.md5_phpbb2:
class: phpbb\passwords\driver\md5_phpbb2
arguments:
- '@request'
- '@passwords.driver.salted_md5'
- '@passwords.driver_helper'
- '%core.root_path%'
- '%core.php_ext%'
tags:
- { name: passwords.driver }
passwords.driver.md5_mybb:
class: phpbb\passwords\driver\md5_mybb
arguments:
- '@config'
- '@passwords.driver_helper'
tags:
- { name: passwords.driver }
passwords.driver.md5_vb:
class: phpbb\passwords\driver\md5_vb
arguments:
- '@config'
- '@passwords.driver_helper'
tags:
- { name: passwords.driver }
passwords.update.lock:
class: phpbb\lock\db
arguments:
- update_hashes_lock
- '@config'
- '@dbal.conn'

View File

@@ -0,0 +1,79 @@
services:
router:
class: phpbb\routing\router
arguments:
- '@service_container'
- '@routing.chained_resources_locator'
- '@routing.delegated_loader'
- '%core.php_ext%'
- '%core.cache_dir%'
router.listener:
class: Symfony\Component\HttpKernel\EventListener\RouterListener
arguments:
- '@router'
- null
- null
- '@request_stack'
tags:
- { name: kernel.event_subscriber }
routing.helper:
class: phpbb\routing\helper
arguments:
- '@config'
- '@router'
- '@symfony_request'
- '@request'
- '@filesystem'
- '%core.root_path%'
- '%core.php_ext%'
# ---- Route loaders ----
routing.delegated_loader:
class: Symfony\Component\Config\Loader\DelegatingLoader
arguments:
- '@routing.resolver'
routing.resolver:
class: phpbb\routing\loader_resolver
arguments:
- '@routing.loader.collection'
routing.loader.collection:
class: phpbb\di\service_collection
arguments:
- '@service_container'
tags:
- { name: service_collection, tag: routing.loader }
routing.loader.yaml:
class: Symfony\Component\Routing\Loader\YamlFileLoader
arguments:
- '@file_locator'
tags:
- { name: routing.loader }
# ---- Resources Locators ----
routing.chained_resources_locator:
class: phpbb\routing\resources_locator\chained_resources_locator
arguments:
- '@routing.resources_locator.collection'
routing.resources_locator.collection:
class: phpbb\di\service_collection
arguments:
- '@service_container'
tags:
- { name: service_collection, tag: routing.resources_locator }
routing.resources_locator.default:
class: phpbb\routing\resources_locator\default_resources_locator
arguments:
- '%core.root_path%'
- '%core.environment%'
- '@ext.manager'
tags:
- { name: routing.resources_locator }

View File

@@ -0,0 +1,79 @@
parameters:
text_formatter.cache.dir: '%core.cache_dir%'
text_formatter.cache.parser.key: _text_formatter_parser
text_formatter.cache.renderer.key: _text_formatter_renderer
services:
text_formatter.cache:
alias: text_formatter.s9e.factory
text_formatter.data_access:
class: phpbb\textformatter\data_access
arguments:
- '@dbal.conn'
- '%tables.bbcodes%'
- '%tables.smilies%'
- '%tables.styles%'
- '%tables.words%'
- '%core.root_path%styles/'
text_formatter.parser:
alias: text_formatter.s9e.parser
text_formatter.renderer:
alias: text_formatter.s9e.renderer
text_formatter.utils:
alias: text_formatter.s9e.utils
text_formatter.s9e.bbcode_merger:
class: phpbb\textformatter\s9e\bbcode_merger
arguments:
- '@text_formatter.s9e.factory'
text_formatter.s9e.factory:
class: phpbb\textformatter\s9e\factory
arguments:
- '@text_formatter.data_access'
- '@cache.driver'
- '@dispatcher'
- '@config'
- '@text_formatter.s9e.link_helper'
- '@log'
- '%text_formatter.cache.dir%'
- '%text_formatter.cache.parser.key%'
- '%text_formatter.cache.renderer.key%'
text_formatter.s9e.link_helper:
class: phpbb\textformatter\s9e\link_helper
text_formatter.s9e.parser:
class: phpbb\textformatter\s9e\parser
arguments:
- '@cache.driver'
- '%text_formatter.cache.parser.key%'
- '@text_formatter.s9e.factory'
- '@dispatcher'
text_formatter.s9e.quote_helper:
class: phpbb\textformatter\s9e\quote_helper
arguments:
- '@user'
- '%core.root_path%'
- '%core.php_ext%'
text_formatter.s9e.renderer:
class: phpbb\textformatter\s9e\renderer
arguments:
- '@cache.driver'
- '%text_formatter.cache.dir%'
- '%text_formatter.cache.renderer.key%'
- '@text_formatter.s9e.factory'
- '@dispatcher'
calls:
- [configure_quote_helper, ['@text_formatter.s9e.quote_helper']]
- [configure_smilies_path, ['@config', '@path_helper']]
- [configure_user, ['@user', '@config', '@auth']]
text_formatter.s9e.utils:
class: phpbb\textformatter\s9e\utils

View File

@@ -0,0 +1,68 @@
parameters:
core.template.cache_path: '%core.cache_dir%twig/'
services:
template.twig.environment:
class: phpbb\template\twig\environment
arguments:
- '@config'
- '@filesystem'
- '@path_helper'
- '%core.template.cache_path%'
- '@ext.manager'
- '@template.twig.loader'
- '@dispatcher'
- []
calls:
- [setLexer, ['@template.twig.lexer']]
template.twig.lexer:
class: phpbb\template\twig\lexer
lazy: true
arguments:
- '@template.twig.environment'
template.twig.loader:
class: phpbb\template\twig\loader
arguments:
- '@filesystem'
template.twig.extensions.collection:
class: phpbb\di\service_collection
arguments:
- '@service_container'
tags:
- { name: service_collection, tag: twig.extension }
template.twig.extensions.phpbb:
class: phpbb\template\twig\extension
arguments:
- '@template_context'
- '@language'
tags:
- { name: twig.extension }
template.twig.extensions.routing:
class: phpbb\template\twig\extension\routing
arguments:
- '@routing.helper'
tags:
- { name: twig.extension }
template.twig.extensions.debug:
class: Twig_Extension_Debug
template:
class: phpbb\template\twig\twig
arguments:
- '@path_helper'
- '@config'
- '@template_context'
- '@template.twig.environment'
- '%core.template.cache_path%'
- '@user'
- '@template.twig.extensions.collection'
- '@ext.manager'
template_context:
class: phpbb\template\context

View File

@@ -0,0 +1,24 @@
# Structure:
#
# foo_controller:
# path: /foo
# defaults: { _controller: foo_sevice:method }
#
# The above will be accessed via app.php?controller=foo and it will
# instantiate the 'foo_service' service and call the 'method' method.
#
phpbb_feed_routing:
resource: feed.yml
prefix: /feed
phpbb_feed_index:
path: /feed
defaults: { _controller: phpbb.feed.controller:overall }
phpbb_help_routing:
resource: help.yml
prefix: /help
phpbb_report_routing:
resource: report.yml