src/Registry/Recursive.php
protected function replaceRefs($key, &$scope)
    {
        if (is_array($scope)) {
            foreach (array_keys($scope) as $subkey) {
                $this->replaceRefs(
                    implode($this->delimiter, [$key, $subkey]),
                    $scope[$subkey]
                );
            }
        } else {
            $this->getByRef($key, $scope);
        }
    }
protected function replaceRefs($key, &$scope)
    {
        if (is_array($scope)) {
            foreach (array_keys($scope) as $subkey) {
                $this->replaceRefs(
                    implode($this->delimiter, [$key, $subkey]),
                    $scope[$subkey]
                );
            }
        } else {
            $this->getByRef($key, $scope);
        }
    }
protected function replaceRefs ( $ key , & $ scope ) { if ( is_array ( $ scope ) ) { foreach ( array_keys ( $ scope ) as $ subkey ) { $ this -> replaceRefs ( implode ( $ this -> delimiter , [ $ key , $ subkey ] ) , $ scope [ $ subkey ] ) ; } } else { $ this -> getByRef ( $ key , $ scope ) ; } }
Replaces references recursively.

@param  string $key
@param  mixed  $scope
@return void
@throws \ReflectionException
@internal
Replaces references recursively .