Skip to content

Commit

Permalink
Update plugin config to CraftCMS 4
Browse files Browse the repository at this point in the history
  • Loading branch information
panlatent committed Jun 19, 2022
1 parent 5399d1a commit 4c70eb6
Show file tree
Hide file tree
Showing 3 changed files with 28 additions and 6 deletions.
4 changes: 4 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,10 @@ To install the plugin, follow these instructions.

composer require panlatent/schedule

The plugin supports CraftCMS 4 since version 0.4, CraftCMS 3 requires version 0.3.x:

composer require "panlatent/schedule:^0.3.2"

3. In the Control Panel, go to Settings → Plugins and click the “Install” button for Schedule.

4. Add a record to system crontab:
Expand Down
18 changes: 13 additions & 5 deletions composer.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "panlatent/schedule",
"description": "Schedule plugin for CraftCMS 3",
"description": "Schedule plugin for CraftCMS",
"type": "craft-plugin",
"keywords": [
"craft",
Expand All @@ -24,12 +24,13 @@
}
],
"require": {
"php": "^8.0.2",
"craftcms/cms": "^4.0",
"nesbot/carbon": "^1.22 || ^2.10",
"omnilight/yii2-scheduling": "^1.1",
"symfony/process": "^4.2",
"guzzlehttp/guzzle": "^7.2",
"panlatent/cron-expression-descriptor": "^1.0.5"
"panlatent/cron-expression-descriptor": "^1.1"
},
"suggest": {
"ext-intl": "Help translate cron express description"
Expand All @@ -42,15 +43,22 @@
"extra": {
"name": "Schedule",
"handle": "schedule",
"hasCpSettings": true,
"hasCpSection": true,
"changelogUrl": "https://raw.githubusercontent.com/panlatent/schedule/master/CHANGELOG.md",
"class": "panlatent\\schedule\\Plugin",
"branch-alias": {
"dev-master": "0.3.x-dev"
"dev-master": "0.4.x-dev"
}
},
"require-dev": {
"codeception/codeception": "^4.1"
},
"config": {
"platform": {
"php": "8.0.2"
},
"allow-plugins": {
"yiisoft/yii2-composer": true,
"craftcms/plugin-installer": true
}
}
}
12 changes: 11 additions & 1 deletion src/Plugin.php
Original file line number Diff line number Diff line change
Expand Up @@ -50,13 +50,23 @@ class Plugin extends \craft\base\Plugin
/**
* @var string
*/
public string $schemaVersion = '0.3.2';
public string $schemaVersion = '0.4.0';

/**
* @var string
*/
public ?string $t9nCategory = 'schedule';

/**
* @var bool
*/
public bool $hasCpSettings = true;

/**
* @var bool
*/
public bool $hasCpSection = true;

// Public Methods
// =========================================================================

Expand Down

0 comments on commit 4c70eb6

Please sign in to comment.