src/Viserio/Component/View/ViewFactory.php
public function getEngineFromPath(string $path): EngineContract
    {
        $engine    = \explode('|', $path);
        $path      = $engine[1] ?? $path;
        $extension = $this->getExtension($path);

        if ($extension === null) {
            throw new InvalidArgumentException(\sprintf('Unrecognized extension in file: [%s].', $path));
        }

        return $this->engines->resolve(self::$extensions[$extension]);
    }
public function getEngineFromPath(string $path): EngineContract
    {
        $engine    = \explode('|', $path);
        $path      = $engine[1] ?? $path;
        $extension = $this->getExtension($path);

        if ($extension === null) {
            throw new InvalidArgumentException(\sprintf('Unrecognized extension in file: [%s].', $path));
        }

        return $this->engines->resolve(self::$extensions[$extension]);
    }
{@inheritdoc}