Skip to content

Commit

Permalink
Adding DI
Browse files Browse the repository at this point in the history
  • Loading branch information
floriankraemer committed Sep 24, 2024
1 parent 6eff659 commit 7009f71
Show file tree
Hide file tree
Showing 15 changed files with 579 additions and 415 deletions.
13 changes: 0 additions & 13 deletions analyse.php

This file was deleted.

10 changes: 2 additions & 8 deletions bin/cognitive-analysis
Original file line number Diff line number Diff line change
Expand Up @@ -7,12 +7,6 @@ if (file_exists(__DIR__ . '/../../../autoload.php')) {
require_once __DIR__ . '/../vendor/autoload.php';
}

use Phauthentic\CodeQualityMetrics\Command\CognitiveMetricsCommand;
use Phauthentic\CodeQualityMetrics\Command\HalsteadMetricsCommand;
use Symfony\Component\Console\Application;
use Phauthentic\CodeQualityMetrics\Application;

$application = new Application();
$application->add(new CognitiveMetricsCommand());
$application->add(new HalsteadMetricsCommand());

$application->run();
(new Application())->run();
3 changes: 2 additions & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,8 @@
"nikic/php-parser": "^5.1",
"symfony/console": "^7.1",
"symfony/config": "^7.1",
"symfony/yaml": "^7.1"
"symfony/yaml": "^7.1",
"symfony/dependency-injection": "^7.1"
},
"autoload": {
"psr-4": {
Expand Down
Loading

0 comments on commit 7009f71

Please sign in to comment.