![]() Server : Apache System : Linux server2.corals.io 4.18.0-348.2.1.el8_5.x86_64 #1 SMP Mon Nov 15 09:17:08 EST 2021 x86_64 User : corals ( 1002) PHP Version : 7.4.33 Disable Function : exec,passthru,shell_exec,system Directory : /home/corals/mautic.corals.io/app/bundles/CoreBundle/DependencyInjection/Compiler/ |
<?php declare(strict_types=1); namespace Mautic\CoreBundle\DependencyInjection\Compiler; use Symfony\Component\DependencyInjection\Compiler\CompilerPassInterface; use Symfony\Component\DependencyInjection\ContainerBuilder; use Symfony\Component\DependencyInjection\Reference; class DbalPass implements CompilerPassInterface { /** * Allows result caching with DBAL using the same configuration as the orm if provided and enabled. * * See config_prod.php */ public function process(ContainerBuilder $container): void { $id = 'doctrine.dbal.default_connection.configuration'; if ($container->hasDefinition($id)) { $container ->getDefinition($id) ->addMethodCall('setResultCache', [new Reference('doctrine.orm.default_result_cache')]); } } }