App manager is not needed anymore

Signed-off-by: Joas Schilling <coding@schilljs.com>
pull/8232/head
Joas Schilling 7 years ago
parent f095001e4b
commit 211212f4b3
No known key found for this signature in database
GPG Key ID: 7076EA9751AACDDA
  1. 3
      core/Command/App/CheckCode.php
  2. 2
      tests/lib/App/CodeChecker/InfoCheckerTest.php

@ -126,8 +126,7 @@ class CheckCode extends Command implements CompletionAwareInterface {
}
if(!$input->getOption('skip-validate-info')) {
// Can not inject because of circular dependency
$infoChecker = new InfoChecker(\OC::$server->getAppManager());
$infoChecker = new InfoChecker();
$infoChecker->listen('InfoChecker', 'parseError', function($error) use ($output) {
$output->writeln("<error>Invalid appinfo.xml file found: $error</error>");
});

@ -44,7 +44,7 @@ class InfoCheckerTest extends TestCase {
protected function setUp() {
parent::setUp();
$this->infoChecker = new InfoChecker(\OC::$server->getAppManager());
$this->infoChecker = new InfoChecker();
}
public function appInfoData() {

Loading…
Cancel
Save