diff options
author | Patrik Kernstock <info@pkern.at> | 2018-10-05 19:51:50 +0200 |
---|---|---|
committer | Patrik Kernstock <info@pkern.at> | 2018-10-05 19:51:50 +0200 |
commit | f27ce6b5a0efaf2f7a5f4942cccd6186f439ed42 (patch) | |
tree | d2e494ec47f7393a01106cbb3f657ee0aa641894 /core/register_command.php | |
parent | f8771d3d810b521f83f4c955d62b4c2f4b10cdfc (diff) | |
download | nextcloud-server-f27ce6b5a0efaf2f7a5f4942cccd6186f439ed42.tar.gz nextcloud-server-f27ce6b5a0efaf2f7a5f4942cccd6186f439ed42.zip |
Inject AppManager and Installer, check for shipped app prior removing
Signed-off-by: Patrik Kernstock <info@pkern.at>
Diffstat (limited to 'core/register_command.php')
-rw-r--r-- | core/register_command.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/core/register_command.php b/core/register_command.php index 0e53cd20df1..02cc450c24f 100644 --- a/core/register_command.php +++ b/core/register_command.php @@ -65,7 +65,7 @@ if (\OC::$server->getConfig()->getSystemValue('installed', false)) { $application->add(new OC\Core\Command\App\Install()); $application->add(new OC\Core\Command\App\GetPath()); $application->add(new OC\Core\Command\App\ListApps(\OC::$server->getAppManager())); - $application->add(new OC\Core\Command\App\Remove()); + $application->add(new OC\Core\Command\App\Remove(\OC::$server->getAppManager(), \OC::$server->query(\OC\Installer::class))); $application->add(\OC::$server->query(\OC\Core\Command\TwoFactorAuth\Cleanup::class)); $application->add(\OC::$server->query(\OC\Core\Command\TwoFactorAuth\Enforce::class)); |