src/Viserio/Component/View/Engine/EngineResolver.php
public function resolve(string $engine): EngineContract
    {
        if (isset($this->resolved[$engine])) {
            return $this->resolved[$engine];
        }

        if (isset($this->resolvers[$engine])) {
            return $this->resolved[$engine] = \call_user_func($this->resolvers[$engine]);
        }

        throw new InvalidArgumentException(\sprintf('Engine [%s] not found.', $engine));
    }
public function resolve(string $engine): EngineContract
    {
        if (isset($this->resolved[$engine])) {
            return $this->resolved[$engine];
        }

        if (isset($this->resolvers[$engine])) {
            return $this->resolved[$engine] = \call_user_func($this->resolvers[$engine]);
        }

        throw new InvalidArgumentException(\sprintf('Engine [%s] not found.', $engine));
    }
{@inheritdoc}