Skip to content

Commit

Permalink
2.0.0
Browse files Browse the repository at this point in the history
  • Loading branch information
bencroker authored and d-karstens committed Apr 11, 2024
1 parent c8abe63 commit f34de84
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 16 deletions.
12 changes: 3 additions & 9 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,13 +1,7 @@
# Release Notes for Blitz Fastly Purger

## 1.1.1
## 2.0.0 - 2024-04-08

- Update icon
### Added

## 1.1.0

- Converted from module to plugin

## 1.0.0

- Initial release
- Added compatibility with Craft 5.
8 changes: 4 additions & 4 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,10 +16,10 @@
"docs": "https://github.com/mango-chutney/craft-blitz-fastly/blob/main/README.md"
},
"require": {
"php": ">=8.0.2",
"craftcms/cms": "^4.0",
"php": "^8.2",
"craftcms/cms": "^5.0",
"fastly/fastly": "^1.3",
"putyourlightson/craft-blitz": "^4.0"
"putyourlightson/craft-blitz": "^5.0"
},
"autoload": {
"psr-4": {
Expand All @@ -35,7 +35,7 @@
"config": {
"sort-packages": true,
"platform": {
"php": "8.0.2"
"php": "8.2"
},
"allow-plugins": {
"yiisoft/yii2-composer": true,
Expand Down
5 changes: 2 additions & 3 deletions src/Plugin.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,20 +4,19 @@

use craft\base\Plugin as BasePlugin;
use craft\events\RegisterComponentTypesEvent;
use mangochutney\blitzfastly\FastlyPurger;
use putyourlightson\blitz\helpers\CachePurgerHelper;
use yii\base\Event;

class Plugin extends BasePlugin
{
public function init()
public function init(): void
{
parent::init();

Event::on(
CachePurgerHelper::class,
CachePurgerHelper::EVENT_REGISTER_PURGER_TYPES,
function (RegisterComponentTypesEvent $event) {
function(RegisterComponentTypesEvent $event) {
$event->types[] = FastlyPurger::class;
}
);
Expand Down

0 comments on commit f34de84

Please sign in to comment.