From c98efc53a80150b6f9189c9b194855c748e9b03d Mon Sep 17 00:00:00 2001 From: Tristan Darricau Date: Fri, 7 Nov 2014 14:27:00 +0100 Subject: [ticket/12620] Fix rebase (move config file to the right directory) PHPBB3-12620 --- phpBB/config/default/container/services_cron.yml | 147 +++++++++++++++++++++++ 1 file changed, 147 insertions(+) create mode 100644 phpBB/config/default/container/services_cron.yml (limited to 'phpBB/config/default/container/services_cron.yml') diff --git a/phpBB/config/default/container/services_cron.yml b/phpBB/config/default/container/services_cron.yml new file mode 100644 index 0000000000..7a90c39733 --- /dev/null +++ b/phpBB/config/default/container/services_cron.yml @@ -0,0 +1,147 @@ +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 + 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 + 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 + 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 } -- cgit v1.2.1 From 8376c6552a7860036640a5840f26dba239c20750 Mon Sep 17 00:00:00 2001 From: Oliver Schramm Date: Sat, 24 Oct 2015 19:59:51 +0200 Subject: [ticket/14257] Add cron tasks for reparsing text PHPBB3-14257 --- phpBB/config/default/container/services_cron.yml | 117 +++++++++++++++++++++++ 1 file changed, 117 insertions(+) (limited to 'phpBB/config/default/container/services_cron.yml') diff --git a/phpBB/config/default/container/services_cron.yml b/phpBB/config/default/container/services_cron.yml index c5b88df181..d05e4c1b1a 100644 --- a/phpBB/config/default/container/services_cron.yml +++ b/phpBB/config/default/container/services_cron.yml @@ -146,3 +146,120 @@ services: - [set_name, [cron.task.core.tidy_warnings]] tags: - { name: cron.task } + + cron.task.text_reparser.contact_admin_info: + class: phpbb\cron\task\text_reparser\reparser + arguments: + - @config + - @config_text + - @text_reparser.lock + - @text_reparser_collection + calls: + - [set_name, [cron.task.text_reparser.contact_admin_info]] + - [set_reparser, [text_reparser.contact_admin_info]] + tags: + - { name: cron.task } + + cron.task.text_reparser.forum_description: + class: phpbb\cron\task\text_reparser\reparser + arguments: + - @config + - @config_text + - @text_reparser.lock + - @text_reparser_collection + calls: + - [set_name, [cron.task.text_reparser.forum_description]] + - [set_reparser, [text_reparser.forum_description]] + tags: + - { name: cron.task } + + cron.task.text_reparser.forum_rules: + class: phpbb\cron\task\text_reparser\reparser + arguments: + - @config + - @config_text + - @text_reparser.lock + - @text_reparser_collection + calls: + - [set_name, [cron.task.text_reparser.forum_rules]] + - [set_reparser, [text_reparser.forum_rules]] + tags: + - { name: cron.task } + + cron.task.text_reparser.group_description: + class: phpbb\cron\task\text_reparser\reparser + arguments: + - @config + - @config_text + - @text_reparser.lock + - @text_reparser_collection + calls: + - [set_name, [cron.task.text_reparser.group_description]] + - [set_reparser, [text_reparser.group_description]] + 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_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_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_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_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_collection + calls: + - [set_name, [cron.task.text_reparser.user_signature]] + - [set_reparser, [text_reparser.user_signature]] + tags: + - { name: cron.task } -- cgit v1.2.1 From 33500fd3728f6e3444d5479b09b941b2570ff47c Mon Sep 17 00:00:00 2001 From: Oliver Schramm Date: Sun, 25 Oct 2015 02:07:40 +0100 Subject: [ticket/14257] Use migrations instead of cron job for some reparsers PHPBB3-14257 --- phpBB/config/default/container/services_cron.yml | 52 ------------------------ 1 file changed, 52 deletions(-) (limited to 'phpBB/config/default/container/services_cron.yml') diff --git a/phpBB/config/default/container/services_cron.yml b/phpBB/config/default/container/services_cron.yml index d05e4c1b1a..53335a6101 100644 --- a/phpBB/config/default/container/services_cron.yml +++ b/phpBB/config/default/container/services_cron.yml @@ -147,58 +147,6 @@ services: tags: - { name: cron.task } - cron.task.text_reparser.contact_admin_info: - class: phpbb\cron\task\text_reparser\reparser - arguments: - - @config - - @config_text - - @text_reparser.lock - - @text_reparser_collection - calls: - - [set_name, [cron.task.text_reparser.contact_admin_info]] - - [set_reparser, [text_reparser.contact_admin_info]] - tags: - - { name: cron.task } - - cron.task.text_reparser.forum_description: - class: phpbb\cron\task\text_reparser\reparser - arguments: - - @config - - @config_text - - @text_reparser.lock - - @text_reparser_collection - calls: - - [set_name, [cron.task.text_reparser.forum_description]] - - [set_reparser, [text_reparser.forum_description]] - tags: - - { name: cron.task } - - cron.task.text_reparser.forum_rules: - class: phpbb\cron\task\text_reparser\reparser - arguments: - - @config - - @config_text - - @text_reparser.lock - - @text_reparser_collection - calls: - - [set_name, [cron.task.text_reparser.forum_rules]] - - [set_reparser, [text_reparser.forum_rules]] - tags: - - { name: cron.task } - - cron.task.text_reparser.group_description: - class: phpbb\cron\task\text_reparser\reparser - arguments: - - @config - - @config_text - - @text_reparser.lock - - @text_reparser_collection - calls: - - [set_name, [cron.task.text_reparser.group_description]] - - [set_reparser, [text_reparser.group_description]] - tags: - - { name: cron.task } - cron.task.text_reparser.pm_text: class: phpbb\cron\task\text_reparser\reparser arguments: -- cgit v1.2.1 From 25e2b17837f5b1c2330d07a86f88b25bb55d96c1 Mon Sep 17 00:00:00 2001 From: Oliver Schramm Date: Mon, 26 Oct 2015 01:39:52 +0100 Subject: [ticket/14257] Add text_reparser manager PHPBB3-14257 --- phpBB/config/default/container/services_cron.yml | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'phpBB/config/default/container/services_cron.yml') diff --git a/phpBB/config/default/container/services_cron.yml b/phpBB/config/default/container/services_cron.yml index 53335a6101..4b76bdaf6a 100644 --- a/phpBB/config/default/container/services_cron.yml +++ b/phpBB/config/default/container/services_cron.yml @@ -153,6 +153,7 @@ services: - @config - @config_text - @text_reparser.lock + - @text_reparser.manager - @text_reparser_collection calls: - [set_name, [cron.task.text_reparser.pm_text]] @@ -166,6 +167,7 @@ services: - @config - @config_text - @text_reparser.lock + - @text_reparser.manager - @text_reparser_collection calls: - [set_name, [cron.task.text_reparser.poll_option]] @@ -179,6 +181,7 @@ services: - @config - @config_text - @text_reparser.lock + - @text_reparser.manager - @text_reparser_collection calls: - [set_name, [cron.task.text_reparser.poll_title]] @@ -192,6 +195,7 @@ services: - @config - @config_text - @text_reparser.lock + - @text_reparser.manager - @text_reparser_collection calls: - [set_name, [cron.task.text_reparser.post_text]] @@ -205,6 +209,7 @@ services: - @config - @config_text - @text_reparser.lock + - @text_reparser.manager - @text_reparser_collection calls: - [set_name, [cron.task.text_reparser.user_signature]] -- cgit v1.2.1 From d9d89cad94eada62e900a012046b8d45c5aa3129 Mon Sep 17 00:00:00 2001 From: Matt Friedman Date: Mon, 7 Dec 2015 13:11:22 -0800 Subject: [ticket/14247] Use quotes around @ and % strings in YAML PHPBB3-14247 --- phpBB/config/default/container/services_cron.yml | 138 +++++++++++------------ 1 file changed, 69 insertions(+), 69 deletions(-) (limited to 'phpBB/config/default/container/services_cron.yml') diff --git a/phpBB/config/default/container/services_cron.yml b/phpBB/config/default/container/services_cron.yml index 4b76bdaf6a..eb7df540d7 100644 --- a/phpBB/config/default/container/services_cron.yml +++ b/phpBB/config/default/container/services_cron.yml @@ -2,32 +2,32 @@ services: cron.manager: class: phpbb\cron\manager arguments: - - @cron.task_collection - - %core.root_path% - - %core.php_ext% + - '@cron.task_collection' + - '%core.root_path%' + - '%core.php_ext%' cron.lock_db: class: phpbb\lock\db arguments: - cron_lock - - @config - - @dbal.conn + - '@config' + - '@dbal.conn' # ----- Cron tasks ----- cron.task_collection: class: phpbb\di\service_collection arguments: - - @service_container + - '@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 + - '%core.root_path%' + - '%core.php_ext%' + - '@config' + - '@dbal.conn' calls: - [set_name, [cron.task.core.prune_all_forums]] tags: @@ -36,10 +36,10 @@ services: cron.task.core.prune_forum: class: phpbb\cron\task\core\prune_forum arguments: - - %core.root_path% - - %core.php_ext% - - @config - - @dbal.conn + - '%core.root_path%' + - '%core.php_ext%' + - '@config' + - '@dbal.conn' calls: - [set_name, [cron.task.core.prune_forum]] tags: @@ -48,12 +48,12 @@ services: 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 + - '%core.root_path%' + - '%core.php_ext%' + - '@config' + - '@dbal.conn' + - '@log' + - '@user' calls: - [set_name, [cron.task.core.prune_shadow_topics]] tags: @@ -62,8 +62,8 @@ services: cron.task.core.prune_notifications: class: phpbb\cron\task\core\prune_notifications arguments: - - @config - - @notification_manager + - '@config' + - '@notification_manager' calls: - [set_name, [cron.task.core.prune_notifications]] tags: @@ -72,9 +72,9 @@ services: cron.task.core.queue: class: phpbb\cron\task\core\queue arguments: - - %core.root_path% - - %core.php_ext% - - @config + - '%core.root_path%' + - '%core.php_ext%' + - '@config' calls: - [set_name, [cron.task.core.queue]] tags: @@ -83,8 +83,8 @@ services: cron.task.core.tidy_cache: class: phpbb\cron\task\core\tidy_cache arguments: - - @config - - @cache.driver + - '@config' + - '@cache.driver' calls: - [set_name, [cron.task.core.tidy_cache]] tags: @@ -93,9 +93,9 @@ services: cron.task.core.tidy_database: class: phpbb\cron\task\core\tidy_database arguments: - - %core.root_path% - - %core.php_ext% - - @config + - '%core.root_path%' + - '%core.php_ext%' + - '@config' calls: - [set_name, [cron.task.core.tidy_database]] tags: @@ -104,8 +104,8 @@ services: cron.task.core.tidy_plupload: class: phpbb\cron\task\core\tidy_plupload arguments: - - %core.root_path% - - @config + - '%core.root_path%' + - '@config' calls: - [set_name, [cron.task.core.tidy_plupload]] tags: @@ -114,13 +114,13 @@ services: 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 + - '%core.root_path%' + - '%core.php_ext%' + - '@auth' + - '@config' + - '@dbal.conn' + - '@user' + - '@dispatcher' calls: - [set_name, [cron.task.core.tidy_search]] tags: @@ -129,8 +129,8 @@ services: cron.task.core.tidy_sessions: class: phpbb\cron\task\core\tidy_sessions arguments: - - @config - - @user + - '@config' + - '@user' calls: - [set_name, [cron.task.core.tidy_sessions]] tags: @@ -139,9 +139,9 @@ services: cron.task.core.tidy_warnings: class: phpbb\cron\task\core\tidy_warnings arguments: - - %core.root_path% - - %core.php_ext% - - @config + - '%core.root_path%' + - '%core.php_ext%' + - '@config' calls: - [set_name, [cron.task.core.tidy_warnings]] tags: @@ -150,11 +150,11 @@ services: 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 + - '@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]] @@ -164,11 +164,11 @@ services: 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 + - '@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]] @@ -178,11 +178,11 @@ services: 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 + - '@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]] @@ -192,11 +192,11 @@ services: 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 + - '@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]] @@ -206,11 +206,11 @@ services: 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 + - '@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]] -- cgit v1.2.1 From 3a555d94af24645142fe76ba1c691cc2ceb88374 Mon Sep 17 00:00:00 2001 From: Marc Alexander Date: Sun, 10 Jan 2016 10:10:41 +0100 Subject: [ticket/14402] Get rid of globals in tidy_plupload cron PHPBB3-14402 --- phpBB/config/default/container/services_cron.yml | 2 ++ 1 file changed, 2 insertions(+) (limited to 'phpBB/config/default/container/services_cron.yml') diff --git a/phpBB/config/default/container/services_cron.yml b/phpBB/config/default/container/services_cron.yml index eb7df540d7..dd3982a659 100644 --- a/phpBB/config/default/container/services_cron.yml +++ b/phpBB/config/default/container/services_cron.yml @@ -106,6 +106,8 @@ services: arguments: - '%core.root_path%' - '@config' + - '@log' + - '@user' calls: - [set_name, [cron.task.core.tidy_plupload]] tags: -- cgit v1.2.1 From 56c2caf6c0778c0da48fe0ac688c893777b89ee4 Mon Sep 17 00:00:00 2001 From: Tristan Darricau Date: Wed, 23 Mar 2016 22:48:58 +0100 Subject: [ticket/14555] Uniformize cache directory usages PHPBB3-14555 --- phpBB/config/default/container/services_cron.yml | 1 + 1 file changed, 1 insertion(+) (limited to 'phpBB/config/default/container/services_cron.yml') diff --git a/phpBB/config/default/container/services_cron.yml b/phpBB/config/default/container/services_cron.yml index dd3982a659..0b95a96190 100644 --- a/phpBB/config/default/container/services_cron.yml +++ b/phpBB/config/default/container/services_cron.yml @@ -75,6 +75,7 @@ services: - '%core.root_path%' - '%core.php_ext%' - '@config' + - '%core.cache_dir%' calls: - [set_name, [cron.task.core.queue]] tags: -- cgit v1.2.1