protected function processOutput($view, $data = [])
    {
        $name = $this->generateFileName();

        $path = __DIR__ . DIRECTORY_SEPARATOR . "{$name}";

        file_put_contents($path, $this->generateView($view, $data));

        $this->getPhantomProcess($path)->setTimeout(0)->mustRun();

        return $path;
    }