1
0
mirror of https://github.com/phpbb/phpbb.git synced 2025-08-01 14:30:32 +02:00

[ticket/11768] This commit integrates s9e\TextFormatter

This commit integrates s9e\TextFormatter as outlined in
http://area51.phpbb.com/phpBB/viewtopic.php?f=108&t=44467

PHPBB3-11768
This commit is contained in:
s9e
2014-11-22 20:00:58 +01:00
committed by JoshyPHP
parent eb7e6d7c23
commit 147a713cc0
75 changed files with 5967 additions and 161 deletions

View File

@@ -13,9 +13,9 @@ imports:
- { resource: services_notification.yml }
- { resource: services_password.yml }
- { resource: services_profilefield.yml }
- { resource: services_text_formatter.yml }
- { resource: services_twig.yml }
- { resource: services_user.yml }
- { resource: tables.yml }
- { resource: parameters.yml }

View File

@@ -0,0 +1,58 @@
parameters:
text_formatter.cache.dir: %core.root_path%cache/
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.factory:
class: phpbb\textformatter\s9e\factory
arguments:
- @text_formatter.data_access
- @cache.driver
- %text_formatter.cache.dir%
- %text_formatter.cache.parser.key%
- %text_formatter.cache.renderer.key%
text_formatter.s9e.parser:
class: phpbb\textformatter\s9e\parser
arguments:
- @cache.driver
- %text_formatter.cache.parser.key%
- @user
- @service_container
text_formatter.s9e.renderer:
class: phpbb\textformatter\s9e\renderer
arguments:
- @cache.driver
- %text_formatter.cache.dir%
- %text_formatter.cache.renderer.key%
- @service_container
calls:
- [configure_smilies_path, [@config, @path_helper]]
- [configure_user, [@user, @config, @auth]]
text_formatter.s9e.utils:
class: phpbb\textformatter\s9e\utils

View File

@@ -1,6 +1,7 @@
parameters:
tables.auth_provider_oauth_token_storage: %core.table_prefix%oauth_tokens
tables.auth_provider_oauth_account_assoc: %core.table_prefix%oauth_accounts
tables.bbcodes: %core.table_prefix%bbcodes
tables.captcha_qa_questions: %core.table_prefix%captcha_questions
tables.captcha_qa_answers: %core.table_prefix%captcha_answers
tables.captcha_qa_confirm: %core.table_prefix%qa_confirm
@@ -18,6 +19,9 @@ parameters:
tables.profile_fields_options_language: %core.table_prefix%profile_fields_lang
tables.profile_fields_language: %core.table_prefix%profile_lang
tables.posts: %core.table_prefix%posts
tables.smilies: %core.table_prefix%smilies
tables.styles: %core.table_prefix%styles
tables.topics: %core.table_prefix%topics
tables.user_notifications: %core.table_prefix%user_notifications
tables.users: %core.table_prefix%users
tables.words: %core.table_prefix%words