aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB/config/default
diff options
context:
space:
mode:
authorTristan Darricau <tristan.darricau@sensiolabs.com>2015-12-05 11:21:40 +0100
committerTristan Darricau <tristan.darricau@sensiolabs.com>2015-12-05 11:21:40 +0100
commitb4bbc7056aed232dc7056103094843da8bfc2da2 (patch)
treed024240e76601bc9ef35dde5c69aa4c27f52840d /phpBB/config/default
parentcfd0ec7e09514d6bcc80b73cd323ced442ff4f49 (diff)
parent762b383d2b7b6784d19fac888dab5798fdeacc7f (diff)
downloadforums-b4bbc7056aed232dc7056103094843da8bfc2da2.tar
forums-b4bbc7056aed232dc7056103094843da8bfc2da2.tar.gz
forums-b4bbc7056aed232dc7056103094843da8bfc2da2.tar.bz2
forums-b4bbc7056aed232dc7056103094843da8bfc2da2.tar.xz
forums-b4bbc7056aed232dc7056103094843da8bfc2da2.zip
Merge pull request #4005 from Elsensee/ticket/14257
[ticket/14257] Reparse after update * Elsensee/ticket/14257: [ticket/14257] Add tests for reparser manager [ticket/14257] Fix CLI reparser and set cron interval [ticket/14257] Fix CLI error message [ticket/14257] Fix phpdoc in CLI command [ticket/14257] Add text_reparser manager [ticket/14257] Use migrations instead of cron job for some reparsers [ticket/14257] Fix lock acquire in CLI command [ticket/14257] Fix if condition [ticket/14257] Add reparse_lock to CLI command [ticket/14257] Add cron tasks for reparsing text
Diffstat (limited to 'phpBB/config/default')
-rw-r--r--phpBB/config/default/container/services_console.yml3
-rw-r--r--phpBB/config/default/container/services_cron.yml70
-rw-r--r--phpBB/config/default/container/services_text_reparser.yml14
3 files changed, 86 insertions, 1 deletions
diff --git a/phpBB/config/default/container/services_console.yml b/phpBB/config/default/container/services_console.yml
index 6f6e129b29..169bf82098 100644
--- a/phpBB/config/default/container/services_console.yml
+++ b/phpBB/config/default/container/services_console.yml
@@ -187,8 +187,9 @@ services:
class: phpbb\console\command\reparser\reparse
arguments:
- @user
+ - @text_reparser.lock
- @text_reparser_collection
- - @config_text
+ - @text_reparser.manager
tags:
- { name: console.command }
diff --git a/phpBB/config/default/container/services_cron.yml b/phpBB/config/default/container/services_cron.yml
index c5b88df181..4b76bdaf6a 100644
--- a/phpBB/config/default/container/services_cron.yml
+++ b/phpBB/config/default/container/services_cron.yml
@@ -146,3 +146,73 @@ services:
- [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 }
diff --git a/phpBB/config/default/container/services_text_reparser.yml b/phpBB/config/default/container/services_text_reparser.yml
index dd15b9f09a..3c3707e7cf 100644
--- a/phpBB/config/default/container/services_text_reparser.yml
+++ b/phpBB/config/default/container/services_text_reparser.yml
@@ -1,4 +1,18 @@
services:
+ text_reparser.manager:
+ class: phpbb\textreparser\manager
+ arguments:
+ - @config
+ - @config_text
+ - @text_reparser_collection
+
+ text_reparser.lock:
+ class: phpbb\lock\db
+ arguments:
+ - reparse_lock
+ - @config
+ - @dbal.conn
+
text_reparser_collection:
class: phpbb\di\service_collection
arguments: