From db948b98ef88dcabb847e040163ccac042d878b7 Mon Sep 17 00:00:00 2001 From: Farzam Tahmasebmirza Date: Thu, 27 Jun 2019 09:59:51 +0200 Subject: [PATCH] OXDEV-1287 Deprecate ClassProviderStorage and interface --- CHANGELOG.md | 7 ++++--- source/Core/Autoload/UnifiedNameSpaceClassMap.php | 4 ++-- source/Core/Contract/ClassProviderStorageInterface.php | 1 + source/Core/Routing/Module/ClassProviderStorage.php | 1 + 4 files changed, 8 insertions(+), 5 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 2e655317e2..109b381d5d 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -148,7 +148,8 @@ and this project adheres to [Semantic Versioning](http://semver.org/). - `\OxidEsales\EshopCommunity\Core\Module\ModuleCache` ModuleCache moved to Internal\Module package. - `\OxidEsales\EshopCommunity\Core\Module\ModuleExtensionsCleaner` The whole chain is updated during module activation and deactivation in the database. We do not need this functionality any more - `\OxidEsales\EshopCommunity\Core\Module\ModuleValidatorFactory` Module metadata validation moved to Internal\Module package - +- `\OxidEsales\EshopCommunity\Core\Routing\Module\ClassProviderStorage` Use service "OxidEsales\EshopCommunity\Internal\Common\Storage\YamlFileStorage". +- `\OxidEsales\EshopCommunity\Core\Contract\ClassProviderStorageInterface` Use service "OxidEsales\EshopCommunity\Internal\Common\Storage\ArrayStorageInterface". ## [6.3.4] - 2019-05-24 @@ -165,8 +166,8 @@ and this project adheres to [Semantic Versioning](http://semver.org/). - `OxidEsales\EshopCommunity\source\Module\Core\Module` - `OxidEsales\EshopCommunity\source\Module\Core\ModuleList` - `OxidEsales\EshopCommunity\Core\Contract\IModuleValidator ` - - `OxidEsales\EshopCommunity\Core\Module\ModuleMetadataValidator` - + - `OxidEsales\EshopCommunity\Core\Module\ModuleMetadataValidator` + ## [6.3.3] - 2019-04-16 ### Fixed diff --git a/source/Core/Autoload/UnifiedNameSpaceClassMap.php b/source/Core/Autoload/UnifiedNameSpaceClassMap.php index 6abe81cf5d..82c7240ab3 100644 --- a/source/Core/Autoload/UnifiedNameSpaceClassMap.php +++ b/source/Core/Autoload/UnifiedNameSpaceClassMap.php @@ -2425,13 +2425,13 @@ 'editionClassName' => \OxidEsales\EshopCommunity\Core\Contract\ClassProviderStorageInterface::class, 'isAbstract' => false, 'isInterface' => true, - 'isDeprecated' => false + 'isDeprecated' => true ], 'OxidEsales\Eshop\Core\Contract\ControllerMapProviderInterface' => [ 'editionClassName' => \OxidEsales\EshopCommunity\Core\Contract\ControllerMapProviderInterface::class, 'isAbstract' => false, 'isInterface' => true, - 'isDeprecated' => false + 'isDeprecated' => true ], 'OxidEsales\Eshop\Core\Contract\IConfigurable' => [ 'editionClassName' => \OxidEsales\EshopCommunity\Core\Contract\IConfigurable::class, diff --git a/source/Core/Contract/ClassProviderStorageInterface.php b/source/Core/Contract/ClassProviderStorageInterface.php index 6ca16eea74..92b3d72817 100644 --- a/source/Core/Contract/ClassProviderStorageInterface.php +++ b/source/Core/Contract/ClassProviderStorageInterface.php @@ -8,6 +8,7 @@ /** * Interface for Handling the storing/loading of the metadata controller field of the modules. * + * @deprecated since v6.4.0 (2019-03-22); Use service 'OxidEsales\EshopCommunity\Internal\Common\Storage\ArrayStorageInterface'. * @internal Do not make a module extension for this class. * @see https://wiki.oxidforge.org/Tutorials/Core_OXID_eShop_classes:_must_not_be_extended */ diff --git a/source/Core/Routing/Module/ClassProviderStorage.php b/source/Core/Routing/Module/ClassProviderStorage.php index eb1f08c108..0f146165aa 100644 --- a/source/Core/Routing/Module/ClassProviderStorage.php +++ b/source/Core/Routing/Module/ClassProviderStorage.php @@ -11,6 +11,7 @@ /** * Handler class for the storing of the metadata controller field of the modules. * + * @deprecated since v6.4.0 (2019-03-22); Use service 'OxidEsales\EshopCommunity\Internal\Common\Storage\YamlFileStorage'. * @internal Do not make a module extension for this class. * @see http://wiki.oxidforge.org/Tutorials/Core_OXID_eShop_classes:_must_not_be_extended */