@@ 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 | } |
@@ 61-71 (lines=11) @@ | ||
58 | // Prepare arguments from annotations |
|
59 | /** @var StepArgumentInjectorArgument[] $annotations */ |
|
60 | $annotations = $this->reader->getMethodAnnotations($function); |
|
61 | foreach ($annotations as $annotation) { |
|
62 | if ($annotation instanceof StepInjectorArgument && |
|
63 | in_array($annotation->getArgument(), $paramsKeys) |
|
64 | ) { |
|
65 | foreach ($this->hookers as $hooker) { |
|
66 | if ($hooker->hasStepArgumentFor($annotation->getName())) { |
|
67 | $arguments[$annotation->getArgument()] = $hooker->getStepArgumentFor($annotation->getName()); |
|
68 | } |
|
69 | } |
|
70 | } |
|
71 | } |
|
72 | ||
73 | // Reorder arguments |
|
74 | $params = []; |