Commit 1cc2a0b4 authored by Laurent Lecluse's avatar Laurent Lecluse
Browse files

Suppression du vieux système de génération de PDFs avec MPDF.

Le nouveau système d'états de sortie ou bien de publipostage OpenDocument doit être privilégié
parent f641c0a4
Loading
Loading
Loading
Loading
+0 −16
Original line number Diff line number Diff line
@@ -5,7 +5,6 @@ namespace Application\Controller;
use Application\Form\Supprimer;
use Application\Traits\TranslatorTrait;
use Doctrine\ORM\EntityManager;
use UnicaenApp\Exporter\Pdf;
use Zend\Mvc\Controller\AbstractActionController;

/**
@@ -50,19 +49,4 @@ abstract class AbstractController extends AbstractActionController
        return \Application::$container->get(\Application\Constants::BDD);
    }



    /**
     * @return Pdf
     */
    protected function pdf()
    {
        $pdfPath = getcwd().'/cache/mpdf/';
        if (!file_exists($pdfPath)){
            mkdir($pdfPath);
        }
        define('_MPDF_TTFONTDATAPATH', $pdfPath);
        return new Pdf(\Application::$container->get('view_manager')->getRenderer());
    }

}
 No newline at end of file