Skip to content

Commit

Permalink
Introduce onPublish() to satisfy Flow 9 interface
Browse files Browse the repository at this point in the history
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: neos/flow-development-collection#3229
  • Loading branch information
robertlemke committed Jan 18, 2024
1 parent 387f101 commit 6759fdc
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions Classes/GcsTarget.php
Original file line number Diff line number Diff line change
Expand Up @@ -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
*
Expand Down

0 comments on commit 6759fdc

Please sign in to comment.