Skip to content

Commit

Permalink
Fix the VFS adjustments in the latest Contao versions
Browse files Browse the repository at this point in the history
  • Loading branch information
Toflar committed Nov 6, 2024
1 parent a328724 commit 77a10bd
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
"php": "^8.1",
"composer-plugin-api": "^2.0",
"codefog/contao-haste": "^5.2",
"contao/core-bundle": "^4.13.17 || ^5.1.1",
"contao/core-bundle": "^4.13.50 || ^5.3.14 || ^5.4.4",
"doctrine/dbal": "^3.4",
"doctrine/orm": "^2.19",
"knplabs/knp-menu": "^3.1",
Expand Down
3 changes: 2 additions & 1 deletion src/BulkyItem/BulkyItemStorage.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@

namespace Terminal42\NotificationCenterBundle\BulkyItem;

use Contao\CoreBundle\Filesystem\ExtraMetadata;
use Contao\CoreBundle\Filesystem\VirtualFilesystemException;
use Contao\CoreBundle\Filesystem\VirtualFilesystemInterface;
use Symfony\Component\Uid\Uuid;
Expand Down Expand Up @@ -32,7 +33,7 @@ public function store(BulkyItemInterface $item): string
'class' => $item::class,
];

$this->filesystem->setExtraMetadata($voucher, ['storage_meta' => $meta]);
$this->filesystem->setExtraMetadata($voucher, new ExtraMetadata(['storage_meta' => $meta]));

return $voucher;
}
Expand Down

0 comments on commit 77a10bd

Please sign in to comment.