diff options
author | Mate Bartus <mate.bartus@gmail.com> | 2015-10-28 15:00:11 +0100 |
---|---|---|
committer | Mate Bartus <mate.bartus@gmail.com> | 2016-01-29 00:03:44 +0100 |
commit | a649768e17d25bcf55ae539420abe4eb4b7a1ef1 (patch) | |
tree | f8441c9c77054d6a58bd1e8befa8842ef180be4a /phpBB/config | |
parent | 10756f3f87efac29448a48207548d5b71a3206b9 (diff) | |
download | forums-a649768e17d25bcf55ae539420abe4eb4b7a1ef1.tar forums-a649768e17d25bcf55ae539420abe4eb4b7a1ef1.tar.gz forums-a649768e17d25bcf55ae539420abe4eb4b7a1ef1.tar.bz2 forums-a649768e17d25bcf55ae539420abe4eb4b7a1ef1.tar.xz forums-a649768e17d25bcf55ae539420abe4eb4b7a1ef1.zip |
[ticket/14262] Move convertor to controller
PHPBB3-14262
Diffstat (limited to 'phpBB/config')
3 files changed, 47 insertions, 0 deletions
diff --git a/phpBB/config/installer/container/services_install_controller.yml b/phpBB/config/installer/container/services_install_controller.yml index 5be28c5746..5688c61db9 100644 --- a/phpBB/config/installer/container/services_install_controller.yml +++ b/phpBB/config/installer/container/services_install_controller.yml @@ -49,3 +49,18 @@ services: class: phpbb\install\controller\archive_download arguments: - '@installer.helper.config' + + phpbb.installer.controller.convert: + class: phpbb\convert\controller\convertor + arguments: + - '@installer.helper.container_factory' + - '@installer.helper.database' + - '@phpbb.installer.controller.helper' + - '@installer.helper.install_helper' + - '@installer.helper.iohandler_factory' + - '@language' + - '@installer.navigation.provider' + - '@request' + - '@template' + - '%core.root_path%' + - '%core.php_ext%' diff --git a/phpBB/config/installer/container/services_install_navigation.yml b/phpBB/config/installer/container/services_install_navigation.yml index 301d6f3434..4fc6abb6eb 100644 --- a/phpBB/config/installer/container/services_install_navigation.yml +++ b/phpBB/config/installer/container/services_install_navigation.yml @@ -33,3 +33,10 @@ services: tags: - { name: installer.navigation } + installer.navigation.convertor_navigation: + class: phpbb\install\helper\navigation\convertor_navigation + arguments: + - '@installer.helper.install_helper' + scope: prototype + tags: + - { name: installer.navigation } diff --git a/phpBB/config/installer/routing/installer.yml b/phpBB/config/installer/routing/installer.yml index 6190799737..1961ba8ed6 100644 --- a/phpBB/config/installer/routing/installer.yml +++ b/phpBB/config/installer/routing/installer.yml @@ -35,3 +35,28 @@ phpbb_installer_update_conflict_download: path: /download/conflict defaults: _controller: phpbb.installer.controller.file_downloader:conflict_archive + +phpbb_convert_intro: + path: /convert/{start_new} + defaults: + _controller: phpbb.installer.controller.convert:intro + start_new: 0 + +phpbb_convert_settings: + path: /convert/settings/{convertor} + defaults: + _controller: phpbb.installer.controller.convert:settings + requirements: + converter: "[a-zA-Z0-9_]+" + +phpbb_convert_convert: + path: /convert/in_progress/{converter} + defaults: + _controller: phpbb.installer.controller.convert:convert + requirements: + converter: "[a-zA-Z0-9_]+" + +phpbb_convert_finish: + path: /convert/finished + defaults: + _controller: phpbb.installer.controller.convert:finish |