diff options
author | Morris Jobke <hey@morrisjobke.de> | 2014-11-19 00:25:26 +0100 |
---|---|---|
committer | Morris Jobke <hey@morrisjobke.de> | 2014-11-20 15:03:16 +0100 |
commit | 8ae8eb47349f2510976637c6a1e8fa91e8d9f8d3 (patch) | |
tree | 510f7823369a233e5b8eef4b65168b5cd14f08a3 /core/register_command.php | |
parent | cbb9caf03083cc083491e292143ee53871920106 (diff) | |
download | nextcloud-server-8ae8eb47349f2510976637c6a1e8fa91e8d9f8d3.tar.gz nextcloud-server-8ae8eb47349f2510976637c6a1e8fa91e8d9f8d3.zip |
drop dependency of some commands on old config object
Diffstat (limited to 'core/register_command.php')
-rw-r--r-- | core/register_command.php | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/core/register_command.php b/core/register_command.php index c5d9b6e342d..8f79473ced8 100644 --- a/core/register_command.php +++ b/core/register_command.php @@ -11,14 +11,14 @@ $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()); -$application->add(new OC\Core\Command\Db\ConvertType(OC_Config::getObject(), new \OC\DB\ConnectionFactory())); +$application->add(new OC\Core\Command\Db\ConvertType(\OC::$server->getConfig(), new \OC\DB\ConnectionFactory())); $application->add(new OC\Core\Command\Upgrade(\OC::$server->getConfig())); $application->add(new OC\Core\Command\Maintenance\SingleUser()); -$application->add(new OC\Core\Command\Maintenance\Mode(OC_Config::getObject())); +$application->add(new OC\Core\Command\Maintenance\Mode(\OC::$server->getConfig())); $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($repair, OC_Config::getObject())); +$application->add(new OC\Core\Command\Maintenance\Repair($repair, \OC::$server->getConfig())); $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()); |