From 35ba22a3223a8d0d673647520c85df4888f878a7 Mon Sep 17 00:00:00 2001 From: Massimiliano Arione Date: Fri, 8 Dec 2017 14:21:58 +0100 Subject: [PATCH] Add needed alias Without proposed alias, this bundle is not working on Symfony 4.0, and logging a deprecation notice on Symfony 3.4 >Autowiring services based on the types they implement is deprecated since Symfony 3.3 and won't be supported in version 4.0. You should rename (or alias) the "liip_imagine.cache.manager" service to "Liip\ImagineBundle\Imagine\Cache\CacheManager" instead. --- DependencyInjection/LiipImagineExtension.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/DependencyInjection/LiipImagineExtension.php b/DependencyInjection/LiipImagineExtension.php index 975ff2650..0d3697b2f 100644 --- a/DependencyInjection/LiipImagineExtension.php +++ b/DependencyInjection/LiipImagineExtension.php @@ -13,6 +13,7 @@ use Liip\ImagineBundle\DependencyInjection\Factory\Loader\LoaderFactoryInterface; use Liip\ImagineBundle\DependencyInjection\Factory\Resolver\ResolverFactoryInterface; +use Liip\ImagineBundle\Imagine\Cache\CacheManager; use Symfony\Component\Config\FileLocator; use Symfony\Component\DependencyInjection\Alias; use Symfony\Component\DependencyInjection\ContainerBuilder; @@ -81,6 +82,7 @@ public function load(array $configs, ContainerBuilder $container) ]); $container->setAlias('liip_imagine', new Alias('liip_imagine.'.$config['driver'])); + $container->setAlias(CacheManager::class, new Alias('liip_imagine.cache.manager', false)); $container->setParameter('liip_imagine.cache.resolver.default', $config['cache']);