diff --git a/CHANGELOG.md b/CHANGELOG.md index fadc51e..ae4926f 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -2,6 +2,9 @@ All notable changes to this project will be documented in this file. +## [1.4.0] - 2022-05-05 +Support for Craft 4 added. + ## [1.3.1] - 2022-05-01 Previous release wasn't tagged correctly. diff --git a/README.md b/README.md index 49c0958..c884979 100644 --- a/README.md +++ b/README.md @@ -4,7 +4,7 @@ This yii-extension is a memcached drop in replacement for sessions, cache and mu ## Requirements -* Craft CMS (Version 3) +* Craft CMS (Version 3 and 4) * A Professional App on fortrabbit (see below for other hosting providers) ## Install diff --git a/composer.json b/composer.json index 275e20a..68533a5 100644 --- a/composer.json +++ b/composer.json @@ -17,7 +17,7 @@ "docs": "https://github.com/fortrabbit/yii-memcached" }, "require": { - "craftcms/cms": "^3.7.30" + "craftcms/cms": "^3.7.30|^4.0" }, "autoload": { "psr-4": { @@ -28,5 +28,11 @@ }, "extra": { "bootstrap": "fortrabbit\\MemcachedEnabler\\Bootstrap" + }, + "config": { + "allow-plugins": { + "yiisoft/yii2-composer": true, + "craftcms/plugin-installer": true + } } } diff --git a/src/Bootstrap.php b/src/Bootstrap.php index 98b4400..3fcf327 100644 --- a/src/Bootstrap.php +++ b/src/Bootstrap.php @@ -20,6 +20,8 @@ class Bootstrap implements BootstrapInterface * Bootstrapper * * @param \yii\base\Application|\craft\web\Application|\craft\console\Application $app + * + * @throws \yii\base\InvalidConfigException */ public function bootstrap($app) {