Skip to content

Commit

Permalink
Merge branch 'release/1.1.4' into v1
Browse files Browse the repository at this point in the history
  • Loading branch information
khalwat committed Mar 27, 2021
2 parents e6a6e7f + 79b9cd3 commit b1338cb
Show file tree
Hide file tree
Showing 3 changed files with 38 additions and 7 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
# Similar Changelog

## 1.1.4 - 2021.03.27
### Changed
* Move settings from the `composer.json` “extra” to the plugin main class

## 1.1.3 - 2021.03.27
### Fixed
* Fixed an issue with using `RAND()` in the sort criteria (https://github.com/nystudio107/craft-similar/issues/32)
Expand Down
8 changes: 1 addition & 7 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"name": "nystudio107/craft-similar",
"description": "Similar for Craft lets you find elements, Entries, Categories, Commerce Products, etc, that are similar, based on... other related elements.",
"type": "craft-plugin",
"version": "1.1.3",
"version": "1.1.4",
"keywords": [
"craft",
"cms",
Expand Down Expand Up @@ -34,13 +34,7 @@
"extra": {
"name": "Similar",
"handle": "similar",
"schemaVersion": "1.0.0",
"hasCpSettings": false,
"hasCpSection": false,
"changelogUrl": "https://raw.githubusercontent.com/nystudio107/craft-similar/v1/CHANGELOG.md",
"components": {
"similar": "nystudio107\\similar\\services\\Similar"
},
"class": "nystudio107\\similar\\Similar"
}
}
33 changes: 33 additions & 0 deletions src/Similar.php
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,39 @@ class Similar extends Plugin
*/
public static $plugin;

// Static Methods
// =========================================================================

/**
* @inheritdoc
*/
public function __construct($id, $parent = null, array $config = [])
{
$config['components'] = [
'similar' => SimilarService::class,
];

parent::__construct($id, $parent, $config);
}

// Public Properties
// =========================================================================

/**
* @var string
*/
public $schemaVersion = '1.0.0';

/**
* @var bool
*/
public $hasCpSection = false;

/**
* @var bool
*/
public $hasCpSettings = false;

// Public Methods
// =========================================================================

Expand Down

0 comments on commit b1338cb

Please sign in to comment.