<?php
namespace ContainerLTu5Uzl;
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_KernelDevDebugContainer
{
/**
* 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, [], ($container->services['CoreShop\\Bundle\\ResourceBundle\\Pimcore\\CacheResourceMarshaller'] ?? ($container->services['CoreShop\\Bundle\\ResourceBundle\\Pimcore\\CacheResourceMarshaller'] = new \CoreShop\Bundle\ResourceBundle\Pimcore\CacheResourceMarshaller())));
$instance->setLogger(($container->privates['monolog.logger'] ?? $container->getMonolog_LoggerService()));
return $instance;
}
}