Skip to content

Commit

Permalink
Adapt configuration group names to Yii conventions (#25)
Browse files Browse the repository at this point in the history
  • Loading branch information
vjik committed Feb 16, 2023
1 parent c1c7ea5 commit cd9115f
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions CHANGELOG.md
@@ -1,8 +1,8 @@
# Yii RBAC Rules Container Change Log

## 1.1.1 under development
## 2.0.0 under development

- no changes in this release.
- Chg #25: Adapt configuration group names to Yii conventions (@vjik)

## 1.1.0 November 10, 2022

Expand Down
2 changes: 1 addition & 1 deletion composer.json
Expand Up @@ -69,7 +69,7 @@
},
"config-plugin": {
"params": "params.php",
"common": "common.php"
"di": "di.php"
}
},
"scripts": {
Expand Down
File renamed without changes.
6 changes: 3 additions & 3 deletions tests/ConfigTest.php
Expand Up @@ -55,17 +55,17 @@ private function createContainer(?array $params = null): Container
{
return new Container(
ContainerConfig::create()->withDefinitions(
$this->getCommonDefinitions($params)
$this->getDiConfig($params)
)
);
}

private function getCommonDefinitions(?array $params = null): array
private function getDiConfig(?array $params = null): array
{
if ($params === null) {
$params = $this->getParams();
}
return require dirname(__DIR__) . '/config/common.php';
return require dirname(__DIR__) . '/config/di.php';
}

private function getParams(): array
Expand Down

0 comments on commit cd9115f

Please sign in to comment.