src/Viserio/Component/Container/Container.php
public function resolveNonBound($abstract, array $parameters = [])
    {
        if ($abstract instanceof Closure) {
            \array_unshift($parameters, $this);
        }

        if (\is_string($abstract) && \mb_strpos($abstract, '::')) {
            $parts    = \explode('::', $abstract, 2);
            $abstract = [$this->resolve($parts[0]), $parts[1]];
        }

        $resolved = parent::resolve($abstract, $parameters);

        if (\is_string($abstract)) {
            $this->extendResolved($abstract, $resolved);
        }

        return $resolved;
    }
public function resolveNonBound($abstract, array $parameters = [])
    {
        if ($abstract instanceof Closure) {
            \array_unshift($parameters, $this);
        }

        if (\is_string($abstract) && \mb_strpos($abstract, '::')) {
            $parts    = \explode('::', $abstract, 2);
            $abstract = [$this->resolve($parts[0]), $parts[1]];
        }

        $resolved = parent::resolve($abstract, $parameters);

        if (\is_string($abstract)) {
            $this->extendResolved($abstract, $resolved);
        }

        return $resolved;
    }
{@inheritdoc}