src/Container/DefinitionResolver.php
private function resolveSubDefinition($value)
    {
        if (is_array($value)) {
            return array_map([$this, 'resolveSubDefinition'], $value);
        } elseif ($value instanceof DefinitionInterface) {
            return $this->resolve($value);
        }

        return $value;
    }
private function resolveSubDefinition($value)
    {
        if (is_array($value)) {
            return array_map([$this, 'resolveSubDefinition'], $value);
        } elseif ($value instanceof DefinitionInterface) {
            return $this->resolve($value);
        }

        return $value;
    }
private function resolveSubDefinition ( $ value ) { if ( is_array ( $ value ) ) { return array_map ( [ $ this , 'resolveSubDefinition' ] , $ value ) ; } elseif ( $ value instanceof DefinitionInterface ) { return $ this -> resolve ( $ value ) ; } return $ value ; }
Resolve a variable that can be a sub-definition.

@param mixed|DefinitionInterface $value
@return mixed
Resolve a variable that can be a sub - definition .