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

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

@pauluz

Description

@pauluz

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)) .... )

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions