Skip to content

Commit

Permalink
Add $buildDir parameter to warmUp method
Browse files Browse the repository at this point in the history
  • Loading branch information
franmomu committed Oct 29, 2023
1 parent d30558e commit 52b0c81
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion CacheWarmer/HydratorCacheWarmer.php
Original file line number Diff line number Diff line change
Expand Up @@ -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');
Expand Down
2 changes: 1 addition & 1 deletion CacheWarmer/PersistentCollectionCacheWarmer.php
Original file line number Diff line number Diff line change
Expand Up @@ -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');
Expand Down
2 changes: 1 addition & 1 deletion CacheWarmer/ProxyCacheWarmer.php
Original file line number Diff line number Diff line change
Expand Up @@ -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');
Expand Down

0 comments on commit 52b0c81

Please sign in to comment.