summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJoas Schilling <coding@schilljs.com>2018-02-16 17:13:23 +0100
committerJoas Schilling <coding@schilljs.com>2018-02-16 17:13:36 +0100
commit211212f4b3f2897672e3eec26cd073bbcfe85043 (patch)
tree6baf8e7796c3996e6a6436a43f4219d927b19aca
parentf095001e4b29229576f7f74881b78bf9b1db2c85 (diff)
downloadnextcloud-server-211212f4b3f2897672e3eec26cd073bbcfe85043.tar.gz
nextcloud-server-211212f4b3f2897672e3eec26cd073bbcfe85043.zip
App manager is not needed anymore
Signed-off-by: Joas Schilling <coding@schilljs.com>
-rw-r--r--core/Command/App/CheckCode.php3
-rw-r--r--tests/lib/App/CodeChecker/InfoCheckerTest.php2
2 files changed, 2 insertions, 3 deletions
diff --git a/core/Command/App/CheckCode.php b/core/Command/App/CheckCode.php
index a129bcf1e10..530c1d30ec0 100644
--- a/core/Command/App/CheckCode.php
+++ b/core/Command/App/CheckCode.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>");
});
diff --git a/tests/lib/App/CodeChecker/InfoCheckerTest.php b/tests/lib/App/CodeChecker/InfoCheckerTest.php
index 9f354a4611c..3128f902f47 100644
--- a/tests/lib/App/CodeChecker/InfoCheckerTest.php
+++ b/tests/lib/App/CodeChecker/InfoCheckerTest.php
@@ -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() {