Skip to content

Commit

Permalink
Merge pull request #67 from timmyomahony/release/5.0.0
Browse files Browse the repository at this point in the history
Craft 5 support
  • Loading branch information
timmyomahony authored Aug 3, 2024
2 parents 6928632 + 836ff77 commit d5e78c6
Show file tree
Hide file tree
Showing 6 changed files with 20 additions and 9 deletions.
6 changes: 3 additions & 3 deletions .craftplugin
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
{
"pluginName": "Crate Remote Sync",
"pluginDescription": "Sync your database and assets across Craft environments",
"pluginVersion": "1.0.0",
"pluginVersion": "5.0.0",
"pluginAuthorName": "Timmy O'Mahony",
"pluginVendorName": "weareferal",
"pluginAuthorUrl": "https://weareferal.com",
"pluginAuthorGithub": "weareferal",
"pluginAuthorUrl": "https://craft-plugins.timmyomahony.com/remote-sync",
"pluginAuthorGithub": "timmyomahony.com",
"codeComments": "yes",
"pluginComponents": [
"controllers",
Expand Down
11 changes: 11 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,17 @@ All notable changes to this project will be documented in this file.

The format is based on [Keep a Changelog](http://keepachangelog.com/) and this project adheres to [Semantic Versioning](http://semver.org/).

## 5.0.0 - 2024-08-03

### Added

- Craft 5 support.

### Fixed

- Fixed file listing issue with AWS. See Remote Backup [Issue #54](https://github.com/timmyomahony/craft-remote-backup/issues/54) and Remote Core [PR #24](https://github.com/timmyomahony/craft-remote-core/pull/24)
- Cleaned up logging. See Remote Backup [Issue #59](https://github.com/timmyomahony/craft-remote-backup/issues/59) and Remote Core [PR #25](https://github.com/timmyomahony/craft-remote-core/pull/25)

## 4.1.4 - 2023-12-07

### Added
Expand Down
6 changes: 3 additions & 3 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,12 +21,12 @@
}
],
"require": {
"craftcms/cms": "^4.0.0",
"craftcms/cms": "^5.0.0",
"php": "^8.0.2",
"weareferal/remote-core": "4.1.2"
"weareferal/remote-core": "5.0.0"
},
"require-dev": {
"phpstan/phpstan": "1.8.x-dev",
"phpstan/phpstan": "1.12.x-dev",
"craftcms/phpstan": "dev-main",
"craftcms/rector": "dev-main"
},
Expand Down
2 changes: 1 addition & 1 deletion src/RemoteSync.php
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,7 @@ public function registerUtilties()
if ($this->getSettings()->enabled) {
Event::on(
Utilities::class,
Utilities::EVENT_REGISTER_UTILITY_TYPES,
Utilities::EVENT_REGISTER_UTILITIES,
function (RegisterComponentTypesEvent $event) {
$event->types[] = RemoteSyncUtility::class;
}
Expand Down
2 changes: 1 addition & 1 deletion src/templates/utilities/remote-sync.html
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
{% else %}
{% if not isAuthenticated %}
<div class="field">
<p class="warning"><strong>{{ 'You need to authenticate with your provider. Please visit the plugin settings page.'|t('remote-sync') }}</strong></p>
<p class="warning">{{ 'You need to authenticate with your provider. Please visit the plugin settings page.'|t('remote-sync') }}</p>
</div>
{% else %}
{% if queueActive %}
Expand Down
2 changes: 1 addition & 1 deletion src/utilities/RemoteSyncUtility.php
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ public static function id(): string
return 'remote-sync';
}

public static function iconPath(): string|null
public static function icon(): string|null
{
return RemoteSync::getInstance()->getBasePath() . DIRECTORY_SEPARATOR . 'utility-icon.svg';
}
Expand Down

0 comments on commit d5e78c6

Please sign in to comment.