Well, now I am solving the same problem:
You need to define your necessary constants, as mirk said,
white_october_tcpdf: tcpdf: . . .
then you need to change the class: /vendor/whiteoctober/tcpdf-bundle/WhiteOctober/TCPDFBundle/WhiteOctoberTCPDFBundle.php with this code
// All K_ and _pdf constants are required if (preg_match("/^k_/i", $k) OR preg_match("/^pdf_/i", $k)) { if (!defined($constKey)) { $value = $this->container->getParameterBag()->resolveValue($v); if (($k === 'k_path_cache' || $k === 'k_path_url_cache') && !is_dir($value)) { $this->createDir($value); } define($constKey, $value); } }
to compare both types of constants.
source share