Permalink
Browse files

quick fix to make this Bundle work without LiipImagineBundle

  • Loading branch information...
1 parent f3d63eb commit a94e1e90a3a3d4cea481d892b3718da7c21454a3 @lsmith77 lsmith77 committed Mar 19, 2013
Showing with 4 additions and 0 deletions.
  1. +4 −0 DependencyInjection/DoctrinePHPCRExtension.php
@@ -261,6 +261,10 @@ private function odmLoad(array $config, ContainerBuilder $container)
$container->setParameter('doctrine_phpcr.odm.subscriber.image_cache.filter', $filter);
$container->setParameter('doctrine_phpcr.odm.subscriber.image_cache.all_filters', $filters);
$this->loader->load('odm_image.xml');
+ $bundles = $container->getParameter('kernel.bundles');
+ if (!isset($bundles['LiipImagineBundle'])) {
+ $container->removeDefinition('doctrine_phpcr.odm.subscriber.image_cache');
+ }
$documentManagers = array();
foreach ($config['document_managers'] as $name => $documentManager) {

0 comments on commit a94e1e9

Please sign in to comment.