/** * @return \PhantomPdf\PdfGenerator */ protected function createPdfGenerator() { $phantomJsBinaryPath = $this->config->getPhantomJsBinaryPath(); return new PdfGenerator($phantomJsBinaryPath); }