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