From 8f5a0ad6f73e7b7757b02c827436384c96069b5a Mon Sep 17 00:00:00 2001 From: Mate Bartus Date: Fri, 24 Jul 2015 09:20:50 +0200 Subject: [ticket/14039] Revamp updater PHPBB3-14039 --- .../container/services_update_filesystem.yml | 72 ++++++++++++++++++++++ 1 file changed, 72 insertions(+) create mode 100644 phpBB/config/installer/container/services_update_filesystem.yml (limited to 'phpBB/config/installer/container/services_update_filesystem.yml') diff --git a/phpBB/config/installer/container/services_update_filesystem.yml b/phpBB/config/installer/container/services_update_filesystem.yml new file mode 100644 index 0000000000..2882df4294 --- /dev/null +++ b/phpBB/config/installer/container/services_update_filesystem.yml @@ -0,0 +1,72 @@ +services: + installer.update_filesystem.check_task: + class: phpbb\install\module\update_filesystem\task\file_check + arguments: + - @filesystem + - @installer.helper.config + - @installer.helper.iohandler + - @installer.helper.update_helper + - %core.root_path% + tags: + - { name: update_filesystem, order: 10 } + + installer.update_filesystem.diff_files: + class: phpbb\install\module\update_filesystem\task\diff_files + arguments: + - @installer.helper.container_factory + - @installer.helper.config + - @installer.helper.iohandler + - @installer.helper.update_helper + - %core.root_path% + - %core.php_ext% + tags: + - { name: update_filesystem, order: 20 } + + installer.update_filesystem.show_file_status: + class: phpbb\install\module\update_filesystem\task\show_file_status + arguments: + - @installer.helper.container_factory + - @installer.helper.config + - @installer.helper.iohandler + - @filesystem + - @installer.file_updater.factory + tags: + - { name: update_filesystem, order: 30 } + + installer.update_filesystem.update_files: + class: phpbb\install\module\update_filesystem\task\update_files + arguments: + - @installer.helper.container_factory + - @installer.helper.config + - @installer.helper.iohandler + - @installer.file_updater.factory + - @installer.helper.update_helper + - %core.root_path% + tags: + - { name: update_filesystem, order: 40 } + + installer.update_filesystem.download_updated_files: + class: phpbb\install\module\update_filesystem\task\download_updated_files + arguments: + - @installer.helper.config + - @installer.helper.iohandler + - @filesystem + tags: + - { name: update_filesystem, order: 50 } + + installer.module.update_filesystem_collection: + class: phpbb\di\ordered_service_collection + arguments: + - @service_container + tags: + - { name: service_collection, tag: update_filesystem, class_name_aware: true } + + installer.module.filesystem_update: + class: phpbb\install\module\update_filesystem\module + parent: installer.module_base + arguments: + - @installer.module.update_filesystem_collection + - true + - false + tags: + - { name: installer_update_module, order: 30 } -- 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 --- .../container/services_update_filesystem.yml | 54 +++++++++++----------- 1 file changed, 27 insertions(+), 27 deletions(-) (limited to 'phpBB/config/installer/container/services_update_filesystem.yml') diff --git a/phpBB/config/installer/container/services_update_filesystem.yml b/phpBB/config/installer/container/services_update_filesystem.yml index 2882df4294..c0a04676f6 100644 --- a/phpBB/config/installer/container/services_update_filesystem.yml +++ b/phpBB/config/installer/container/services_update_filesystem.yml @@ -2,62 +2,62 @@ services: installer.update_filesystem.check_task: class: phpbb\install\module\update_filesystem\task\file_check arguments: - - @filesystem - - @installer.helper.config - - @installer.helper.iohandler - - @installer.helper.update_helper - - %core.root_path% + - '@filesystem' + - '@installer.helper.config' + - '@installer.helper.iohandler' + - '@installer.helper.update_helper' + - '%core.root_path%' tags: - { name: update_filesystem, order: 10 } installer.update_filesystem.diff_files: class: phpbb\install\module\update_filesystem\task\diff_files arguments: - - @installer.helper.container_factory - - @installer.helper.config - - @installer.helper.iohandler - - @installer.helper.update_helper - - %core.root_path% - - %core.php_ext% + - '@installer.helper.container_factory' + - '@installer.helper.config' + - '@installer.helper.iohandler' + - '@installer.helper.update_helper' + - '%core.root_path%' + - '%core.php_ext%' tags: - { name: update_filesystem, order: 20 } installer.update_filesystem.show_file_status: class: phpbb\install\module\update_filesystem\task\show_file_status arguments: - - @installer.helper.container_factory - - @installer.helper.config - - @installer.helper.iohandler - - @filesystem - - @installer.file_updater.factory + - '@installer.helper.container_factory' + - '@installer.helper.config' + - '@installer.helper.iohandler' + - '@filesystem' + - '@installer.file_updater.factory' tags: - { name: update_filesystem, order: 30 } installer.update_filesystem.update_files: class: phpbb\install\module\update_filesystem\task\update_files arguments: - - @installer.helper.container_factory - - @installer.helper.config - - @installer.helper.iohandler - - @installer.file_updater.factory - - @installer.helper.update_helper - - %core.root_path% + - '@installer.helper.container_factory' + - '@installer.helper.config' + - '@installer.helper.iohandler' + - '@installer.file_updater.factory' + - '@installer.helper.update_helper' + - '%core.root_path%' tags: - { name: update_filesystem, order: 40 } installer.update_filesystem.download_updated_files: class: phpbb\install\module\update_filesystem\task\download_updated_files arguments: - - @installer.helper.config - - @installer.helper.iohandler - - @filesystem + - '@installer.helper.config' + - '@installer.helper.iohandler' + - '@filesystem' tags: - { name: update_filesystem, order: 50 } installer.module.update_filesystem_collection: class: phpbb\di\ordered_service_collection arguments: - - @service_container + - '@service_container' tags: - { name: service_collection, tag: update_filesystem, class_name_aware: true } @@ -65,7 +65,7 @@ services: class: phpbb\install\module\update_filesystem\module parent: installer.module_base arguments: - - @installer.module.update_filesystem_collection + - '@installer.module.update_filesystem_collection' - true - false tags: -- cgit v1.2.1