var/cache/testing/ContainerMhdHbrh/getPimcore_Cache_Adapter_PdoService.php line 22

Open in your IDE?
  1. <?php
  2. namespace ContainerMhdHbrh;
  3. use Symfony\Component\DependencyInjection\Argument\RewindableGenerator;
  4. use Symfony\Component\DependencyInjection\Exception\RuntimeException;
  5. /**
  6.  * @internal This class has been auto-generated by the Symfony Dependency Injection Component.
  7.  */
  8. class getPimcore_Cache_Adapter_PdoService extends App_KernelTestingDebugContainer
  9. {
  10.     /**
  11.      * Gets the private 'pimcore.cache.adapter.pdo' shared autowired service.
  12.      *
  13.      * @return \Symfony\Component\Cache\Adapter\PdoAdapter
  14.      *
  15.      * @deprecated Since pimcore/pimcore 10.5: The "pimcore.cache.adapter.pdo" service is deprecated. Use "pimcore.cache.adapter.doctrine_dbal" instead
  16.      */
  17.     public static function do($container$lazyLoad true)
  18.     {
  19.         trigger_deprecation('pimcore/pimcore''10.5''The "pimcore.cache.adapter.pdo" service is deprecated. Use "pimcore.cache.adapter.doctrine_dbal" instead');
  20.         $a = ($container->services['doctrine.dbal.default_connection'] ?? $container->getDoctrine_Dbal_DefaultConnectionService());
  21.         if (isset($container->privates['pimcore.cache.adapter.pdo'])) {
  22.             return $container->privates['pimcore.cache.adapter.pdo'];
  23.         }
  24.         $container->privates['pimcore.cache.adapter.pdo'] = $instance = new \Symfony\Component\Cache\Adapter\PdoAdapter($a''31536000);
  25.         $instance->setLogger(($container->privates['monolog.logger'] ?? $container->getMonolog_LoggerService()));
  26.         return $instance;
  27.     }
  28. }