diff --git a/src/Context/ApiContext.php b/src/Context/ApiContext.php index a49e3ac..14759b6 100644 --- a/src/Context/ApiContext.php +++ b/src/Context/ApiContext.php @@ -82,6 +82,20 @@ public function setServiceManager(ServiceManager $serviceManager) * @return string */ private function convertValueToAlias($value) + { + if (is_array($value)) { + + array_walk_recursive($value, function(&$value) { + $value = $this->replaceValueWithAlias($value); + }); + + return $value; + } + + return $this->replaceValueWithAlias($value); + } + + private function replaceValueWithAlias($value) { if (!(strpos($value, '%') === 0) && !(strpos(strrev($value), '%') === 0)) { return $value;