summaryrefslogtreecommitdiffstats
path: root/core/register_command.php
diff options
context:
space:
mode:
authorVincent Petry <pvince81@owncloud.com>2014-06-10 11:47:27 +0200
committerVincent Petry <pvince81@owncloud.com>2014-06-12 17:38:26 +0200
commitca690c4d02d6c59e3fb9edb0f75ae640d744b612 (patch)
tree110d83d8c96d0b781155b42a6d9eead576fab6e7 /core/register_command.php
parent6fcd1af4db2d1bf8d61fa0c627c308e7257294b9 (diff)
downloadnextcloud-server-ca690c4d02d6c59e3fb9edb0f75ae640d744b612.tar.gz
nextcloud-server-ca690c4d02d6c59e3fb9edb0f75ae640d744b612.zip
Added RepairStep interface and default repair step lists
The updater is using "before update" repair steps and "regular" repair steps. The "regular" repair steps are also used by the CLI tool. Currently no steps exist but can be added later in the static methods in the \OC\Repair class. Added unit test to test messaging, error and exception cases.
Diffstat (limited to 'core/register_command.php')
-rw-r--r--core/register_command.php5
1 files changed, 4 insertions, 1 deletions
diff --git a/core/register_command.php b/core/register_command.php
index 9ced377bee3..b02988bbdd8 100644
--- a/core/register_command.php
+++ b/core/register_command.php
@@ -6,6 +6,8 @@
* See the COPYING-README file.
*/
+$repair = new \OC\Repair(\OC\Repair::getRepairSteps());
+
/** @var $application Symfony\Component\Console\Application */
$application->add(new OC\Core\Command\Status);
$application->add(new OC\Core\Command\Db\GenerateChangeScript());
@@ -16,7 +18,8 @@ $application->add(new OC\Core\Command\Maintenance\Mode(OC_Config::getObject()));
$application->add(new OC\Core\Command\App\Disable());
$application->add(new OC\Core\Command\App\Enable());
$application->add(new OC\Core\Command\App\ListApps());
-$application->add(new OC\Core\Command\Maintenance\Repair(new \OC\Repair()));
+$application->add(new OC\Core\Command\Maintenance\Repair($repair, OC_Config::getObject()));
$application->add(new OC\Core\Command\User\Report());
$application->add(new OC\Core\Command\User\ResetPassword(\OC::$server->getUserManager()));
$application->add(new OC\Core\Command\User\LastSeen());
+