<?php
namespace ContainerMhdHbrh;
use Symfony\Component\DependencyInjection\Argument\RewindableGenerator;
use Symfony\Component\DependencyInjection\Exception\RuntimeException;
/**
* @internal This class has been auto-generated by the Symfony Dependency Injection Component.
*/
class getPimcore_Cache_Adapter_PdoService extends App_KernelTestingDebugContainer
{
/**
* Gets the private 'pimcore.cache.adapter.pdo' shared autowired service.
*
* @return \Symfony\Component\Cache\Adapter\PdoAdapter
*
* @deprecated Since pimcore/pimcore 10.5: The "pimcore.cache.adapter.pdo" service is deprecated. Use "pimcore.cache.adapter.doctrine_dbal" instead
*/
public static function do($container, $lazyLoad = true)
{
trigger_deprecation('pimcore/pimcore', '10.5', 'The "pimcore.cache.adapter.pdo" service is deprecated. Use "pimcore.cache.adapter.doctrine_dbal" instead');
$a = ($container->services['doctrine.dbal.default_connection'] ?? $container->getDoctrine_Dbal_DefaultConnectionService());
if (isset($container->privates['pimcore.cache.adapter.pdo'])) {
return $container->privates['pimcore.cache.adapter.pdo'];
}
$container->privates['pimcore.cache.adapter.pdo'] = $instance = new \Symfony\Component\Cache\Adapter\PdoAdapter($a, '', 31536000);
$instance->setLogger(($container->privates['monolog.logger'] ?? $container->getMonolog_LoggerService()));
return $instance;
}
}