Skip to content

Commit 6ac70cf

Browse files
Refining the Box Config and App Versioning
1 parent 14efd09 commit 6ac70cf

File tree

3 files changed

+10
-2
lines changed

3 files changed

+10
-2
lines changed

.gitignore

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,4 +10,4 @@
1010
.env
1111
infection.log
1212
phive.phar
13-
cognitive-analysis.phar
13+
phpcca.phar

box.json.dist

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,12 @@
11
{
2-
"main": "./bin/phpcca",
32
"compression": "GZ",
43
"output": "phpcca.phar",
54
"force-autodiscovery": true,
5+
"compactors": [
6+
"KevinGH\\Box\\Compactor\\Json",
7+
"KevinGH\\Box\\Compactor\\Php",
8+
"KevinGH\\Box\\Compactor\\PhpScoper"
9+
],
610
"files": [
711
"config.yml",
812
"composer.json",

src/Application.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -231,6 +231,10 @@ private function registerCommands(): void
231231
private function configureApplication(): void
232232
{
233233
$this->containerBuilder->register(SymfonyApplication::class, SymfonyApplication::class)
234+
->setArguments([
235+
'Cognitive Code Analysis',
236+
'1.3.1'
237+
])
234238
->setPublic(true)
235239
->addMethodCall('add', [new Reference(CognitiveMetricsCommand::class)])
236240
->addMethodCall('add', [new Reference(ChurnCommand::class)]);

0 commit comments

Comments
 (0)