-
-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(ServiceProvider): Add ability to get tagged classes of given imp…
…lementation
- Loading branch information
Showing
7 changed files
with
122 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
23 changes: 23 additions & 0 deletions
23
tests/Feature/Providers/Actions/DITestImplementationAction.php
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
<?php | ||
|
||
declare(strict_types=1); | ||
|
||
namespace Tests\LaraStrict\Feature\Providers\Actions; | ||
|
||
use Tests\LaraStrict\Feature\Providers\Interfaces\TestImplementationInterface; | ||
|
||
final class DITestImplementationAction | ||
{ | ||
/** | ||
* @param array<TestImplementationInterface> $implementations | ||
*/ | ||
public function __construct( | ||
private readonly array $implementations, | ||
) { | ||
} | ||
|
||
public function execute(): never | ||
{ | ||
dd($this->implementations); | ||
} | ||
} |
11 changes: 11 additions & 0 deletions
11
tests/Feature/Providers/Actions/TestImplementationAction.php
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
<?php | ||
|
||
declare(strict_types=1); | ||
|
||
namespace Tests\LaraStrict\Feature\Providers\Actions; | ||
|
||
use Tests\LaraStrict\Feature\Providers\Interfaces\TestImplementationInterface; | ||
|
||
class TestImplementationAction implements TestImplementationInterface | ||
{ | ||
} |
9 changes: 9 additions & 0 deletions
9
tests/Feature/Providers/Interfaces/TestImplementationInterface.php
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
<?php | ||
|
||
declare(strict_types=1); | ||
|
||
namespace Tests\LaraStrict\Feature\Providers\Interfaces; | ||
|
||
interface TestImplementationInterface | ||
{ | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters