App manager is not needed anymore

Signed-off-by: Joas Schilling <coding@schilljs.com>
This commit is contained in:
Joas Schilling 2018-02-16 17:13:23 +01:00
parent f095001e4b
commit 211212f4b3
No known key found for this signature in database
GPG Key ID: 7076EA9751AACDDA
2 changed files with 2 additions and 3 deletions

View File

@ -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>");
});

View File

@ -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() {