Skip to content

Commit

Permalink
Merge pull request #8 from fortrabbit/feature/craft4
Browse files Browse the repository at this point in the history
Craft 4 support added.
  • Loading branch information
Oliver Stark authored Jun 22, 2022
2 parents 4ba73e8 + 5bea229 commit 588c95f
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
@@ -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.

2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -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
8 changes: 7 additions & 1 deletion composer.json
Original file line number Diff line number Diff line change
@@ -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
}
}
}
2 changes: 2 additions & 0 deletions src/Bootstrap.php
Original file line number Diff line number Diff line change
@@ -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)
{

0 comments on commit 588c95f

Please sign in to comment.