Skip to content

Commit

Permalink
-refactoring
Browse files Browse the repository at this point in the history
  • Loading branch information
alexndlm committed Nov 26, 2024
1 parent e9e17a7 commit 8ccc3cb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/DependencyInjection/DoctrineExtension.php
Original file line number Diff line number Diff line change
Expand Up @@ -1111,7 +1111,7 @@ private function createMetadataCache(string $objectManagerName, ContainerBuilder
$cache = new Definition(ArrayAdapter::class);

if (! $container->getParameter('kernel.debug')) {
$phpArrayFile = '%kernel.cache_dir%' . sprintf('/doctrine/orm/%s_metadata.php', $objectManagerName);
$phpArrayFile = '%kernel.build_dir%' . sprintf('/doctrine/orm/%s_metadata.php', $objectManagerName);
$cacheWarmerServiceId = $this->getObjectManagerElementName(sprintf('%s_%s', $objectManagerName, 'metadata_cache_warmer'));

$container->register($cacheWarmerServiceId, DoctrineMetadataCacheWarmer::class)
Expand Down

0 comments on commit 8ccc3cb

Please sign in to comment.