src/Viserio/Component/View/ViewFactory.php
public function create(string $view, array $data = [], array $mergeData = []): ViewContract
    {
        if (isset($this->aliases[$view])) {
            $view = $this->aliases[$view];
        }

        $view     = $this->normalizeName($view);
        $fileInfo = $this->getFinder()->find($view);

        return $this->getView(
            $this,
            $this->getEngineFromPath($fileInfo['path']),
            $view,
            $fileInfo,
            \array_merge($mergeData, $this->parseData($data))
        );
    }
public function create(string $view, array $data = [], array $mergeData = []): ViewContract
    {
        if (isset($this->aliases[$view])) {
            $view = $this->aliases[$view];
        }

        $view     = $this->normalizeName($view);
        $fileInfo = $this->getFinder()->find($view);

        return $this->getView(
            $this,
            $this->getEngineFromPath($fileInfo['path']),
            $view,
            $fileInfo,
            \array_merge($mergeData, $this->parseData($data))
        );
    }
{@inheritdoc}