Skip to content

Commit

Permalink
2.0.0-beta.1
Browse files Browse the repository at this point in the history
  • Loading branch information
engram-design committed Mar 9, 2022
1 parent 149065b commit c00a34c
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 4 deletions.
6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@
# Changelog

## 2.0.0-beta.1 - 2022-03-10

### Changed
- Now requires PHP `^8.0.2`.
- Now requires Craft `^4.0.0-beta.1`.

## 1.1.12 - 2021-11-01

### Fixed
Expand Down
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
],
"require": {
"php": "^8.0.2",
"craftcms/cms": "^4.0.0-alpha",
"craftcms/cms": "^4.0.0-beta.1",
"verbb/base": "^2.0.0-beta",
"cakephp/core": "^3.5",
"cakephp/utility": "^3.3.12",
Expand Down
4 changes: 2 additions & 2 deletions src/fields/IconPickerField.php
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ public function getInputHtml(mixed $value, ?ElementInterface $element = null): s

public function getSettingsHtml(): ?string
{
$settings = IconPicker::getInstance()->getSettings();
$settings = IconPicker::$plugin->getSettings();
$iconSetsPath = $settings->getIconSetsPath();

$errors = [];
Expand Down Expand Up @@ -173,7 +173,7 @@ public function serializeValue(mixed $value, ?ElementInterface $element = null):

public function afterSave(bool $isNew): void
{
$settings = IconPicker::getInstance()->getSettings();
$settings = IconPicker::$plugin->getSettings();
$iconSets = IconPicker::$plugin->getService()->getEnabledIconSets($this);

// When saving the field, fire off queue jobs to prime the icon cache
Expand Down
2 changes: 1 addition & 1 deletion src/services/Cache.php
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ class Cache extends Component

public function clearAndRegenerate(): void
{
$settings = IconPicker::getInstance()->getSettings();
$settings = IconPicker::$plugin->getSettings();

// Clear and regenerate caches
$iconSets = IconPicker::$plugin->getService()->getIconSets();
Expand Down

0 comments on commit c00a34c

Please sign in to comment.