Conditions | 1 |
Paths | 1 |
Total Lines | 12 |
Code Lines | 6 |
Lines | 0 |
Ratio | 0 % |
Tests | 8 |
CRAP Score | 1 |
1 | <?php |
||
14 | 1 | public function apply(Injector $injector) |
|
15 | { |
||
16 | 1 | $injector->define(RelayBuilder::class, [ |
|
17 | 1 | 'resolver' => 'Relay\ResolverInterface', |
|
18 | ]); |
||
19 | |||
20 | 1 | $factory = function (RelayBuilder $builder, MiddlewareSet $queue) { |
|
21 | 1 | return $builder->newInstance($queue); |
|
22 | 1 | }; |
|
23 | |||
24 | 1 | $injector->delegate('Relay\Relay', $factory); |
|
25 | 1 | } |
|
26 | } |
||
27 |