Skip to content

Commit

Permalink
Merge pull request #1022 from garak/patch-1
Browse files Browse the repository at this point in the history
Add needed alias
  • Loading branch information
lsmith77 committed Dec 12, 2017
2 parents 20321dc + 35ba22a commit 28a9248
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions DependencyInjection/LiipImagineExtension.php
Expand Up @@ -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;
Expand Down Expand Up @@ -82,6 +83,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']);

Expand Down

0 comments on commit 28a9248

Please sign in to comment.