WhiteOctoberTCPDFBundle icon indicating copy to clipboard operation
WhiteOctoberTCPDFBundle copied to clipboard

Constants from tcpdf_autoconfig cannot be override in boot()

Open pauluz opened this issue 10 years ago • 1 comments

In my not-small project I have in composer.json:

    "require": {
        "whiteoctober/tcpdf-bundle": "dev-master",

and in AppKernel.php only:

    $bundles = array(
        new WhiteOctober\TCPDFBundle\WhiteOctoberTCPDFBundle(),
        // ...

but unfortunately the tcPDF defined constants BEFORE the WhiteOctoberTCPDFBundle so the WhiteOctober can't overwrite them. (in boot() function in WhiteOctoberTCPDFBundle.php)

I don't know where is my falut? How to boot WhiteOctober BEFORE tcPDF tcpdf/tcpdf_autoconfig.php ?

(problem is in line 35: if (!defined($constKey)) .... )

pauluz avatar Jun 10 '14 07:06 pauluz

In dev environment the second request (when the cache was generated already) constants from config are used.....

pauluz avatar Jul 09 '14 20:07 pauluz