Skip to content

Commit

Permalink
* Added createSettingsModel() to the main plugin class
Browse files Browse the repository at this point in the history
  • Loading branch information
khalwat committed Apr 8, 2017
1 parent 14cd5bb commit 020bb00
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 1 deletion.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
# ImageOptim Changelog

## 1.0.6 - 2017.04.08
### Changed
* Added `createSettingsModel()` to the main plugin class

## 1.0.5 - 2017.03.24
### Changed
* `hasSettings` -> `hasCpSettings` for Craft 3 beta 8 compatibility
Expand Down
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"name": "nystudio107/craft3-imageoptim",
"description": "Automatically optimize images after they've been transformed",
"type": "craft-plugin",
"version": "1.0.5",
"version": "1.0.6",
"keywords": [
"craft",
"cms",
Expand Down
12 changes: 12 additions & 0 deletions src/ImageOptim.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@
namespace nystudio107\imageoptim;

use nystudio107\imageoptim\services\Optimize as OptimizeService;
use nystudio107\imageoptim\models\Settings;

use Craft;
use craft\base\Plugin;
Expand Down Expand Up @@ -70,4 +71,15 @@ function (GenerateTransformEvent $event) {
__METHOD__
);
}

// Protected Methods
// =========================================================================

/**
* @inheritdoc
*/
protected function createSettingsModel()
{
return new Settings();
}
}

0 comments on commit 020bb00

Please sign in to comment.