From 9b560f8f63d2857ccbced7abcd489ffd1c33fdef Mon Sep 17 00:00:00 2001 From: psdigital Date: Tue, 8 Sep 2020 09:35:55 +1200 Subject: [PATCH] Update namespacing to plasticstudio --- README.md | 2 +- _config/config.yml | 4 ++-- src/SearchControllerExtension.php | 2 +- src/SearchPage.php | 2 +- src/SearchPageController.php | 8 ++++---- 5 files changed, 9 insertions(+), 9 deletions(-) diff --git a/README.md b/README.md index e506df9..c17adf1 100755 --- a/README.md +++ b/README.md @@ -44,7 +44,7 @@ Name: search Before: - '#site' --- -Jaedb\Search\SearchPageController: +PlasticStudio\Search\SearchPageController: types: docs: Label: 'Documents' diff --git a/_config/config.yml b/_config/config.yml index e3ed9d8..32fd984 100755 --- a/_config/config.yml +++ b/_config/config.yml @@ -5,8 +5,8 @@ Before: --- SilverStripe\Control\Controller: extensions: - - Jaedb\Search\SearchControllerExtension -Jaedb\Search\SearchPageController: + - PlasticStudio\Search\SearchControllerExtension +PlasticStudio\Search\SearchPageController: # types: # docs: # Label: 'Documents' diff --git a/src/SearchControllerExtension.php b/src/SearchControllerExtension.php index 31c5f3f..4e87711 100755 --- a/src/SearchControllerExtension.php +++ b/src/SearchControllerExtension.php @@ -1,6 +1,6 @@ get('Jaedb\Search\SearchPageController', 'types'); + $types = Config::inst()->get('PlasticStudio\Search\SearchPageController', 'types'); $array = []; if ($types){ @@ -73,7 +73,7 @@ public static function get_types_available(){ } public static function get_filters_available(){ - $filters = Config::inst()->get('Jaedb\Search\SearchPageController', 'filters'); + $filters = Config::inst()->get('PlasticStudio\Search\SearchPageController', 'filters'); $array = []; if ($filters){ @@ -87,7 +87,7 @@ public static function get_filters_available(){ } public static function get_sorts_available(){ - $sorts = Config::inst()->get('Jaedb\Search\SearchPageController', 'sorts'); + $sorts = Config::inst()->get('PlasticStudio\Search\SearchPageController', 'sorts'); $array = []; if ($sorts){