From e12513bd28ed3a786d0eb1b86fb6ce90f3b85b52 Mon Sep 17 00:00:00 2001 From: Mark Anderson Date: Wed, 10 Oct 2018 13:55:23 +0100 Subject: [PATCH] change support for ss4 --- _config/googlesitemaps.yml | 2 +- src/.upgrade.yml | 5 +++++ {code => src}/GoogleShoppingFeed.php | 13 ++++++++----- .../controllers/GoogleShoppingFeedController.php | 11 +++++++++++ .../extensions/GoogleShoppingFeedExtension.php | 16 ++++++++++++++++ {code => src}/model/GoogleProductCategory.php | 6 ++++++ 6 files changed, 47 insertions(+), 6 deletions(-) create mode 100644 src/.upgrade.yml rename {code => src}/GoogleShoppingFeed.php (96%) rename {code => src}/controllers/GoogleShoppingFeedController.php (81%) rename {code => src}/extensions/GoogleShoppingFeedExtension.php (93%) rename {code => src}/model/GoogleProductCategory.php (93%) diff --git a/_config/googlesitemaps.yml b/_config/googlesitemaps.yml index 01531a4..a07ae51 100644 --- a/_config/googlesitemaps.yml +++ b/_config/googlesitemaps.yml @@ -1,7 +1,7 @@ --- Name: googleshoppingfeed --- -GoogleShoppingFeed: +ilateral\SilverStripe\GoogleShoppingFeed\GoogleShoppingFeed: enabled: true google_notification_enabled: false use_show_in_search: true diff --git a/src/.upgrade.yml b/src/.upgrade.yml new file mode 100644 index 0000000..8073054 --- /dev/null +++ b/src/.upgrade.yml @@ -0,0 +1,5 @@ +mappings: + GoogleShoppingFeedExtension: ilateral\SilverStripe\GoogleShoppingFeed\extensions\GoogleShoppingFeedExtension + GoogleProductCategory: ilateral\SilverStripe\GoogleShoppingFeed\model\GoogleProductCategory + GoogleShoppingFeed: ilateral\SilverStripe\GoogleShoppingFeed\GoogleShoppingFeed + GoogleShoppingFeedController: ilateral\SilverStripe\GoogleShoppingFeed\controllers\GoogleShoppingFeedController diff --git a/code/GoogleShoppingFeed.php b/src/GoogleShoppingFeed.php similarity index 96% rename from code/GoogleShoppingFeed.php rename to src/GoogleShoppingFeed.php index 95415f2..842eea6 100644 --- a/code/GoogleShoppingFeed.php +++ b/src/GoogleShoppingFeed.php @@ -1,4 +1,12 @@