Conditions | 1 |
Paths | 1 |
Total Lines | 9 |
Code Lines | 5 |
Lines | 0 |
Ratio | 0 % |
Tests | 7 |
CRAP Score | 1 |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
17 | 7 | public function resolve(object $attribute, object $service, \ReflectionMethod $method): void |
|
18 | { |
||
19 | 7 | $aliases = $this->getAliases($attribute, $method); |
|
20 | 6 | $closure = new Factory( |
|
21 | 6 | callable: $method->getClosure($service), |
|
22 | 6 | singleton: false, |
|
23 | 6 | ); |
|
24 | |||
25 | 6 | $this->bind($aliases, $closure, $this->getScopes($method)); |
|
26 | } |
||
28 |