diff options
author | Christoph Wurst <christoph@winzerhof-wurst.at> | 2018-05-28 17:59:42 +0300 |
---|---|---|
committer | Christoph Wurst <christoph@winzerhof-wurst.at> | 2018-05-28 17:59:42 +0300 |
commit | 948be6bd9390df9cbec98c5a766c674f62d1bbea (patch) | |
tree | 84e925094eefedf2e6189f5c42aab40ce436089a /appinfo | |
parent | 782034dcbe80976373f66fc8ed69506856b59877 (diff) |
Add account export command
Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
Diffstat (limited to 'appinfo')
-rw-r--r-- | appinfo/info.xml | 4 | ||||
-rw-r--r-- | appinfo/register_command.php | 29 |
2 files changed, 4 insertions, 29 deletions
diff --git a/appinfo/info.xml b/appinfo/info.xml index 649e9da20..53a3620db 100644 --- a/appinfo/info.xml +++ b/appinfo/info.xml @@ -24,6 +24,10 @@ <php min-version="5.6" max-version="7.2" /> <nextcloud min-version="13" max-version="14" /> </dependencies> + <commands> + <command>OCA\Mail\Command\CreateAccount</command> + <command>OCA\Mail\Command\ExportAccount</command> + </commands> <repair-steps> <post-migration> <step>OCA\Mail\Migration\FixCollectedAddresses</step> diff --git a/appinfo/register_command.php b/appinfo/register_command.php deleted file mode 100644 index 904544a0a..000000000 --- a/appinfo/register_command.php +++ /dev/null @@ -1,29 +0,0 @@ -<?php - -/** - * @author Christoph Wurst <christoph@winzerhof-wurst.at> - * - * Mail - * - * This code is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License, version 3, - * as published by the Free Software Foundation. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * - * You should have received a copy of the GNU Affero General Public License, version 3, - * along with this program. If not, see <http://www.gnu.org/licenses/> - * - */ -use OCA\Mail\Command\CreateAccount; -use OCA\Mail\AppInfo\Application; - -$app = new Application(); -$accountService = $app->getContainer()->query('OCA\Mail\Service\AccountService'); -$crypto = OC::$server->getCrypto(); - -/** @var Symfony\Component\Console\Application $application */ -$application->add(new CreateAccount($accountService, $crypto)); |