From 52b0c8186eaff1baa2661d6c50c288a4ebdda82c Mon Sep 17 00:00:00 2001 From: Fran Moreno Date: Sun, 29 Oct 2023 17:48:15 +0100 Subject: [PATCH] Add $buildDir parameter to warmUp method --- CacheWarmer/HydratorCacheWarmer.php | 2 +- CacheWarmer/PersistentCollectionCacheWarmer.php | 2 +- CacheWarmer/ProxyCacheWarmer.php | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/CacheWarmer/HydratorCacheWarmer.php b/CacheWarmer/HydratorCacheWarmer.php index 5d608712..8b10fbff 100644 --- a/CacheWarmer/HydratorCacheWarmer.php +++ b/CacheWarmer/HydratorCacheWarmer.php @@ -49,7 +49,7 @@ public function isOptional() } /** @return string[] */ - public function warmUp(string $cacheDir) + public function warmUp(string $cacheDir, ?string $buildDir = null) { // we need the directory no matter the hydrator cache generation strategy. $hydratorCacheDir = (string) $this->container->getParameter('doctrine_mongodb.odm.hydrator_dir'); diff --git a/CacheWarmer/PersistentCollectionCacheWarmer.php b/CacheWarmer/PersistentCollectionCacheWarmer.php index 2fb75efe..8e71a7ea 100644 --- a/CacheWarmer/PersistentCollectionCacheWarmer.php +++ b/CacheWarmer/PersistentCollectionCacheWarmer.php @@ -50,7 +50,7 @@ public function isOptional() } /** @return string[] */ - public function warmUp(string $cacheDir) + public function warmUp(string $cacheDir, ?string $buildDir = null) { // we need the directory no matter the hydrator cache generation strategy. $collCacheDir = (string) $this->container->getParameter('doctrine_mongodb.odm.persistent_collection_dir'); diff --git a/CacheWarmer/ProxyCacheWarmer.php b/CacheWarmer/ProxyCacheWarmer.php index b7532cda..0f416853 100644 --- a/CacheWarmer/ProxyCacheWarmer.php +++ b/CacheWarmer/ProxyCacheWarmer.php @@ -51,7 +51,7 @@ public function isOptional() } /** @return string[] */ - public function warmUp(string $cacheDir) + public function warmUp(string $cacheDir, ?string $buildDir = null) { // we need the directory no matter the proxy cache generation strategy. $proxyCacheDir = (string) $this->container->getParameter('doctrine_mongodb.odm.proxy_dir');