Skip to content

Commit

Permalink
Remove provider
Browse files Browse the repository at this point in the history
  • Loading branch information
rustamwin committed Aug 31, 2021
1 parent d7c629e commit 80ae55f
Show file tree
Hide file tree
Showing 5 changed files with 28 additions and 56 deletions.
19 changes: 19 additions & 0 deletions config/console.php
@@ -0,0 +1,19 @@
<?php

declare(strict_types=1);

use NunoMaduro\Collision\Contracts\SolutionsRepository;
use NunoMaduro\Collision\Writer;
use NunoMaduro\Collision\Contracts\Writer as WriterContract;
use Yiistack\Collision\FriendlySolutionsRepository;

/**
* @var array $params
*/
if ((bool)$params['yiistack/collision']['enabled'] === false) {
return [];
}
return [
SolutionsRepository::class => FriendlySolutionsRepository::class,
WriterContract::class => Writer::class,
];
9 changes: 9 additions & 0 deletions config/params.php
@@ -0,0 +1,9 @@
<?php

declare(strict_types=1);

return [
'yiistack/collision' => [
'enabled' => true,
],
];
9 changes: 0 additions & 9 deletions config/providers-console.php

This file was deleted.

25 changes: 0 additions & 25 deletions src/CollisionServiceProvider.php

This file was deleted.

22 changes: 0 additions & 22 deletions tests/CollisionServiceProviderTest.php

This file was deleted.

0 comments on commit 80ae55f

Please sign in to comment.