Update NucleosDompdfExtension.php Extension Injection #1489
Annotations
4 warnings
The following actions use a deprecated Node.js version and will be forced to run on node20: actions/cache@v3. For more info: https://github.blog/changelog/2024-03-07-github-actions-all-actions-will-run-on-node20-instead-of-node16-by-default/
|
src/DependencyInjection/NucleosDompdfExtension.php#L30
Escaped Mutant for Mutator "MethodCallRemoval":
@@ @@
$configuration = new Configuration();
$config = $this->processConfiguration($configuration, $configs);
$loader = new Loader\PhpFileLoader($container, new FileLocator(__DIR__ . '/../Resources/config'));
- $loader->load('services.php');
+
$container->setParameter('nucleos_dompdf.options', $config['defaults']);
}
}
|
src/Wrapper/DompdfWrapper.php#L44
Escaped Mutant for Mutator "InstanceOf_":
@@ @@
{
$pdf = $this->dompdfFactory->create($options);
$pdf->loadHtml($html);
- if ($this->eventDispatcher instanceof EventDispatcherInterface) {
+ if (true) {
$event = new StreamEvent($pdf, $filename, $html);
$this->eventDispatcher->dispatch($event, DompdfEvents::STREAM);
}
|
src/Wrapper/DompdfWrapper.php#L58
Escaped Mutant for Mutator "InstanceOf_":
@@ @@
{
$pdf = $this->dompdfFactory->create($options);
$pdf->loadHtml($html);
- if ($this->eventDispatcher instanceof EventDispatcherInterface) {
+ if (true) {
$event = new OutputEvent($pdf, $html);
$this->eventDispatcher->dispatch($event, DompdfEvents::OUTPUT);
}
|
This job succeeded
Loading