From 1392759a247d416d58101e9a868db77a2b69797c Mon Sep 17 00:00:00 2001 From: Robin Schambach Date: Thu, 29 Jun 2023 10:25:01 +0200 Subject: [PATCH] first try craft 4 --- CHANGELOG.md | 7 +++++++ composer.json | 7 ++----- src/Seeder.php | 6 +++++- 3 files changed, 14 insertions(+), 6 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 3ab8eac..398079f 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,12 @@ # Craft Seeder Changelog + +## 4.0.0-RC1 - 2023-06-29 + +### changed + +- first initial craft 4 draft + ## 3.1.0 - Unreleased ### Added - Added `eachMatrixBlock` option, to seed a matrix with one of each blocktype in a random order ([#13](https://github.com/studioespresso/craft3-seeder/issues/13)) diff --git a/composer.json b/composer.json index 5df7999..a692c8c 100644 --- a/composer.json +++ b/composer.json @@ -2,7 +2,6 @@ "name": "studioespresso/craft-seeder", "description": "Easy entries seeder for Craft CMS", "type": "craft-plugin", - "version": "3.0.3", "keywords": [ "craft", "cms", @@ -22,8 +21,8 @@ } ], "require": { - "craftcms/cms": "^3.1.0", - "fzaninotto/faker": "^1.7.0" + "craftcms/cms": "^4.0.0", + "fakerphp/faker": "^1.23.0" }, "require-dev": { "codeception/codeception": "2.4.2" @@ -36,8 +35,6 @@ "extra": { "name": "Seeder", "handle": "seeder", - "hasCpSettings": false, - "hasCpSection": true, "changelogUrl": "https://raw.githubusercontent.com/studioespresso/craft3-seeder/master/CHANGELOG.md", "class": "studioespresso\\seeder\\Seeder" } diff --git a/src/Seeder.php b/src/Seeder.php index 06da829..7e87ffc 100644 --- a/src/Seeder.php +++ b/src/Seeder.php @@ -86,7 +86,11 @@ class Seeder extends Plugin * * @var string */ - public $schemaVersion = '1.0.0'; + public string $schemaVersion = '1.0.0'; + + public bool $hasCpSettings = false; + + public bool $hasCpSection = true; // Public Methods // =========================================================================