Skip to content

Commit e21d700

Browse files
fix(app): Add container configuration to console app setup. (#150)
1 parent 8064b77 commit e21d700

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66
- Bug #143: Add `Available stacks` section with `RoadRunner` badge to `README.md` (@terabytesoftw)
77
- Bug #146: Remove `yiisoft/yii2-symfonymailer` dependency from `composer.json` (@terabytesoftw)
88
- Bug #149: Update PHPStan annotations and add container configuration file (@terabytesoftw)
9+
- Bug #150: Add container configuration to `console` app setup (@terabytesoftw)
910

1011
## 0.1.0 August 31, 2025
1112

config/console/app.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,8 @@
66

77
/** @phpstan-var array<string, mixed> $components */
88
$components = require dirname(__DIR__) . '/common/components.php';
9+
/** @phpstan-var array<string, mixed> $container */
10+
$container = require dirname(__DIR__) . '/console/container.php';
911
/** @phpstan-var array<string, mixed> $params */
1012
$params = require dirname(__DIR__) . '/params-console.php';
1113

@@ -14,6 +16,7 @@
1416
'basePath' => dirname(__DIR__, 2),
1517
'bootstrap' => ['log'],
1618
'components' => $components,
19+
'container' => $container,
1720
'controllerMap' => ['hello' => HelloController::class],
1821
'params' => $params,
1922
];

0 commit comments

Comments
 (0)