mirror of
https://github.com/phpbb/phpbb.git
synced 2025-07-31 22:10:45 +02:00
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
This commit is contained in:
@@ -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 }
|
||||
|
||||
|
@@ -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 }
|
||||
|
@@ -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:
|
||||
|
Reference in New Issue
Block a user