| @@ 65-78 (lines=14) @@ | ||
| 62 | $annotations = $this->reader->getMethodAnnotations($function); |
|
| 63 | ||
| 64 | foreach ($annotations as $annotation) { |
|
| 65 | if ($annotation instanceof StepInjectorArgument && |
|
| 66 | in_array($argument = $annotation->getArgument(), $paramsKeys) |
|
| 67 | ) { |
|
| 68 | /* @var StepInjectorArgument $annotation */ |
|
| 69 | foreach ($this->stepArgumentHolders as $hooker) { |
|
| 70 | if ($hooker->doesHandleStepArgument($annotation)) { |
|
| 71 | ||
| 72 | $match[$argument] |
|
| 73 | = $match[strval(++$i)] |
|
| 74 | = $hooker->getStepArgumentValueFor($annotation) |
|
| 75 | ; |
|
| 76 | } |
|
| 77 | } |
|
| 78 | } |
|
| 79 | } |
|
| 80 | ||
| 81 | return $this->baseOrganiser->organiseArguments($function, $match); |
|
| @@ 64-73 (lines=10) @@ | ||
| 61 | // Prepare arguments from annotations |
|
| 62 | $annotations = $this->reader->getMethodAnnotations($function); |
|
| 63 | foreach ($annotations as $annotation) { |
|
| 64 | if ($annotation instanceof StepInjectorArgument && |
|
| 65 | in_array($argument = $annotation->getArgument(), $paramsKeys) |
|
| 66 | ) { |
|
| 67 | /* @var StepArgumentInjectorArgument $annotation */ |
|
| 68 | foreach ($this->stepArgumentHolders as $hooker) { |
|
| 69 | if ($hooker->doesHandleStepArgument($annotation)) { |
|
| 70 | $arguments[$argument] = $hooker->getStepArgumentValueFor($annotation); |
|
| 71 | } |
|
| 72 | } |
|
| 73 | } |
|
| 74 | } |
|
| 75 | ||
| 76 | // Reorder arguments |
|