aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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() {