Skip to content

Commit

Permalink
Removed DI again.
Browse files Browse the repository at this point in the history
DI did not work within phar files?
At least for now just removed it so app keeps working.
  • Loading branch information
GeoffreyDijkstra committed Aug 11, 2021
1 parent aaad76e commit e0de60a
Show file tree
Hide file tree
Showing 4 changed files with 19 additions and 170 deletions.
19 changes: 17 additions & 2 deletions bin/console.php
Original file line number Diff line number Diff line change
@@ -1,9 +1,24 @@
<?php

use App\Services\Application;
use App\Commands\Assignee;
use App\Commands\BranchNameConvention;
use App\Commands\CommitMessages;
use App\Commands\Labels;
use App\Services\CodeOwnersFile;
use App\Services\GithubActionConfig;
use App\Services\GithubApiCommands;
use Symfony\Component\Console\Application;

require_once __DIR__ . '/../vendor/autoload.php';

$app = new Application('Devorto Commit Messages', '1.0.0');
$app->addDirectory(__DIR__ . '/../src/Commands', 'App\Commands');

$config = new GithubActionConfig();
$commands = new GithubApiCommands($config);
$owner = new CodeOwnersFile();

$app->add(new Assignee($config, $commands));
$app->add(new BranchNameConvention($config, $commands, $owner));
$app->add(new CommitMessages($config, $commands));
$app->add(new Labels($commands, $config));
$app->run();
3 changes: 1 addition & 2 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,6 @@
"php": "^7.4.0|^8.0.0",
"ext-curl": "*",
"ext-json": "*",
"symfony/console": "^5.3.0",
"devorto/dependency-injection": "^2.0.0"
"symfony/console": "^5.3.0"
}
}
97 changes: 1 addition & 96 deletions composer.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

70 changes: 0 additions & 70 deletions src/Services/Application.php

This file was deleted.

0 comments on commit e0de60a

Please sign in to comment.