Skip to content

Commit

Permalink
Merge pull request #49 from mediatacom/SEOBundle-import-urls-backend
Browse files Browse the repository at this point in the history
Bugfix import urls features in backend
  • Loading branch information
Plopix authored Aug 19, 2021
2 parents aae9019 + 5cae430 commit ce13aee
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions bundle/Core/SiteAccessAwareEntityManagerFactory.php
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,8 @@
namespace Novactive\Bundle\eZSEOBundle\Core;

use Doctrine\Bundle\DoctrineBundle\Mapping\ContainerEntityListenerResolver;
use Doctrine\Common\Cache\ArrayCache;
use Symfony\Component\Cache\Adapter\ArrayAdapter;
use Doctrine\Common\Cache\Psr6\DoctrineProvider;
use Doctrine\ORM\Configuration;
use Doctrine\ORM\EntityManager;
use Doctrine\ORM\EntityManagerInterface;
Expand Down Expand Up @@ -73,12 +74,12 @@ public function get(): EntityManagerInterface
$connection = $this->registry->getConnection($connectionName);

/** @var \Doctrine\DBAL\Connection $connection */
$cache = new ArrayCache();
$cache = new ArrayAdapter();
$config = new Configuration();
$config->setMetadataCacheImpl($cache);
$config->setMetadataCacheImpl(DoctrineProvider::wrap($cache));
$driverImpl = $config->newDefaultAnnotationDriver(__DIR__.'/../Entity', false);
$config->setMetadataDriverImpl($driverImpl);
$config->setQueryCacheImpl($cache);
$config->setQueryCacheImpl(DoctrineProvider::wrap($cache));
$config->setProxyDir($this->settings['cache_dir'].'/eZSEOBundle/');
$config->setProxyNamespace('eZSEOBundle\Proxies');
$config->setAutoGenerateProxyClasses($this->settings['debug']);
Expand Down

0 comments on commit ce13aee

Please sign in to comment.