Skip to content

Commit

Permalink
Adjust for using with Yii Config (#256)
Browse files Browse the repository at this point in the history
  • Loading branch information
arogachev committed Feb 19, 2024
1 parent fc11eab commit 28c9f1e
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 3 deletions.
8 changes: 8 additions & 0 deletions composer.json
Expand Up @@ -59,6 +59,14 @@
},
"files": ["tests/bootstrap.php"]
},
"extra": {
"config-plugin-options": {
"source-directory": "config"
},
"config-plugin": {
"di": "di.php"
}
},
"config": {
"sort-packages": true,
"allow-plugins": {
Expand Down
3 changes: 0 additions & 3 deletions tests/ConfigTest.php
Expand Up @@ -12,8 +12,6 @@
use Yiisoft\Rbac\ItemsStorageInterface;
use Yiisoft\Rbac\Manager;
use Yiisoft\Rbac\ManagerInterface;
use Yiisoft\Rbac\RuleFactoryInterface;
use Yiisoft\Rbac\SimpleRuleFactory;
use Yiisoft\Rbac\Tests\Support\FakeAssignmentsStorage;
use Yiisoft\Rbac\Tests\Support\FakeItemsStorage;

Expand All @@ -33,7 +31,6 @@ private function createContainer(): ContainerInterface
$definitions = array_merge($definitions, [
ItemsStorageInterface::class => FakeItemsStorage::class,
AssignmentsStorageInterface::class => FakeAssignmentsStorage::class,
RuleFactoryInterface::class => SimpleRuleFactory::class,
]);
$config = ContainerConfig::create()->withDefinitions($definitions);

Expand Down

0 comments on commit 28c9f1e

Please sign in to comment.