bearsunday /
BEAR.Resource
| 1 | <?php |
||
| 2 | |||
| 3 | declare(strict_types=1); |
||
| 4 | |||
| 5 | namespace BEAR\Resource; |
||
| 6 | |||
| 7 | use Override; |
||
| 8 | use Ray\Di\InjectorInterface; |
||
| 9 | |||
| 10 | final readonly class HttpAdapter implements AdapterInterface |
||
|
0 ignored issues
–
show
Bug
introduced
by
Loading history...
|
|||
| 11 | { |
||
| 12 | public function __construct( |
||
| 13 | private InjectorInterface $injector, |
||
| 14 | ) { |
||
| 15 | } |
||
| 16 | |||
| 17 | /** |
||
| 18 | * {@inheritDoc} |
||
| 19 | */ |
||
| 20 | #[Override] |
||
| 21 | public function get(AbstractUri $uri): ResourceObject |
||
| 22 | { |
||
| 23 | return $this->injector->getInstance(HttpResourceObject::class); |
||
| 24 | } |
||
| 25 | } |
||
| 26 |