From 6759fdc28ebbee50f28528b3bd36baacee8b8301 Mon Sep 17 00:00:00 2001 From: Robert Lemke <robert@flownative.com> Date: Thu, 18 Jan 2024 07:56:35 +0100 Subject: [PATCH] Introduce onPublish() to satisfy Flow 9 interface The TargetInterface in Flow 9 was extended by a new method "onPublish()". The GcsTarget class now implements that method in order to satisfy the new interface. See also: https://github.com/neos/flow-development-collection/pull/3229 --- Classes/GcsTarget.php | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/Classes/GcsTarget.php b/Classes/GcsTarget.php index 2dc8b9b..20806bd 100644 --- a/Classes/GcsTarget.php +++ b/Classes/GcsTarget.php @@ -423,6 +423,16 @@ private function publishCollectionFromDifferentGoogleCloudStorage(CollectionInte $this->logger->info(sprintf('Published %s new objects to target bucket "%s".', $iteration, $this->bucketName), LogEnvironment::fromMethodName(__METHOD__)); } + /** + * Satisfy the TargetInterface + * + * @param \Closure $callback + * @return void + */ + public function onPublish(\Closure $callback): void + { + } + /** * Returns the web accessible URI pointing to the given static resource *