Skip to content
This repository has been archived by the owner on Nov 25, 2020. It is now read-only.

Constants from tcpdf_autoconfig cannot be override in boot() #29

Open
pauluz opened this issue Jun 10, 2014 · 1 comment
Open

Constants from tcpdf_autoconfig cannot be override in boot() #29

pauluz opened this issue Jun 10, 2014 · 1 comment

Comments

@pauluz
Copy link

pauluz commented Jun 10, 2014

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
Copy link
Author

pauluz commented Jul 9, 2014

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

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant