implement pdf invoice generation workflow

This commit is contained in:
Manuel Raynaud
2013-10-02 16:33:43 +02:00
parent 0116cb2891
commit df08809a48
8 changed files with 75 additions and 7 deletions

View File

@@ -41,6 +41,7 @@ class Pdf extends BaseAction implements EventSubscriberInterface
$domPdf = new \DOMPDF();
$domPdf->load_html($event->getContent());
$domPdf->render();
$event->setPdf($domPdf->output());
}
@@ -67,7 +68,7 @@ class Pdf extends BaseAction implements EventSubscriberInterface
*/
public static function getSubscribedEvents()
{
array(
return array(
TheliaEvents::GENERATE_PDF => array("generatePdf", 128)
);
}