Skip to content

Commit

Permalink
Add missing information to the readme
Browse files Browse the repository at this point in the history
  • Loading branch information
DeGraciaMathieu committed Jun 25, 2024
1 parent ccd97f4 commit 2c81dc4
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 3 deletions.
12 changes: 12 additions & 0 deletions composer.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,15 @@
{
"name": "degraciamathieu/laravel-rapid-bind",
"type": "library",
"description": "Quickly and easily create singletons in the Laravel container with annotations",
"keywords": [
"laravel-rapid-bind",
"laravel",
"container",
"ioc",
"bind"
],
"homepage": "https://github.com/DeGraciaMathieu/laravel-rapid-bind",
"require": {
"php": "^8.1",
"composer/class-map-generator": "^1.3",
Expand All @@ -20,5 +29,8 @@
"psr-4": {
"Tests\\": "tests/"
}
},
"scripts": {
"test": "vendor/bin/phpunit"
}
}
2 changes: 1 addition & 1 deletion src/RapidBind.php
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ public function bind(array $paths): void
{
foreach ($paths as $path) {

$classMap = ClassMapGenerator::createMap($path);
$classMap = ClassMapGenerator::createMap(realpath($path));

foreach ($classMap as $port => $_) {

Expand Down
4 changes: 2 additions & 2 deletions tests/Unit/RapidBindTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ public function it_should_create_singleton_with_Bind_attribute(): void
->once();

RapidBind::bind([
realpath('tests/Unit/Stubs/Ports'),
'tests/Unit/Stubs/Ports',
]);
}

Expand All @@ -36,7 +36,7 @@ public function it_should_not_create_singleton_without_Bind_attribute(): void
->shouldNotHaveReceived('singleton');

RapidBind::bind([
realpath('tests/Unit/Stubs/Services')
'tests/Unit/Stubs/Services',
]);
}
}

0 comments on commit 2c81dc4

Please sign in to comment.