1
0
mirror of https://github.com/phpbb/phpbb.git synced 2025-07-30 21:40:43 +02:00

Merge pull request #3461 from s9e/ticket/11768

[3.2][ticket/11768] Integrate s9e\TextFormatter
This commit is contained in:
Tristan Darricau
2015-04-05 23:32:38 +02:00
81 changed files with 6463 additions and 145 deletions

View File

@@ -13,6 +13,7 @@ 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 }

View File

@@ -0,0 +1,61 @@
parameters:
text_formatter.cache.dir: %core.root_path%cache/%core.environment%/
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
- @dispatcher
- %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
- @text_formatter.s9e.factory
- @dispatcher
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_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