|
48 | 48 | * along with this program. If not, see <http://www.gnu.org/licenses/> |
49 | 49 | * |
50 | 50 | */ |
| 51 | + |
| 52 | +use OC\SystemConfig; |
51 | 53 | use Psr\Log\LoggerInterface; |
52 | 54 |
|
53 | 55 | $application->add(new \Stecman\Component\Symfony\Console\BashCompletion\CompletionCommand()); |
54 | 56 | $application->add(new OC\Core\Command\Status(\OC::$server->get(\OCP\IConfig::class), \OC::$server->get(\OCP\Defaults::class))); |
55 | | -$application->add(new OC\Core\Command\Check(\OC::$server->getSystemConfig())); |
| 57 | +$application->add(new OC\Core\Command\Check(\OC::$server->get(SystemConfig::class))); |
56 | 58 | $application->add(new OC\Core\Command\L10n\CreateJs()); |
57 | 59 | $application->add(new \OC\Core\Command\Integrity\SignApp( |
58 | 60 | \OC::$server->getIntegrityCodeChecker(), |
|
98 | 100 | $application->add(new OC\Core\Command\Config\App\GetConfig(\OC::$server->getConfig())); |
99 | 101 | $application->add(new OC\Core\Command\Config\App\SetConfig(\OC::$server->getConfig())); |
100 | 102 | $application->add(new OC\Core\Command\Config\Import(\OC::$server->getConfig())); |
101 | | - $application->add(new OC\Core\Command\Config\ListConfigs(\OC::$server->getSystemConfig(), \OC::$server->getAppConfig())); |
102 | | - $application->add(new OC\Core\Command\Config\System\DeleteConfig(\OC::$server->getSystemConfig())); |
103 | | - $application->add(new OC\Core\Command\Config\System\GetConfig(\OC::$server->getSystemConfig())); |
104 | | - $application->add(new OC\Core\Command\Config\System\SetConfig(\OC::$server->getSystemConfig())); |
| 103 | + $application->add(new OC\Core\Command\Config\ListConfigs(\OC::$server->get(SystemConfig::class), \OC::$server->getAppConfig())); |
| 104 | + $application->add(new OC\Core\Command\Config\System\DeleteConfig(\OC::$server->get(SystemConfig::class))); |
| 105 | + $application->add(new OC\Core\Command\Config\System\GetConfig(\OC::$server->get(SystemConfig::class))); |
| 106 | + $application->add(new OC\Core\Command\Config\System\SetConfig(\OC::$server->get(SystemConfig::class))); |
105 | 107 |
|
106 | 108 | $application->add(\OC::$server->get(OC\Core\Command\Info\File::class)); |
107 | 109 | $application->add(\OC::$server->get(OC\Core\Command\Info\Space::class)); |
108 | 110 |
|
109 | | - $application->add(new OC\Core\Command\Db\ConvertType(\OC::$server->getConfig(), new \OC\DB\ConnectionFactory(\OC::$server->getSystemConfig()))); |
| 111 | + $application->add(new OC\Core\Command\Db\ConvertType(\OC::$server->getConfig(), new \OC\DB\ConnectionFactory(\OC::$server->get(SystemConfig::class)))); |
110 | 112 | $application->add(new OC\Core\Command\Db\ConvertMysqlToMB4(\OC::$server->getConfig(), \OC::$server->getDatabaseConnection(), \OC::$server->getURLGenerator(), \OC::$server->get(LoggerInterface::class))); |
111 | 113 | $application->add(new OC\Core\Command\Db\ConvertFilecacheBigInt(\OC::$server->get(\OC\DB\Connection::class))); |
112 | 114 | $application->add(\OCP\Server::get(\OC\Core\Command\Db\AddMissingColumns::class)); |
|
0 commit comments