Skip to content

Commit

Permalink
Craft 4 support added.
Browse files Browse the repository at this point in the history
  • Loading branch information
Oliver Stark committed May 5, 2022
1 parent 4ba73e8 commit 5bea229
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 2 deletions.
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -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.

Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
8 changes: 7 additions & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -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": {
Expand All @@ -28,5 +28,11 @@
},
"extra": {
"bootstrap": "fortrabbit\\MemcachedEnabler\\Bootstrap"
},
"config": {
"allow-plugins": {
"yiisoft/yii2-composer": true,
"craftcms/plugin-installer": true
}
}
}
2 changes: 2 additions & 0 deletions src/Bootstrap.php
Original file line number Diff line number Diff line change
Expand Up @@ -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)
{
Expand Down

0 comments on commit 5bea229

Please sign in to comment.