| 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 | 8 | public function resolve(object $attribute, object $service, \ReflectionMethod $method): void |
|
| 18 | { |
||
| 19 | 8 | $aliases = $this->getAliases($attribute, $method); |
|
| 20 | 5 | $closure = new Factory( |
|
| 21 | 5 | callable: $method->getClosure($service), |
|
| 22 | 5 | singleton: true, |
|
| 23 | 5 | ); |
|
| 24 | |||
| 25 | 5 | $this->bind($aliases, $closure, $this->getScopes($method)); |
|
| 26 | } |
||
| 28 |