From e14f7e35c61f250488dbb48dd47b98da23258b27 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?G=C3=BCnther=20Jedenastik?= Date: Tue, 12 Jul 2022 18:11:49 +0200 Subject: [PATCH 1/2] TASK: Neos 8 compatibility --- Classes/Service/NodeService.php | 16 ++++++++-------- composer.json | 2 +- 2 files changed, 9 insertions(+), 9 deletions(-) diff --git a/Classes/Service/NodeService.php b/Classes/Service/NodeService.php index 63f61e5..55ea6a7 100644 --- a/Classes/Service/NodeService.php +++ b/Classes/Service/NodeService.php @@ -122,17 +122,17 @@ public function findOrCreateBetterEmbedRootNode(Context $context) */ public function findOrCreateBetterEmbedAssetCollection(string $title = self::ASSET_COLLECTION_TITLE): AssetCollection { - /** @var AssetCollection $asseteCollection */ - $asseteCollection = $this->assetCollectionRepository->findByTitle($title)->getFirst(); + /** @var AssetCollection $assetCollection */ + $assetCollection = $this->assetCollectionRepository->findByTitle($title)->getFirst(); - if ($asseteCollection == null) { - $asseteCollection = new AssetCollection($title); + if ($assetCollection === null) { + $assetCollection = new AssetCollection($title); - $this->assetCollectionRepository->add($asseteCollection); - $this->persistenceManager->whitelistObject($asseteCollection); + $this->assetCollectionRepository->add($assetCollection); + $this->persistenceManager->allowObject($assetCollection); } - return $asseteCollection; + return $assetCollection; } /** @@ -174,7 +174,7 @@ private function createTag(string $label, ArrayCollection $assetCollections): Ta $tag->setAssetCollections($assetCollections); $this->tagRepository->add($tag); - $this->persistenceManager->whitelistObject($tag); + $this->persistenceManager->allowObject($tag); return $tag; } diff --git a/composer.json b/composer.json index 0ef2777..cd5cff7 100644 --- a/composer.json +++ b/composer.json @@ -9,7 +9,7 @@ "source": "https://github.com/betterembed/neos-betterembed" }, "require": { - "neos/neos": "^4.3 || ^5 || ^7", + "neos/neos": "^4.3 || ^5 || ^7 || ^8", "guzzlehttp/guzzle": "^6.3" }, "authors": [ From c5f0245017d411b903fad5916a368f6c2b3ed5a5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?G=C3=BCnther=20Jedenastik?= Date: Tue, 12 Jul 2022 18:14:21 +0200 Subject: [PATCH 2/2] TASK: require neos 8 as minimum compatibility --- composer.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/composer.json b/composer.json index cd5cff7..54fe626 100644 --- a/composer.json +++ b/composer.json @@ -9,7 +9,7 @@ "source": "https://github.com/betterembed/neos-betterembed" }, "require": { - "neos/neos": "^4.3 || ^5 || ^7 || ^8", + "neos/neos": "^8", "guzzlehttp/guzzle": "^6.3" }, "authors": [