From 9af89f8ea299eab890533b3ef5ea553e27406490 Mon Sep 17 00:00:00 2001 From: Matthew Batchelder Date: Sat, 24 Jun 2023 09:38:31 -0400 Subject: [PATCH] Update to use the new Service_Provider contract in common. --- readme.txt | 6 +++++- src/Tribe/Service_Provider.php | 4 +++- src/Tribe/Setup.php | 6 +++--- tribe-ext-hubspot.php | 2 +- 4 files changed, 12 insertions(+), 6 deletions(-) diff --git a/readme.txt b/readme.txt index 0e26f67..81bb6e4 100644 --- a/readme.txt +++ b/readme.txt @@ -3,7 +3,7 @@ Contributors: theeventscalendar, brianjessee Donate link: https://evnt.is/29 Tags: events, calendar Requires at least: 5.8.6 -Stable tag: 1.0.3 +Stable tag: 1.0.4 Tested up to: 6.1.1 Requires PHP: 7.3 License: GPLv2 or later @@ -37,6 +37,10 @@ We're always interested in your feedback and our [Help Desk](https://support.the == Changelog == += [1.0.4] 2023-06-24 = + +* Fix - Update to use the new Service_Provider contract in common. + = [1.0.3] 2023-01-04 = * Fix - Modify the redirect url for app authorization to support the latest standards from Hubspot. [EXT-283] diff --git a/src/Tribe/Service_Provider.php b/src/Tribe/Service_Provider.php index 6b3232c..8790fc8 100644 --- a/src/Tribe/Service_Provider.php +++ b/src/Tribe/Service_Provider.php @@ -2,6 +2,8 @@ namespace Tribe\HubSpot; +use TEC\Common\Contracts\Service_Provider; + /** * Class Tribe\HubSpot\Service_Provider * @@ -13,7 +15,7 @@ * @since 1.0 * */ -class Service_Provider extends \tad_DI52_ServiceProvider { +class Service_Provider extends Service_Provider { /** * Binds and sets up implementations. diff --git a/src/Tribe/Setup.php b/src/Tribe/Setup.php index ac7e855..ebb77d7 100644 --- a/src/Tribe/Setup.php +++ b/src/Tribe/Setup.php @@ -28,9 +28,9 @@ class Setup extends Tribe__Extension { */ public function construct() { - $this->add_required_plugin( 'Tribe__Tickets__Main', '5.4' ); - $this->add_required_plugin( 'Tribe__Tickets_Plus__Main', '5.5' ); - $this->add_required_plugin( 'Tribe__Events__Main', '5.15' ); + $this->add_required_plugin( 'Tribe__Tickets__Main', '5.6.1.1' ); + $this->add_required_plugin( 'Tribe__Tickets_Plus__Main', '5.7.1' ); + $this->add_required_plugin( 'Tribe__Events__Main', '6.1.2.2' ); // Connect into Queue Filter, if done later it does not add the handler. add_action( 'tribe_process_queues', [ $this, 'queue_handlers' ] ); diff --git a/tribe-ext-hubspot.php b/tribe-ext-hubspot.php index 32c33ec..581b769 100644 --- a/tribe-ext-hubspot.php +++ b/tribe-ext-hubspot.php @@ -4,7 +4,7 @@ * Plugin URI: http://m.tri.be/hubspot * GitHub Plugin URI: https://github.com/mt-support/tribe-ext-hubspot * Description: Event Tickets and Event Tickets Plus HubSpot Integration - * Version: 1.0.3 + * Version: 1.0.4 * Extension Class: Tribe\HubSpot\Setup * Author: The Events Calendar * Author URI: https://evnt.is/1aor