WhiteOctoberTCPDFBundle
WhiteOctoberTCPDFBundle copied to clipboard
Constants from tcpdf_autoconfig cannot be override in boot()
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)) .... )
In dev environment the second request (when the cache was generated already) constants from config are used.....