Skip to content

Commit

Permalink
🚀 kirby 4 version
Browse files Browse the repository at this point in the history
Signed-off-by: bnomei <[email protected]>
  • Loading branch information
bnomei committed Dec 4, 2023
1 parent f4398f3 commit 5417c8e
Show file tree
Hide file tree
Showing 6 changed files with 428 additions and 370 deletions.
8 changes: 2 additions & 6 deletions classes/Lapse.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,12 +5,8 @@
namespace Bnomei;

use Exception;
use Iterator;
use Kirby\Cache\Cache;
use Kirby\Cms\Field;
use Kirby\Cms\File;
use Kirby\Cms\FileVersion;
use Kirby\Cms\Page;
use Kirby\Content\Field;
use Kirby\Toolkit\A;

final class Lapse
Expand Down Expand Up @@ -158,7 +154,7 @@ public function serialize($value)
return $items;
}

if (is_a($value, 'Kirby\Cms\Field')) {
if (is_a($value, 'Kirby\Content\Field')) {
return $value->value();
}

Expand Down
4 changes: 2 additions & 2 deletions composer.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "bnomei/kirby3-lapse",
"type": "kirby-plugin",
"version": "3.2.0",
"version": "4.0.0",
"description": "Cache any data until set expiration time",
"license": "MIT",
"authors": [
Expand Down Expand Up @@ -40,7 +40,7 @@
"getkirby/composer-installer": "^1.2"
},
"require-dev": {
"getkirby/cms": "^3.8.1.1",
"getkirby/cms": "^4.0.1",
"php-coveralls/php-coveralls": "^2.4",
"phpunit/phpunit": "^9.5"
},
Expand Down
Loading

0 comments on commit 5417c8e

Please sign in to comment.