File tree 4 files changed +11
-12
lines changed
4 files changed +11
-12
lines changed Original file line number Diff line number Diff line change @@ -6,4 +6,5 @@ composer.lock
6
6
phpunit.xml
7
7
.env
8
8
.idea
9
- .phpunit.result.cache
9
+ .phpunit.result.cache
10
+ .DS_Store
Original file line number Diff line number Diff line change 12
12
"license" : " MIT" ,
13
13
"authors" : [],
14
14
"require" : {
15
- "php" : " ^7.4|^ 8.0" ,
16
- "illuminate/console" : " ^8 .0" ,
17
- "illuminate/database" : " ^8 .0" ,
18
- "illuminate/support" : " ^8 .0" ,
19
- "illuminate/routing" : " ^8 .0"
15
+ "php" : " ^8.0" ,
16
+ "illuminate/console" : " ^9 .0" ,
17
+ "illuminate/database" : " ^9 .0" ,
18
+ "illuminate/support" : " ^9 .0" ,
19
+ "illuminate/routing" : " ^9 .0"
20
20
},
21
21
"require-dev" : {
22
22
"phpunit/phpunit" : " ^9.5" ,
23
23
"mockery/mockery" : " ^1.4" ,
24
- "orchestra/testbench" : " ^6 .0"
24
+ "orchestra/testbench" : " ^7 .0"
25
25
},
26
26
"autoload" : {
27
27
"psr-4" : {
Original file line number Diff line number Diff line change @@ -17,9 +17,7 @@ class ModulesServiceProvider extends ServiceProvider
17
17
*/
18
18
public function register (): void
19
19
{
20
- $ this ->app ->singleton (ModuleRepositoryContract::class, static function () {
21
- return new ModuleRepository ();
22
- });
20
+ $ this ->app ->singleton (ModuleRepositoryContract::class, ModuleRepository::class);
23
21
}
24
22
25
23
/**
Original file line number Diff line number Diff line change 4
4
5
5
use Zonneplan \ModuleLoader \Support \Contracts \ModuleRepositoryContract ;
6
6
use Zonneplan \ModuleLoader \Support \Exceptions \ModuleNotFoundException ;
7
+ use Zonneplan \ModuleLoader \Support \ModuleRepository ;
7
8
use Zonneplan \ModuleLoader \Test \TestCase ;
8
9
9
10
class ModuleRepositoryTest extends TestCase
10
11
{
11
- /* @var ModuleRepository */
12
- protected $ moduleRepository ;
12
+ protected ModuleRepository $ moduleRepository ;
13
13
14
14
public function setUp (): void
15
15
{
You can’t perform that action at this time.
0 commit comments