Skip to content

Commit

Permalink
Add ability to set custom config modifiers
Browse files Browse the repository at this point in the history
  • Loading branch information
vjik committed Dec 25, 2023
1 parent f235e23 commit 9f7cfb9
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 3 deletions.
4 changes: 2 additions & 2 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
# Yii Runner HTTP Change Log

## 2.1.1 under development
## 2.2.0 under development

- no changes in this release.
- New #49: Add ability to set custom config modifiers (@vjik)

## 2.1.0 July 10, 2023

Expand Down
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@
"yiisoft/log": "^2.0",
"yiisoft/log-target-file": "^3.0",
"yiisoft/yii-http": "^1.0",
"yiisoft/yii-runner": "^2.0"
"yiisoft/yii-runner": "^2.1"
},
"require-dev": {
"httpsoft/http-message": "^1.0",
Expand Down
4 changes: 4 additions & 0 deletions src/HttpApplicationRunner.php
Original file line number Diff line number Diff line change
Expand Up @@ -50,9 +50,11 @@ final class HttpApplicationRunner extends ApplicationRunner
* This is needed for recursive merging of parameters.
* @param array $nestedEventsGroups Configuration group names that are included into events' configuration group.
* This is needed for reverse and recursive merge of events' configurations.
* @param object[] $configModifiers Modifiers for {@see Config}.
*
* @psalm-param list<string> $nestedParamsGroups
* @psalm-param list<string> $nestedEventsGroups
* @psalm-param list<object> $configModifiers
*/
public function __construct(
string $rootPath,
Expand All @@ -68,6 +70,7 @@ public function __construct(
string $paramsGroup = 'params-web',
array $nestedParamsGroups = ['params'],
array $nestedEventsGroups = ['events'],
array $configModifiers = [],
) {
parent::__construct(
$rootPath,
Expand All @@ -83,6 +86,7 @@ public function __construct(
$paramsGroup,
$nestedParamsGroups,
$nestedEventsGroups,
$configModifiers,
);
}

Expand Down

0 comments on commit 9f7cfb9

Please sign in to comment.