Skip to content

Commit 573e03e

Browse files
author
Bertrand Dunogier
committed
Moved schema update download to shutdown function
1 parent 63f34d3 commit 573e03e

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

src/Schema/Sync/UpdateSchemaIfNeeded.php

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -71,9 +71,8 @@ public function updateSchema(ExecutorArgumentsEvent $event)
7171

7272
$this->logger->info("Update needed with timestamp $remoteSchemaTimestamp");
7373

74-
$newSchemaPath = $this->updateSchemaFromSharedResource($remoteSchemaTimestamp);
75-
76-
$installSchemaCallback = function() use($newSchemaPath, $lock) {
74+
$installSchemaCallback = function() use($remoteSchemaTimestamp, $lock) {
75+
$newSchemaPath = $this->updateSchemaFromSharedResource($remoteSchemaTimestamp);
7776
if ($this->logger) {
7877
$this->logger->info("Applying the updated schema ($newSchemaPath -> $this->definitionsDirectory)");
7978
}

0 commit comments

Comments
 (0)