From c3de7b4562e99439d007be8eb8951efdd222c0eb Mon Sep 17 00:00:00 2001 From: Bas de Nooijer Date: Sat, 19 Dec 2015 08:21:05 +0100 Subject: [PATCH 1/2] Fix BC break in 3.5.0 release --- library/Solarium/Core/Plugin/Plugin.php | 44 +++++++++++++++++ library/Solarium/Core/Query/Query.php | 48 +++++++++++++++++++ .../Solarium/Core/Query/RequestBuilder.php | 48 +++++++++++++++++++ .../Solarium/Core/Query/ResponseParser.php | 48 +++++++++++++++++++ .../QueryType/Analysis/Query/Query.php | 48 +++++++++++++++++++ 5 files changed, 236 insertions(+) create mode 100644 library/Solarium/Core/Plugin/Plugin.php create mode 100644 library/Solarium/Core/Query/Query.php create mode 100644 library/Solarium/Core/Query/RequestBuilder.php create mode 100644 library/Solarium/Core/Query/ResponseParser.php create mode 100644 library/Solarium/QueryType/Analysis/Query/Query.php diff --git a/library/Solarium/Core/Plugin/Plugin.php b/library/Solarium/Core/Plugin/Plugin.php new file mode 100644 index 000000000..a1c18d0a8 --- /dev/null +++ b/library/Solarium/Core/Plugin/Plugin.php @@ -0,0 +1,44 @@ + + * @license http://github.com/basdenooijer/solarium/raw/master/COPYING + * + * @link http://www.solarium-project.org/ + */ + +namespace Solarium\Core\Plugin; + +/** + * This class is for backwards compatibility, will be removed in 4.x releases + */ +abstract class Plugin extends AbstractPlugin +{ +} diff --git a/library/Solarium/Core/Query/Query.php b/library/Solarium/Core/Query/Query.php new file mode 100644 index 000000000..5d01db771 --- /dev/null +++ b/library/Solarium/Core/Query/Query.php @@ -0,0 +1,48 @@ + + * @license http://github.com/basdenooijer/solarium/raw/master/COPYING + * + * @link http://www.solarium-project.org/ + */ + +/** + * @namespace + */ + +namespace Solarium\Core\Query; + +/** + * This class is for backwards compatibility, will be removed in 4.x releases + */ +abstract class Query extends AbstractQuery +{ +} diff --git a/library/Solarium/Core/Query/RequestBuilder.php b/library/Solarium/Core/Query/RequestBuilder.php new file mode 100644 index 000000000..8c21a48fd --- /dev/null +++ b/library/Solarium/Core/Query/RequestBuilder.php @@ -0,0 +1,48 @@ + + * @license http://github.com/basdenooijer/solarium/raw/master/COPYING + * + * @link http://www.solarium-project.org/ + */ + +/** + * @namespace + */ + +namespace Solarium\Core\Query; + +/** + * This class is for backwards compatibility, will be removed in 4.x releases + */ +abstract class RequestBuilder extends AbstractRequestBuilder +{ +} diff --git a/library/Solarium/Core/Query/ResponseParser.php b/library/Solarium/Core/Query/ResponseParser.php new file mode 100644 index 000000000..9948248cc --- /dev/null +++ b/library/Solarium/Core/Query/ResponseParser.php @@ -0,0 +1,48 @@ + + * @license http://github.com/basdenooijer/solarium/raw/master/COPYING + * + * @link http://www.solarium-project.org/ + */ + +/** + * @namespace + */ + +namespace Solarium\Core\Query; + +/** + * This class is for backwards compatibility, will be removed in 4.x releases + */ +abstract class ResponseParser extends AbstractResponseParser +{ +} diff --git a/library/Solarium/QueryType/Analysis/Query/Query.php b/library/Solarium/QueryType/Analysis/Query/Query.php new file mode 100644 index 000000000..622489285 --- /dev/null +++ b/library/Solarium/QueryType/Analysis/Query/Query.php @@ -0,0 +1,48 @@ + + * @license http://github.com/basdenooijer/solarium/raw/master/COPYING + * + * @link http://www.solarium-project.org/ + */ + +/** + * @namespace + */ + +namespace Solarium\QueryType\Analysis\Query; + +/** + * This class is for backwards compatibility, will be removed in 4.x releases + */ +abstract class Query extends AbstractQuery +{ +} From 01b4985198fed47d649e0fd0a8c1a24399a4ab3c Mon Sep 17 00:00:00 2001 From: Bas de Nooijer Date: Sat, 19 Dec 2015 16:59:27 +0100 Subject: [PATCH 2/2] Mark classes as deprecated --- library/Solarium/Core/Plugin/Plugin.php | 4 +++- library/Solarium/Core/Query/Query.php | 4 +++- library/Solarium/Core/Query/RequestBuilder.php | 4 +++- library/Solarium/Core/Query/ResponseParser.php | 4 +++- library/Solarium/QueryType/Analysis/Query/Query.php | 4 +++- 5 files changed, 15 insertions(+), 5 deletions(-) diff --git a/library/Solarium/Core/Plugin/Plugin.php b/library/Solarium/Core/Plugin/Plugin.php index a1c18d0a8..3ff7e9cde 100644 --- a/library/Solarium/Core/Plugin/Plugin.php +++ b/library/Solarium/Core/Plugin/Plugin.php @@ -37,7 +37,9 @@ namespace Solarium\Core\Plugin; /** - * This class is for backwards compatibility, will be removed in 4.x releases + * This class is for backwards compatibility, will be removed in 4.x releases in favor of AbstractPlugin + * + * @deprecated */ abstract class Plugin extends AbstractPlugin { diff --git a/library/Solarium/Core/Query/Query.php b/library/Solarium/Core/Query/Query.php index 5d01db771..007086ef5 100644 --- a/library/Solarium/Core/Query/Query.php +++ b/library/Solarium/Core/Query/Query.php @@ -41,7 +41,9 @@ namespace Solarium\Core\Query; /** - * This class is for backwards compatibility, will be removed in 4.x releases + * This class is for backwards compatibility, will be removed in 4.x releases in favor of AbstractQuery + * + * @deprecated */ abstract class Query extends AbstractQuery { diff --git a/library/Solarium/Core/Query/RequestBuilder.php b/library/Solarium/Core/Query/RequestBuilder.php index 8c21a48fd..671be27dc 100644 --- a/library/Solarium/Core/Query/RequestBuilder.php +++ b/library/Solarium/Core/Query/RequestBuilder.php @@ -41,7 +41,9 @@ namespace Solarium\Core\Query; /** - * This class is for backwards compatibility, will be removed in 4.x releases + * This class is for backwards compatibility, will be removed in 4.x releases in favor of AbstractRequestBuilder + * + * @deprecated */ abstract class RequestBuilder extends AbstractRequestBuilder { diff --git a/library/Solarium/Core/Query/ResponseParser.php b/library/Solarium/Core/Query/ResponseParser.php index 9948248cc..2ee30612b 100644 --- a/library/Solarium/Core/Query/ResponseParser.php +++ b/library/Solarium/Core/Query/ResponseParser.php @@ -41,7 +41,9 @@ namespace Solarium\Core\Query; /** - * This class is for backwards compatibility, will be removed in 4.x releases + * This class is for backwards compatibility, will be removed in 4.x releases in favor of AbstractResponseParser + * + * @deprecated */ abstract class ResponseParser extends AbstractResponseParser { diff --git a/library/Solarium/QueryType/Analysis/Query/Query.php b/library/Solarium/QueryType/Analysis/Query/Query.php index 622489285..2fe911562 100644 --- a/library/Solarium/QueryType/Analysis/Query/Query.php +++ b/library/Solarium/QueryType/Analysis/Query/Query.php @@ -41,7 +41,9 @@ namespace Solarium\QueryType\Analysis\Query; /** - * This class is for backwards compatibility, will be removed in 4.x releases + * This class is for backwards compatibility, will be removed in 4.x releases in favor of AbstractQuery + * + * @deprecated */ abstract class Query extends AbstractQuery {