From e80cd1169080405dee5a0255955863639287dd65 Mon Sep 17 00:00:00 2001 From: Anton Zubariev Date: Wed, 16 Oct 2019 15:08:21 +0300 Subject: [PATCH 1/3] [CMS-2969] Fix module naming and added cs-fix script --- CHANGELOG.md | 2 +- codeception.yml | 4 +- composer.json | 7 +- .../CoreMedia/Api/ApiClientInterface.php | 23 --- .../CoreMedia/CoreMediaClientInterface.php | 30 ---- .../Api/ApiClient.php | 32 ++-- .../Coremedia/Api/ApiClientInterface.php | 23 +++ .../Api/Builder/RequestBuilder.php | 2 +- .../Api/Builder/RequestBuilderInterface.php | 2 +- .../Api/Builder/UrlBuilder.php | 38 ++--- .../Api/Builder/UrlBuilderInterface.php | 8 +- .../Api/Configuration/UrlConfiguration.php | 24 +-- .../UrlConfigurationInterface.php | 4 +- .../Exception/UrlConfigurationException.php | 2 +- .../Api/Executor/RequestExecutor.php | 26 +-- .../Api/Executor/RequestExecutorInterface.php | 8 +- .../CoremediaClient.php} | 18 +- .../Coremedia/CoremediaClientInterface.php | 30 ++++ .../CoremediaConfig.php} | 16 +- .../CoremediaDependencyProvider.php} | 8 +- .../CoremediaFactory.php} | 44 ++--- .../Guzzle/CoremediaToGuzzleBridge.php} | 4 +- .../Guzzle/CoremediaToGuzzleInterface.php} | 4 +- .../CoremediaConfig.php} | 6 +- .../CoremediaConstants.php} | 8 +- .../Transfer/coremedia.transfer.xml} | 16 +- .../ApiResponse/ApiResponsePreparator.php | 16 +- .../ApiResponsePreparatorInterface.php | 12 +- .../IncorrectPlaceholderDataExecutor.php | 18 +- ...orrectPlaceholderDataExecutorInterface.php | 8 +- .../ApiResponse/Parser/PlaceholderParser.php | 30 ++-- .../Parser/PlaceholderParserInterface.php | 4 +- .../PlaceholderPostProcessor.php | 40 ++--- .../PlaceholderPostProcessorInterface.php | 12 +- ...egoryUrlPlaceholderReplacementRenderer.php | 20 +-- ...mPageUrlPlaceholderReplacementRenderer.php | 12 +- ...MetadataPlaceholderReplacementRenderer.php | 16 +- ...laceholderReplacementRendererInterface.php | 12 +- ...uctPricePlaceholderReplacementRenderer.php | 50 +++--- ...oductUrlPlaceholderReplacementRenderer.php | 28 ++-- .../Metadata/DescriptionMetadataReplacer.php | 18 +- .../Metadata/KeywordsMetadataReplacer.php | 18 +- .../Metadata/MetadataReplacerInterface.php | 8 +- .../Metadata/PageNameMetadataReplacer.php | 18 +- .../Metadata/TitleMetadataReplacer.php | 18 +- .../Replacer/PlaceholderReplacer.php | 8 +- .../Replacer/PlaceholderReplacerInterface.php | 8 +- .../Resolver/ApiResponseResolverInterface.php | 12 +- .../Resolver/PlaceholderResolver.php | 30 ++-- ...oreMediaConfig.php => CoremediaConfig.php} | 10 +- ...er.php => CoremediaDependencyProvider.php} | 30 ++-- ...eMediaFactory.php => CoremediaFactory.php} | 158 +++++++++--------- ...oremediaToCategoryStorageClientBridge.php} | 4 +- ...mediaToCategoryStorageClientInterface.php} | 4 +- ...e.php => CoremediaToMoneyClientBridge.php} | 4 +- ...hp => CoremediaToMoneyClientInterface.php} | 4 +- ...> CoremediaToPriceProductClientBridge.php} | 4 +- ...oremediaToPriceProductClientInterface.php} | 4 +- ...ediaToPriceProductStorageClientBridge.php} | 4 +- ...aToPriceProductStorageClientInterface.php} | 4 +- ...CoremediaToProductStorageClientBridge.php} | 4 +- ...emediaToProductStorageClientInterface.php} | 4 +- ... CoremediaToUtilEncodingServiceBridge.php} | 4 +- ...remediaToUtilEncodingServiceInterface.php} | 4 +- .../InvalidPlaceholderDataException.php | 2 +- .../MissingRequestParameterException.php | 2 +- .../Formatter/ProductPriceFormatter.php | 10 +- .../ProductPriceFormatterInterface.php | 2 +- .../CoreMedia/Mapper/ApiContextMapper.php | 20 +-- .../Mapper/ApiContextMapperInterface.php | 18 +- ....php => CoremediaCmsSlotContentPlugin.php} | 6 +- .../CmsSlotContent/CmsSlotContentReader.php | 26 +-- .../CmsSlotContentReaderInterface.php | 2 +- .../Schema/spy_product_storage.schema.xml | 0 .../_support/Helper/CoreMediaHelper.php | 25 --- .../Api/Configuration/UrlBuilderTest.php | 104 ++++++------ .../_support/CoremediaClientTester.php} | 6 +- .../_support/Helper/CoremediaHelper.php | 25 +++ .../{CoreMedia => Coremedia}/codeception.yml | 6 +- .../ApiResponse/ApiResponsePreparatorTest.php | 142 ++++++++-------- .../_support/CoremediaYvesTester.php} | 6 +- .../_support/Helper/CoremediaHelper.php} | 24 +-- .../{CoreMedia => Coremedia}/codeception.yml | 6 +- tooling.yml | 2 +- 84 files changed, 743 insertions(+), 742 deletions(-) delete mode 100644 src/SprykerEco/Client/CoreMedia/Api/ApiClientInterface.php delete mode 100644 src/SprykerEco/Client/CoreMedia/CoreMediaClientInterface.php rename src/SprykerEco/Client/{CoreMedia => Coremedia}/Api/ApiClient.php (57%) create mode 100644 src/SprykerEco/Client/Coremedia/Api/ApiClientInterface.php rename src/SprykerEco/Client/{CoreMedia => Coremedia}/Api/Builder/RequestBuilder.php (93%) rename src/SprykerEco/Client/{CoreMedia => Coremedia}/Api/Builder/RequestBuilderInterface.php (91%) rename src/SprykerEco/Client/{CoreMedia => Coremedia}/Api/Builder/UrlBuilder.php (66%) rename src/SprykerEco/Client/{CoreMedia => Coremedia}/Api/Builder/UrlBuilderInterface.php (61%) rename src/SprykerEco/Client/{CoreMedia => Coremedia}/Api/Configuration/UrlConfiguration.php (76%) rename src/SprykerEco/Client/{CoreMedia => Coremedia}/Api/Configuration/UrlConfigurationInterface.php (86%) rename src/SprykerEco/Client/{CoreMedia => Coremedia}/Api/Exception/UrlConfigurationException.php (82%) rename src/SprykerEco/Client/{CoreMedia => Coremedia}/Api/Executor/RequestExecutor.php (57%) rename src/SprykerEco/Client/{CoreMedia => Coremedia}/Api/Executor/RequestExecutorInterface.php (61%) rename src/SprykerEco/Client/{CoreMedia/CoreMediaClient.php => Coremedia/CoremediaClient.php} (52%) create mode 100644 src/SprykerEco/Client/Coremedia/CoremediaClientInterface.php rename src/SprykerEco/Client/{CoreMedia/CoreMediaConfig.php => Coremedia/CoremediaConfig.php} (70%) rename src/SprykerEco/Client/{CoreMedia/CoreMediaDependencyProvider.php => Coremedia/CoremediaDependencyProvider.php} (83%) rename src/SprykerEco/Client/{CoreMedia/CoreMediaFactory.php => Coremedia/CoremediaFactory.php} (50%) rename src/SprykerEco/Client/{CoreMedia/Dependency/Guzzle/CoreMediaToGuzzleBridge.php => Coremedia/Dependency/Guzzle/CoremediaToGuzzleBridge.php} (87%) rename src/SprykerEco/Client/{CoreMedia/Dependency/Guzzle/CoreMediaToGuzzleInterface.php => Coremedia/Dependency/Guzzle/CoremediaToGuzzleInterface.php} (84%) rename src/SprykerEco/Shared/{CoreMedia/CoreMediaConfig.php => Coremedia/CoremediaConfig.php} (72%) rename src/SprykerEco/Shared/{CoreMedia/CoreMediaConstants.php => Coremedia/CoremediaConstants.php} (60%) rename src/SprykerEco/Shared/{CoreMedia/Transfer/core_media.transfer.xml => Coremedia/Transfer/coremedia.transfer.xml} (83%) rename src/SprykerEco/Yves/CoreMedia/{CoreMediaConfig.php => CoremediaConfig.php} (73%) rename src/SprykerEco/Yves/CoreMedia/{CoreMediaDependencyProvider.php => CoremediaDependencyProvider.php} (84%) rename src/SprykerEco/Yves/CoreMedia/{CoreMediaFactory.php => CoremediaFactory.php} (58%) rename src/SprykerEco/Yves/CoreMedia/Dependency/Client/{CoreMediaToCategoryStorageClientBridge.php => CoremediaToCategoryStorageClientBridge.php} (88%) rename src/SprykerEco/Yves/CoreMedia/Dependency/Client/{CoreMediaToCategoryStorageClientInterface.php => CoremediaToCategoryStorageClientInterface.php} (79%) rename src/SprykerEco/Yves/CoreMedia/Dependency/Client/{CoreMediaToMoneyClientBridge.php => CoremediaToMoneyClientBridge.php} (87%) rename src/SprykerEco/Yves/CoreMedia/Dependency/Client/{CoreMediaToMoneyClientInterface.php => CoremediaToMoneyClientInterface.php} (81%) rename src/SprykerEco/Yves/CoreMedia/Dependency/Client/{CoreMediaToPriceProductClientBridge.php => CoremediaToPriceProductClientBridge.php} (89%) rename src/SprykerEco/Yves/CoreMedia/Dependency/Client/{CoreMediaToPriceProductClientInterface.php => CoremediaToPriceProductClientInterface.php} (83%) rename src/SprykerEco/Yves/CoreMedia/Dependency/Client/{CoreMediaToPriceProductStorageClientBridge.php => CoremediaToPriceProductStorageClientBridge.php} (89%) rename src/SprykerEco/Yves/CoreMedia/Dependency/Client/{CoreMediaToPriceProductStorageClientInterface.php => CoremediaToPriceProductStorageClientInterface.php} (86%) rename src/SprykerEco/Yves/CoreMedia/Dependency/Client/{CoreMediaToProductStorageClientBridge.php => CoremediaToProductStorageClientBridge.php} (92%) rename src/SprykerEco/Yves/CoreMedia/Dependency/Client/{CoreMediaToProductStorageClientInterface.php => CoremediaToProductStorageClientInterface.php} (87%) rename src/SprykerEco/Yves/CoreMedia/Dependency/Service/{CoreMediaToUtilEncodingServiceBridge.php => CoremediaToUtilEncodingServiceBridge.php} (88%) rename src/SprykerEco/Yves/CoreMedia/Dependency/Service/{CoreMediaToUtilEncodingServiceInterface.php => CoremediaToUtilEncodingServiceInterface.php} (81%) rename src/SprykerEco/Yves/CoreMedia/Plugin/ShopCmsSlot/{CoreMediaCmsSlotContentPlugin.php => CoremediaCmsSlotContentPlugin.php} (84%) rename src/SprykerEco/Zed/{CoreMedia => Coremedia}/Persistence/Propel/Schema/spy_product_storage.schema.xml (100%) delete mode 100644 tests/SprykerEcoTest/Client/CoreMedia/_support/Helper/CoreMediaHelper.php rename tests/SprykerEcoTest/Client/{CoreMedia => Coremedia}/Api/Configuration/UrlBuilderTest.php (51%) rename tests/SprykerEcoTest/Client/{CoreMedia/_support/CoreMediaClientTester.php => Coremedia/_support/CoremediaClientTester.php} (82%) create mode 100644 tests/SprykerEcoTest/Client/Coremedia/_support/Helper/CoremediaHelper.php rename tests/SprykerEcoTest/Client/{CoreMedia => Coremedia}/codeception.yml (78%) rename tests/SprykerEcoTest/Yves/{CoreMedia => Coremedia}/ApiResponse/ApiResponsePreparatorTest.php (78%) rename tests/SprykerEcoTest/Yves/{CoreMedia/_support/CoreMediaYvesTester.php => Coremedia/_support/CoremediaYvesTester.php} (84%) rename tests/SprykerEcoTest/Yves/{CoreMedia/_support/Helper/CoreMediaHelper.php => Coremedia/_support/Helper/CoremediaHelper.php} (74%) rename tests/SprykerEcoTest/Yves/{CoreMedia => Coremedia}/codeception.yml (78%) diff --git a/CHANGELOG.md b/CHANGELOG.md index adde859..6ff0c90 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,3 @@ -# CoreMedia Changelog +# Coremedia Changelog [Release Changelog](https://github.com/spryker-eco/coremedia/releases) diff --git a/codeception.yml b/codeception.yml index a8d1a68..f97c9da 100644 --- a/codeception.yml +++ b/codeception.yml @@ -2,8 +2,8 @@ namespace: SprykerEcoTest actor: Tester include: - - tests/SprykerEcoTest/Client/CoreMedia - - tests/SprykerEcoTest/Yves/CoreMedia + - tests/SprykerEcoTest/Client/Coremedia + - tests/SprykerEcoTest/Yves/Coremedia paths: tests: tests diff --git a/composer.json b/composer.json index ea9dfc5..d477a90 100644 --- a/composer.json +++ b/composer.json @@ -1,7 +1,7 @@ { "name": "spryker-eco/coremedia", "type": "library", - "description": "CoreMedia module", + "description": "Coremedia module", "license": "proprietary", "require": { "php": ">=7.1", @@ -24,7 +24,7 @@ "autoload": { "psr-4": { "SprykerEco\\": "src/SprykerEco/", - "SprykerEcoTest\\Client\\CoreMedia\\Helper\\": "tests/SprykerEcoTest/Client/CoreMedia/_support/Helper/" + "SprykerEcoTest\\Client\\Coremedia\\Helper\\": "tests/SprykerEcoTest/Client/Coremedia/_support/Helper/" } }, "autoload-dev": { @@ -40,7 +40,8 @@ } }, "scripts": { - "cs-check": "phpcs --standard=vendor/spryker/code-sniffer/Spryker/ruleset.xml -p src/ tests/" + "cs-check": "phpcs --standard=vendor/spryker/code-sniffer/Spryker/ruleset.xml -p src/ tests/", + "cs-fix": "phpcbf --standard=vendor/spryker/code-sniffer/Spryker/ruleset.xml -p src/ tests/" }, "config": { "sort-packages": true diff --git a/src/SprykerEco/Client/CoreMedia/Api/ApiClientInterface.php b/src/SprykerEco/Client/CoreMedia/Api/ApiClientInterface.php deleted file mode 100644 index 7eb3ce5..0000000 --- a/src/SprykerEco/Client/CoreMedia/Api/ApiClientInterface.php +++ /dev/null @@ -1,23 +0,0 @@ -requestBuilder->buildRequest( static::REQUEST_GET_METHOD, $this->urlBuilder->buildDocumentFragmentApiUrl($coreMediaFragmentRequestTransfer) diff --git a/src/SprykerEco/Client/Coremedia/Api/ApiClientInterface.php b/src/SprykerEco/Client/Coremedia/Api/ApiClientInterface.php new file mode 100644 index 0000000..4ad380e --- /dev/null +++ b/src/SprykerEco/Client/Coremedia/Api/ApiClientInterface.php @@ -0,0 +1,23 @@ +transformCoreMediaFragmentRequestTransferPropertiesToQueryString( + $query = $this->transformCoremediaFragmentRequestTransferPropertiesToQueryString( $coreMediaFragmentRequestTransfer ); - return $this->urlConfiguration->getCoreMediaHost() . $this->urlConfiguration->getBasePath() . $query; + return $this->urlConfiguration->getCoremediaHost() . $this->urlConfiguration->getBasePath() . $query; } /** - * @param \Generated\Shared\Transfer\CoreMediaFragmentRequestTransfer $coreMediaFragmentRequestTransfer + * @param \Generated\Shared\Transfer\CoremediaFragmentRequestTransfer $coreMediaFragmentRequestTransfer * * @return string */ - protected function transformCoreMediaFragmentRequestTransferPropertiesToQueryString( - CoreMediaFragmentRequestTransfer $coreMediaFragmentRequestTransfer + protected function transformCoremediaFragmentRequestTransferPropertiesToQueryString( + CoremediaFragmentRequestTransfer $coreMediaFragmentRequestTransfer ): string { $store = $this->urlConfiguration->getStore($coreMediaFragmentRequestTransfer->getStore()); $locale = $this->urlConfiguration->getLocale($store, $coreMediaFragmentRequestTransfer->getLocale()); @@ -65,7 +65,7 @@ protected function transformCoreMediaFragmentRequestTransferPropertiesToQueryStr foreach ($coreMediaFragmentRequestTransferArray as $key => $value) { if (in_array($key, static::NAME_QUERY_PARAMS, true)) { - $queryParams[] = $this->serializeCoreMediaFragmentRequestTransferProperty($key, $value); + $queryParams[] = $this->serializeCoremediaFragmentRequestTransferProperty($key, $value); } } @@ -83,7 +83,7 @@ protected function transformCoreMediaFragmentRequestTransferPropertiesToQueryStr * * @return string */ - protected function serializeCoreMediaFragmentRequestTransferProperty(string $key, $value): string + protected function serializeCoremediaFragmentRequestTransferProperty(string $key, $value): string { if (is_bool($value)) { return sprintf(static::HTTP_QUERY_KEY_VALUE_PATTERN, $key, var_export($value, true)); diff --git a/src/SprykerEco/Client/CoreMedia/Api/Builder/UrlBuilderInterface.php b/src/SprykerEco/Client/Coremedia/Api/Builder/UrlBuilderInterface.php similarity index 61% rename from src/SprykerEco/Client/CoreMedia/Api/Builder/UrlBuilderInterface.php rename to src/SprykerEco/Client/Coremedia/Api/Builder/UrlBuilderInterface.php index e492fd0..b0c6911 100644 --- a/src/SprykerEco/Client/CoreMedia/Api/Builder/UrlBuilderInterface.php +++ b/src/SprykerEco/Client/Coremedia/Api/Builder/UrlBuilderInterface.php @@ -5,18 +5,18 @@ * Use of this software requires acceptance of the Evaluation License Agreement. See LICENSE file. */ -namespace SprykerEco\Client\CoreMedia\Api\Builder; +namespace SprykerEco\Client\Coremedia\Api\Builder; -use Generated\Shared\Transfer\CoreMediaFragmentRequestTransfer; +use Generated\Shared\Transfer\CoremediaFragmentRequestTransfer; interface UrlBuilderInterface { /** - * @param \Generated\Shared\Transfer\CoreMediaFragmentRequestTransfer $coreMediaFragmentRequestTransfer + * @param \Generated\Shared\Transfer\CoremediaFragmentRequestTransfer $coreMediaFragmentRequestTransfer * * @return string */ public function buildDocumentFragmentApiUrl( - CoreMediaFragmentRequestTransfer $coreMediaFragmentRequestTransfer + CoremediaFragmentRequestTransfer $coreMediaFragmentRequestTransfer ): string; } diff --git a/src/SprykerEco/Client/CoreMedia/Api/Configuration/UrlConfiguration.php b/src/SprykerEco/Client/Coremedia/Api/Configuration/UrlConfiguration.php similarity index 76% rename from src/SprykerEco/Client/CoreMedia/Api/Configuration/UrlConfiguration.php rename to src/SprykerEco/Client/Coremedia/Api/Configuration/UrlConfiguration.php index 520fdc5..6d2744c 100644 --- a/src/SprykerEco/Client/CoreMedia/Api/Configuration/UrlConfiguration.php +++ b/src/SprykerEco/Client/Coremedia/Api/Configuration/UrlConfiguration.php @@ -5,37 +5,37 @@ * Use of this software requires acceptance of the Evaluation License Agreement. See LICENSE file. */ -namespace SprykerEco\Client\CoreMedia\Api\Configuration; +namespace SprykerEco\Client\Coremedia\Api\Configuration; -use SprykerEco\Client\CoreMedia\Api\Exception\UrlConfigurationException; -use SprykerEco\Client\CoreMedia\CoreMediaConfig; +use SprykerEco\Client\Coremedia\Api\Exception\UrlConfigurationException; +use SprykerEco\Client\Coremedia\CoremediaConfig; class UrlConfiguration implements UrlConfigurationInterface { /** - * @var \SprykerEco\Client\CoreMedia\CoreMediaConfig + * @var \SprykerEco\Client\Coremedia\CoremediaConfig */ protected $config; /** - * @param \SprykerEco\Client\CoreMedia\CoreMediaConfig $config + * @param \SprykerEco\Client\Coremedia\CoremediaConfig $config */ - public function __construct(CoreMediaConfig $config) + public function __construct(CoremediaConfig $config) { $this->config = $config; } /** - * @throws \SprykerEco\Client\CoreMedia\Api\Exception\UrlConfigurationException + * @throws \SprykerEco\Client\Coremedia\Api\Exception\UrlConfigurationException * * @return string */ - public function getCoreMediaHost(): string + public function getCoremediaHost(): string { - $coreMediaHost = $this->config->getCoreMediaHost(); + $coreMediaHost = $this->config->getCoremediaHost(); if (!$coreMediaHost) { - throw new UrlConfigurationException('Please specify the CoreMedia host in configuration.'); + throw new UrlConfigurationException('Please specify the Coremedia host in configuration.'); } return $coreMediaHost; @@ -52,7 +52,7 @@ public function getBasePath(): string /** * @param string $storeName * - * @throws \SprykerEco\Client\CoreMedia\Api\Exception\UrlConfigurationException + * @throws \SprykerEco\Client\Coremedia\Api\Exception\UrlConfigurationException * * @return string */ @@ -73,7 +73,7 @@ public function getStore(string $storeName): string * @param string $store * @param string $localeName * - * @throws \SprykerEco\Client\CoreMedia\Api\Exception\UrlConfigurationException + * @throws \SprykerEco\Client\Coremedia\Api\Exception\UrlConfigurationException * * @return string */ diff --git a/src/SprykerEco/Client/CoreMedia/Api/Configuration/UrlConfigurationInterface.php b/src/SprykerEco/Client/Coremedia/Api/Configuration/UrlConfigurationInterface.php similarity index 86% rename from src/SprykerEco/Client/CoreMedia/Api/Configuration/UrlConfigurationInterface.php rename to src/SprykerEco/Client/Coremedia/Api/Configuration/UrlConfigurationInterface.php index d77ebe5..37c99de 100644 --- a/src/SprykerEco/Client/CoreMedia/Api/Configuration/UrlConfigurationInterface.php +++ b/src/SprykerEco/Client/Coremedia/Api/Configuration/UrlConfigurationInterface.php @@ -5,14 +5,14 @@ * Use of this software requires acceptance of the Evaluation License Agreement. See LICENSE file. */ -namespace SprykerEco\Client\CoreMedia\Api\Configuration; +namespace SprykerEco\Client\Coremedia\Api\Configuration; interface UrlConfigurationInterface { /** * @return string */ - public function getCoreMediaHost(): string; + public function getCoremediaHost(): string; /** * @return string diff --git a/src/SprykerEco/Client/CoreMedia/Api/Exception/UrlConfigurationException.php b/src/SprykerEco/Client/Coremedia/Api/Exception/UrlConfigurationException.php similarity index 82% rename from src/SprykerEco/Client/CoreMedia/Api/Exception/UrlConfigurationException.php rename to src/SprykerEco/Client/Coremedia/Api/Exception/UrlConfigurationException.php index 3de5360..81bc92e 100644 --- a/src/SprykerEco/Client/CoreMedia/Api/Exception/UrlConfigurationException.php +++ b/src/SprykerEco/Client/Coremedia/Api/Exception/UrlConfigurationException.php @@ -5,7 +5,7 @@ * Use of this software requires acceptance of the Evaluation License Agreement. See LICENSE file. */ -namespace SprykerEco\Client\CoreMedia\Api\Exception; +namespace SprykerEco\Client\Coremedia\Api\Exception; use Exception; diff --git a/src/SprykerEco/Client/CoreMedia/Api/Executor/RequestExecutor.php b/src/SprykerEco/Client/Coremedia/Api/Executor/RequestExecutor.php similarity index 57% rename from src/SprykerEco/Client/CoreMedia/Api/Executor/RequestExecutor.php rename to src/SprykerEco/Client/Coremedia/Api/Executor/RequestExecutor.php index 582628b..e51f40d 100644 --- a/src/SprykerEco/Client/CoreMedia/Api/Executor/RequestExecutor.php +++ b/src/SprykerEco/Client/Coremedia/Api/Executor/RequestExecutor.php @@ -5,32 +5,32 @@ * Use of this software requires acceptance of the Evaluation License Agreement. See LICENSE file. */ -namespace SprykerEco\Client\CoreMedia\Api\Executor; +namespace SprykerEco\Client\Coremedia\Api\Executor; -use Generated\Shared\Transfer\CoreMediaApiResponseTransfer; +use Generated\Shared\Transfer\CoremediaApiResponseTransfer; use Psr\Http\Message\RequestInterface; use RuntimeException; use Spryker\Shared\ErrorHandler\ErrorLogger; -use SprykerEco\Client\CoreMedia\CoreMediaConfig; -use SprykerEco\Client\CoreMedia\Dependency\Guzzle\CoreMediaToGuzzleInterface; +use SprykerEco\Client\Coremedia\CoremediaConfig; +use SprykerEco\Client\Coremedia\Dependency\Guzzle\CoremediaToGuzzleInterface; class RequestExecutor implements RequestExecutorInterface { /** - * @var \SprykerEco\Client\CoreMedia\Dependency\Guzzle\CoreMediaToGuzzleInterface + * @var \SprykerEco\Client\Coremedia\Dependency\Guzzle\CoremediaToGuzzleInterface */ protected $httpClient; /** - * @var \SprykerEco\Client\CoreMedia\CoreMediaConfig + * @var \SprykerEco\Client\Coremedia\CoremediaConfig */ protected $config; /** - * @param \SprykerEco\Client\CoreMedia\Dependency\Guzzle\CoreMediaToGuzzleInterface $httpClient - * @param \SprykerEco\Client\CoreMedia\CoreMediaConfig $config + * @param \SprykerEco\Client\Coremedia\Dependency\Guzzle\CoremediaToGuzzleInterface $httpClient + * @param \SprykerEco\Client\Coremedia\CoremediaConfig $config */ - public function __construct(CoreMediaToGuzzleInterface $httpClient, CoreMediaConfig $config) + public function __construct(CoremediaToGuzzleInterface $httpClient, CoremediaConfig $config) { $this->httpClient = $httpClient; $this->config = $config; @@ -39,9 +39,9 @@ public function __construct(CoreMediaToGuzzleInterface $httpClient, CoreMediaCon /** * @param \Psr\Http\Message\RequestInterface $request * - * @return \Generated\Shared\Transfer\CoreMediaApiResponseTransfer + * @return \Generated\Shared\Transfer\CoremediaApiResponseTransfer */ - public function execute(RequestInterface $request): CoreMediaApiResponseTransfer + public function execute(RequestInterface $request): CoremediaApiResponseTransfer { try { $response = $this->httpClient->send($request); @@ -50,11 +50,11 @@ public function execute(RequestInterface $request): CoreMediaApiResponseTransfer ErrorLogger::getInstance()->log($runtimeException); } - return (new CoreMediaApiResponseTransfer()) + return (new CoremediaApiResponseTransfer()) ->setIsSuccessful(false); } - return (new CoreMediaApiResponseTransfer()) + return (new CoremediaApiResponseTransfer()) ->setIsSuccessful(true) ->setData($response->getBody()->getContents()); } diff --git a/src/SprykerEco/Client/CoreMedia/Api/Executor/RequestExecutorInterface.php b/src/SprykerEco/Client/Coremedia/Api/Executor/RequestExecutorInterface.php similarity index 61% rename from src/SprykerEco/Client/CoreMedia/Api/Executor/RequestExecutorInterface.php rename to src/SprykerEco/Client/Coremedia/Api/Executor/RequestExecutorInterface.php index 1aec4e6..122b44e 100644 --- a/src/SprykerEco/Client/CoreMedia/Api/Executor/RequestExecutorInterface.php +++ b/src/SprykerEco/Client/Coremedia/Api/Executor/RequestExecutorInterface.php @@ -5,9 +5,9 @@ * Use of this software requires acceptance of the Evaluation License Agreement. See LICENSE file. */ -namespace SprykerEco\Client\CoreMedia\Api\Executor; +namespace SprykerEco\Client\Coremedia\Api\Executor; -use Generated\Shared\Transfer\CoreMediaApiResponseTransfer; +use Generated\Shared\Transfer\CoremediaApiResponseTransfer; use Psr\Http\Message\RequestInterface; interface RequestExecutorInterface @@ -15,7 +15,7 @@ interface RequestExecutorInterface /** * @param \Psr\Http\Message\RequestInterface $request * - * @return \Generated\Shared\Transfer\CoreMediaApiResponseTransfer + * @return \Generated\Shared\Transfer\CoremediaApiResponseTransfer */ - public function execute(RequestInterface $request): CoreMediaApiResponseTransfer; + public function execute(RequestInterface $request): CoremediaApiResponseTransfer; } diff --git a/src/SprykerEco/Client/CoreMedia/CoreMediaClient.php b/src/SprykerEco/Client/Coremedia/CoremediaClient.php similarity index 52% rename from src/SprykerEco/Client/CoreMedia/CoreMediaClient.php rename to src/SprykerEco/Client/Coremedia/CoremediaClient.php index 2620d0d..8ce5c6d 100644 --- a/src/SprykerEco/Client/CoreMedia/CoreMediaClient.php +++ b/src/SprykerEco/Client/Coremedia/CoremediaClient.php @@ -5,29 +5,29 @@ * Use of this software requires acceptance of the Evaluation License Agreement. See LICENSE file. */ -namespace SprykerEco\Client\CoreMedia; +namespace SprykerEco\Client\Coremedia; -use Generated\Shared\Transfer\CoreMediaApiResponseTransfer; -use Generated\Shared\Transfer\CoreMediaFragmentRequestTransfer; +use Generated\Shared\Transfer\CoremediaApiResponseTransfer; +use Generated\Shared\Transfer\CoremediaFragmentRequestTransfer; use Spryker\Client\Kernel\AbstractClient; /** - * @method \SprykerEco\Client\CoreMedia\CoreMediaFactory getFactory() + * @method \SprykerEco\Client\Coremedia\CoremediaFactory getFactory() */ -class CoreMediaClient extends AbstractClient implements CoreMediaClientInterface +class CoremediaClient extends AbstractClient implements CoremediaClientInterface { /** * {@inheritDoc} * * @api * - * @param \Generated\Shared\Transfer\CoreMediaFragmentRequestTransfer $coreMediaFragmentRequestTransfer + * @param \Generated\Shared\Transfer\CoremediaFragmentRequestTransfer $coreMediaFragmentRequestTransfer * - * @return \Generated\Shared\Transfer\CoreMediaApiResponseTransfer + * @return \Generated\Shared\Transfer\CoremediaApiResponseTransfer */ public function getDocumentFragment( - CoreMediaFragmentRequestTransfer $coreMediaFragmentRequestTransfer - ): CoreMediaApiResponseTransfer { + CoremediaFragmentRequestTransfer $coreMediaFragmentRequestTransfer + ): CoremediaApiResponseTransfer { return $this->getFactory() ->createApiClient() ->getDocumentFragment($coreMediaFragmentRequestTransfer); diff --git a/src/SprykerEco/Client/Coremedia/CoremediaClientInterface.php b/src/SprykerEco/Client/Coremedia/CoremediaClientInterface.php new file mode 100644 index 0000000..abec44d --- /dev/null +++ b/src/SprykerEco/Client/Coremedia/CoremediaClientInterface.php @@ -0,0 +1,30 @@ +get(CoreMediaConstants::CORE_MEDIA_HOST, null); + return $this->get(CoremediaConstants::COREMEDIA_HOST, null); } /** @@ -43,7 +43,7 @@ public function getFragmentBasePath(): string /** * [ - * 'ApplicationStoreName1' => 'CoreMediaStoreName1', + * 'ApplicationStoreName1' => 'CoremediaStoreName1', * ... * ] * @@ -56,7 +56,7 @@ public function getApplicationStoreMapping(): array /** * [ - * 'CoreMediaStoreName1` => ['en_US' => 'en-GB', 'de_DE' => 'de-DE'], + * 'CoremediaStoreName1` => ['en_US' => 'en-GB', 'de_DE' => 'de-DE'], * ... * ] * diff --git a/src/SprykerEco/Client/CoreMedia/CoreMediaDependencyProvider.php b/src/SprykerEco/Client/Coremedia/CoremediaDependencyProvider.php similarity index 83% rename from src/SprykerEco/Client/CoreMedia/CoreMediaDependencyProvider.php rename to src/SprykerEco/Client/Coremedia/CoremediaDependencyProvider.php index 97bd389..a7c26ed 100644 --- a/src/SprykerEco/Client/CoreMedia/CoreMediaDependencyProvider.php +++ b/src/SprykerEco/Client/Coremedia/CoremediaDependencyProvider.php @@ -5,14 +5,14 @@ * Use of this software requires acceptance of the Evaluation License Agreement. See LICENSE file. */ -namespace SprykerEco\Client\CoreMedia; +namespace SprykerEco\Client\Coremedia; use GuzzleHttp\Client; use Spryker\Client\Kernel\AbstractDependencyProvider; use Spryker\Client\Kernel\Container; -use SprykerEco\Client\CoreMedia\Dependency\Guzzle\CoreMediaToGuzzleBridge; +use SprykerEco\Client\Coremedia\Dependency\Guzzle\CoremediaToGuzzleBridge; -class CoreMediaDependencyProvider extends AbstractDependencyProvider +class CoremediaDependencyProvider extends AbstractDependencyProvider { public const CLIENT_GUZZLE = 'CLIENT_GUZZLE'; @@ -36,7 +36,7 @@ public function provideServiceLayerDependencies(Container $container): Container protected function addGuzzleClient(Container $container): Container { $container->set(static::CLIENT_GUZZLE, function () { - return new CoreMediaToGuzzleBridge($this->createGuzzleHttpClient()); + return new CoremediaToGuzzleBridge($this->createGuzzleHttpClient()); }); return $container; diff --git a/src/SprykerEco/Client/CoreMedia/CoreMediaFactory.php b/src/SprykerEco/Client/Coremedia/CoremediaFactory.php similarity index 50% rename from src/SprykerEco/Client/CoreMedia/CoreMediaFactory.php rename to src/SprykerEco/Client/Coremedia/CoremediaFactory.php index 313bb0d..1890bdd 100644 --- a/src/SprykerEco/Client/CoreMedia/CoreMediaFactory.php +++ b/src/SprykerEco/Client/Coremedia/CoremediaFactory.php @@ -5,28 +5,28 @@ * Use of this software requires acceptance of the Evaluation License Agreement. See LICENSE file. */ -namespace SprykerEco\Client\CoreMedia; +namespace SprykerEco\Client\Coremedia; use Spryker\Client\Kernel\AbstractFactory; -use SprykerEco\Client\CoreMedia\Api\ApiClient; -use SprykerEco\Client\CoreMedia\Api\ApiClientInterface; -use SprykerEco\Client\CoreMedia\Api\Builder\RequestBuilder; -use SprykerEco\Client\CoreMedia\Api\Builder\RequestBuilderInterface; -use SprykerEco\Client\CoreMedia\Api\Builder\UrlBuilder; -use SprykerEco\Client\CoreMedia\Api\Builder\UrlBuilderInterface; -use SprykerEco\Client\CoreMedia\Api\Configuration\UrlConfiguration; -use SprykerEco\Client\CoreMedia\Api\Configuration\UrlConfigurationInterface; -use SprykerEco\Client\CoreMedia\Api\Executor\RequestExecutor; -use SprykerEco\Client\CoreMedia\Api\Executor\RequestExecutorInterface; -use SprykerEco\Client\CoreMedia\Dependency\Guzzle\CoreMediaToGuzzleInterface; +use SprykerEco\Client\Coremedia\Api\ApiClient; +use SprykerEco\Client\Coremedia\Api\ApiClientInterface; +use SprykerEco\Client\Coremedia\Api\Builder\RequestBuilder; +use SprykerEco\Client\Coremedia\Api\Builder\RequestBuilderInterface; +use SprykerEco\Client\Coremedia\Api\Builder\UrlBuilder; +use SprykerEco\Client\Coremedia\Api\Builder\UrlBuilderInterface; +use SprykerEco\Client\Coremedia\Api\Configuration\UrlConfiguration; +use SprykerEco\Client\Coremedia\Api\Configuration\UrlConfigurationInterface; +use SprykerEco\Client\Coremedia\Api\Executor\RequestExecutor; +use SprykerEco\Client\Coremedia\Api\Executor\RequestExecutorInterface; +use SprykerEco\Client\Coremedia\Dependency\Guzzle\CoremediaToGuzzleInterface; /** - * @method \SprykerEco\Client\CoreMedia\CoreMediaConfig getConfig() + * @method \SprykerEco\Client\Coremedia\CoremediaConfig getConfig() */ -class CoreMediaFactory extends AbstractFactory +class CoremediaFactory extends AbstractFactory { /** - * @return \SprykerEco\Client\CoreMedia\Api\ApiClientInterface + * @return \SprykerEco\Client\Coremedia\Api\ApiClientInterface */ public function createApiClient(): ApiClientInterface { @@ -38,7 +38,7 @@ public function createApiClient(): ApiClientInterface } /** - * @return \SprykerEco\Client\CoreMedia\Api\Builder\RequestBuilderInterface + * @return \SprykerEco\Client\Coremedia\Api\Builder\RequestBuilderInterface */ public function createApiRequestBuilder(): RequestBuilderInterface { @@ -46,7 +46,7 @@ public function createApiRequestBuilder(): RequestBuilderInterface } /** - * @return \SprykerEco\Client\CoreMedia\Api\Executor\RequestExecutorInterface + * @return \SprykerEco\Client\Coremedia\Api\Executor\RequestExecutorInterface */ public function createApiRequestExecutor(): RequestExecutorInterface { @@ -57,7 +57,7 @@ public function createApiRequestExecutor(): RequestExecutorInterface } /** - * @return \SprykerEco\Client\CoreMedia\Api\Builder\UrlBuilderInterface + * @return \SprykerEco\Client\Coremedia\Api\Builder\UrlBuilderInterface */ public function createUrlBuilder(): UrlBuilderInterface { @@ -67,7 +67,7 @@ public function createUrlBuilder(): UrlBuilderInterface } /** - * @return \SprykerEco\Client\CoreMedia\Api\Configuration\UrlConfigurationInterface + * @return \SprykerEco\Client\Coremedia\Api\Configuration\UrlConfigurationInterface */ public function createUrlConfiguration(): UrlConfigurationInterface { @@ -75,10 +75,10 @@ public function createUrlConfiguration(): UrlConfigurationInterface } /** - * @return \SprykerEco\Client\CoreMedia\Dependency\Guzzle\CoreMediaToGuzzleInterface + * @return \SprykerEco\Client\Coremedia\Dependency\Guzzle\CoremediaToGuzzleInterface */ - public function getGuzzleClient(): CoreMediaToGuzzleInterface + public function getGuzzleClient(): CoremediaToGuzzleInterface { - return $this->getProvidedDependency(CoreMediaDependencyProvider::CLIENT_GUZZLE); + return $this->getProvidedDependency(CoremediaDependencyProvider::CLIENT_GUZZLE); } } diff --git a/src/SprykerEco/Client/CoreMedia/Dependency/Guzzle/CoreMediaToGuzzleBridge.php b/src/SprykerEco/Client/Coremedia/Dependency/Guzzle/CoremediaToGuzzleBridge.php similarity index 87% rename from src/SprykerEco/Client/CoreMedia/Dependency/Guzzle/CoreMediaToGuzzleBridge.php rename to src/SprykerEco/Client/Coremedia/Dependency/Guzzle/CoremediaToGuzzleBridge.php index 16f9beb..82a181d 100644 --- a/src/SprykerEco/Client/CoreMedia/Dependency/Guzzle/CoreMediaToGuzzleBridge.php +++ b/src/SprykerEco/Client/Coremedia/Dependency/Guzzle/CoremediaToGuzzleBridge.php @@ -5,12 +5,12 @@ * Use of this software requires acceptance of the Evaluation License Agreement. See LICENSE file. */ -namespace SprykerEco\Client\CoreMedia\Dependency\Guzzle; +namespace SprykerEco\Client\Coremedia\Dependency\Guzzle; use Psr\Http\Message\RequestInterface; use Psr\Http\Message\ResponseInterface; -class CoreMediaToGuzzleBridge implements CoreMediaToGuzzleInterface +class CoremediaToGuzzleBridge implements CoremediaToGuzzleInterface { /** * @var \GuzzleHttp\Client diff --git a/src/SprykerEco/Client/CoreMedia/Dependency/Guzzle/CoreMediaToGuzzleInterface.php b/src/SprykerEco/Client/Coremedia/Dependency/Guzzle/CoremediaToGuzzleInterface.php similarity index 84% rename from src/SprykerEco/Client/CoreMedia/Dependency/Guzzle/CoreMediaToGuzzleInterface.php rename to src/SprykerEco/Client/Coremedia/Dependency/Guzzle/CoremediaToGuzzleInterface.php index 9f6e6a8..fcf1c4f 100644 --- a/src/SprykerEco/Client/CoreMedia/Dependency/Guzzle/CoreMediaToGuzzleInterface.php +++ b/src/SprykerEco/Client/Coremedia/Dependency/Guzzle/CoremediaToGuzzleInterface.php @@ -5,12 +5,12 @@ * Use of this software requires acceptance of the Evaluation License Agreement. See LICENSE file. */ -namespace SprykerEco\Client\CoreMedia\Dependency\Guzzle; +namespace SprykerEco\Client\Coremedia\Dependency\Guzzle; use Psr\Http\Message\RequestInterface; use Psr\Http\Message\ResponseInterface; -interface CoreMediaToGuzzleInterface +interface CoremediaToGuzzleInterface { /** * @param \Psr\Http\Message\RequestInterface $request diff --git a/src/SprykerEco/Shared/CoreMedia/CoreMediaConfig.php b/src/SprykerEco/Shared/Coremedia/CoremediaConfig.php similarity index 72% rename from src/SprykerEco/Shared/CoreMedia/CoreMediaConfig.php rename to src/SprykerEco/Shared/Coremedia/CoremediaConfig.php index ae1c2b5..5fb2aab 100644 --- a/src/SprykerEco/Shared/CoreMedia/CoreMediaConfig.php +++ b/src/SprykerEco/Shared/Coremedia/CoremediaConfig.php @@ -5,11 +5,11 @@ * Use of this software requires acceptance of the Evaluation License Agreement. See LICENSE file. */ -namespace SprykerEco\Shared\CoreMedia; +namespace SprykerEco\Shared\Coremedia; use Spryker\Shared\Kernel\AbstractBundleConfig; -class CoreMediaConfig extends AbstractBundleConfig +class CoremediaConfig extends AbstractBundleConfig { public const PREG_MATCH_PLACEHOLDER_KEY = 'placeholder'; @@ -18,6 +18,6 @@ class CoreMediaConfig extends AbstractBundleConfig */ public function isDebugModeEnabled(): bool { - return $this->get(CoreMediaConstants::ENABLE_DEBUG, false); + return $this->get(CoremediaConstants::ENABLE_DEBUG, false); } } diff --git a/src/SprykerEco/Shared/CoreMedia/CoreMediaConstants.php b/src/SprykerEco/Shared/Coremedia/CoremediaConstants.php similarity index 60% rename from src/SprykerEco/Shared/CoreMedia/CoreMediaConstants.php rename to src/SprykerEco/Shared/Coremedia/CoremediaConstants.php index 9ac46b0..040a73e 100644 --- a/src/SprykerEco/Shared/CoreMedia/CoreMediaConstants.php +++ b/src/SprykerEco/Shared/Coremedia/CoremediaConstants.php @@ -5,13 +5,13 @@ * Use of this software requires acceptance of the Evaluation License Agreement. See LICENSE file. */ -namespace SprykerEco\Shared\CoreMedia; +namespace SprykerEco\Shared\Coremedia; /** * Declares global environment configuration keys. Do not use it for other class constants. */ -interface CoreMediaConstants +interface CoremediaConstants { - public const CORE_MEDIA_HOST = 'CORE_MEDIA:CORE_MEDIA_HOST'; - public const ENABLE_DEBUG = 'CORE_MEDIA:ENABLE_DEBUG'; + public const COREMEDIA_HOST = 'COREMEDIA:COREMEDIA_HOST'; + public const ENABLE_DEBUG = 'COREMEDIA:ENABLE_DEBUG'; } diff --git a/src/SprykerEco/Shared/CoreMedia/Transfer/core_media.transfer.xml b/src/SprykerEco/Shared/Coremedia/Transfer/coremedia.transfer.xml similarity index 83% rename from src/SprykerEco/Shared/CoreMedia/Transfer/core_media.transfer.xml rename to src/SprykerEco/Shared/Coremedia/Transfer/coremedia.transfer.xml index 2d2306d..13eb42b 100644 --- a/src/SprykerEco/Shared/CoreMedia/Transfer/core_media.transfer.xml +++ b/src/SprykerEco/Shared/Coremedia/Transfer/coremedia.transfer.xml @@ -9,15 +9,15 @@ - + - + - + @@ -31,7 +31,7 @@ - + @@ -51,23 +51,23 @@ - + - + - + - + diff --git a/src/SprykerEco/Yves/CoreMedia/ApiResponse/ApiResponsePreparator.php b/src/SprykerEco/Yves/CoreMedia/ApiResponse/ApiResponsePreparator.php index 107ab0b..76d7989 100644 --- a/src/SprykerEco/Yves/CoreMedia/ApiResponse/ApiResponsePreparator.php +++ b/src/SprykerEco/Yves/CoreMedia/ApiResponse/ApiResponsePreparator.php @@ -5,19 +5,19 @@ * Use of this software requires acceptance of the Evaluation License Agreement. See LICENSE file. */ -namespace SprykerEco\Yves\CoreMedia\ApiResponse; +namespace SprykerEco\Yves\Coremedia\ApiResponse; -use Generated\Shared\Transfer\CoreMediaApiResponseTransfer; +use Generated\Shared\Transfer\CoremediaApiResponseTransfer; class ApiResponsePreparator implements ApiResponsePreparatorInterface { /** - * @var \SprykerEco\Yves\CoreMedia\ApiResponse\Resolver\ApiResponseResolverInterface[] + * @var \SprykerEco\Yves\Coremedia\ApiResponse\Resolver\ApiResponseResolverInterface[] */ protected $apiResponseResolvers; /** - * @param \SprykerEco\Yves\CoreMedia\ApiResponse\Resolver\ApiResponseResolverInterface[] $apiResponseResolvers + * @param \SprykerEco\Yves\Coremedia\ApiResponse\Resolver\ApiResponseResolverInterface[] $apiResponseResolvers */ public function __construct(array $apiResponseResolvers) { @@ -25,15 +25,15 @@ public function __construct(array $apiResponseResolvers) } /** - * @param \Generated\Shared\Transfer\CoreMediaApiResponseTransfer $coreMediaApiResponseTransfer + * @param \Generated\Shared\Transfer\CoremediaApiResponseTransfer $coreMediaApiResponseTransfer * @param string $locale * - * @return \Generated\Shared\Transfer\CoreMediaApiResponseTransfer + * @return \Generated\Shared\Transfer\CoremediaApiResponseTransfer */ public function prepare( - CoreMediaApiResponseTransfer $coreMediaApiResponseTransfer, + CoremediaApiResponseTransfer $coreMediaApiResponseTransfer, string $locale - ): CoreMediaApiResponseTransfer { + ): CoremediaApiResponseTransfer { foreach ($this->apiResponseResolvers as $apiResponseResolver) { $coreMediaApiResponseTransfer = $apiResponseResolver->resolve($coreMediaApiResponseTransfer, $locale); } diff --git a/src/SprykerEco/Yves/CoreMedia/ApiResponse/ApiResponsePreparatorInterface.php b/src/SprykerEco/Yves/CoreMedia/ApiResponse/ApiResponsePreparatorInterface.php index 9515880..1765e69 100644 --- a/src/SprykerEco/Yves/CoreMedia/ApiResponse/ApiResponsePreparatorInterface.php +++ b/src/SprykerEco/Yves/CoreMedia/ApiResponse/ApiResponsePreparatorInterface.php @@ -5,20 +5,20 @@ * Use of this software requires acceptance of the Evaluation License Agreement. See LICENSE file. */ -namespace SprykerEco\Yves\CoreMedia\ApiResponse; +namespace SprykerEco\Yves\Coremedia\ApiResponse; -use Generated\Shared\Transfer\CoreMediaApiResponseTransfer; +use Generated\Shared\Transfer\CoremediaApiResponseTransfer; interface ApiResponsePreparatorInterface { /** - * @param \Generated\Shared\Transfer\CoreMediaApiResponseTransfer $coreMediaApiResponseTransfer + * @param \Generated\Shared\Transfer\CoremediaApiResponseTransfer $coreMediaApiResponseTransfer * @param string $locale * - * @return \Generated\Shared\Transfer\CoreMediaApiResponseTransfer + * @return \Generated\Shared\Transfer\CoremediaApiResponseTransfer */ public function prepare( - CoreMediaApiResponseTransfer $coreMediaApiResponseTransfer, + CoremediaApiResponseTransfer $coreMediaApiResponseTransfer, string $locale - ): CoreMediaApiResponseTransfer; + ): CoremediaApiResponseTransfer; } diff --git a/src/SprykerEco/Yves/CoreMedia/ApiResponse/Executor/IncorrectPlaceholderDataExecutor.php b/src/SprykerEco/Yves/CoreMedia/ApiResponse/Executor/IncorrectPlaceholderDataExecutor.php index 3a02e52..809158a 100644 --- a/src/SprykerEco/Yves/CoreMedia/ApiResponse/Executor/IncorrectPlaceholderDataExecutor.php +++ b/src/SprykerEco/Yves/CoreMedia/ApiResponse/Executor/IncorrectPlaceholderDataExecutor.php @@ -5,36 +5,36 @@ * Use of this software requires acceptance of the Evaluation License Agreement. See LICENSE file. */ -namespace SprykerEco\Yves\CoreMedia\ApiResponse\Executor; +namespace SprykerEco\Yves\Coremedia\ApiResponse\Executor; -use Generated\Shared\Transfer\CoreMediaPlaceholderTransfer; +use Generated\Shared\Transfer\CoremediaPlaceholderTransfer; use Spryker\Shared\ErrorHandler\ErrorLogger; -use SprykerEco\Yves\CoreMedia\CoreMediaConfig; -use SprykerEco\Yves\CoreMedia\Exception\InvalidPlaceholderDataException; +use SprykerEco\Yves\Coremedia\CoremediaConfig; +use SprykerEco\Yves\Coremedia\Exception\InvalidPlaceholderDataException; class IncorrectPlaceholderDataExecutor implements IncorrectPlaceholderDataExecutorInterface { /** - * @var \SprykerEco\Yves\CoreMedia\CoreMediaConfig + * @var \SprykerEco\Yves\Coremedia\CoremediaConfig */ protected $config; /** - * @param \SprykerEco\Yves\CoreMedia\CoreMediaConfig $coreMediaConfig + * @param \SprykerEco\Yves\Coremedia\CoremediaConfig $coreMediaConfig */ - public function __construct(CoreMediaConfig $coreMediaConfig) + public function __construct(CoremediaConfig $coreMediaConfig) { $this->config = $coreMediaConfig; } /** - * @param \Generated\Shared\Transfer\CoreMediaPlaceholderTransfer $coreMediaPlaceholderTransfer + * @param \Generated\Shared\Transfer\CoremediaPlaceholderTransfer $coreMediaPlaceholderTransfer * @param string $locale * * @return void */ public function executeIncorrectPlaceholderData( - CoreMediaPlaceholderTransfer $coreMediaPlaceholderTransfer, + CoremediaPlaceholderTransfer $coreMediaPlaceholderTransfer, string $locale ): void { if (!$this->config->isDebugModeEnabled()) { diff --git a/src/SprykerEco/Yves/CoreMedia/ApiResponse/Executor/IncorrectPlaceholderDataExecutorInterface.php b/src/SprykerEco/Yves/CoreMedia/ApiResponse/Executor/IncorrectPlaceholderDataExecutorInterface.php index 6d4d290..273a12f 100644 --- a/src/SprykerEco/Yves/CoreMedia/ApiResponse/Executor/IncorrectPlaceholderDataExecutorInterface.php +++ b/src/SprykerEco/Yves/CoreMedia/ApiResponse/Executor/IncorrectPlaceholderDataExecutorInterface.php @@ -5,20 +5,20 @@ * Use of this software requires acceptance of the Evaluation License Agreement. See LICENSE file. */ -namespace SprykerEco\Yves\CoreMedia\ApiResponse\Executor; +namespace SprykerEco\Yves\Coremedia\ApiResponse\Executor; -use Generated\Shared\Transfer\CoreMediaPlaceholderTransfer; +use Generated\Shared\Transfer\CoremediaPlaceholderTransfer; interface IncorrectPlaceholderDataExecutorInterface { /** - * @param \Generated\Shared\Transfer\CoreMediaPlaceholderTransfer $coreMediaPlaceholderTransfer + * @param \Generated\Shared\Transfer\CoremediaPlaceholderTransfer $coreMediaPlaceholderTransfer * @param string $locale * * @return void */ public function executeIncorrectPlaceholderData( - CoreMediaPlaceholderTransfer $coreMediaPlaceholderTransfer, + CoremediaPlaceholderTransfer $coreMediaPlaceholderTransfer, string $locale ): void; } diff --git a/src/SprykerEco/Yves/CoreMedia/ApiResponse/Parser/PlaceholderParser.php b/src/SprykerEco/Yves/CoreMedia/ApiResponse/Parser/PlaceholderParser.php index 405070e..5e107a1 100644 --- a/src/SprykerEco/Yves/CoreMedia/ApiResponse/Parser/PlaceholderParser.php +++ b/src/SprykerEco/Yves/CoreMedia/ApiResponse/Parser/PlaceholderParser.php @@ -5,32 +5,32 @@ * Use of this software requires acceptance of the Evaluation License Agreement. See LICENSE file. */ -namespace SprykerEco\Yves\CoreMedia\ApiResponse\Parser; +namespace SprykerEco\Yves\Coremedia\ApiResponse\Parser; -use Generated\Shared\Transfer\CoreMediaPlaceholderTransfer; -use SprykerEco\Shared\CoreMedia\CoreMediaConfig as SharedCoreMediaConfig; -use SprykerEco\Yves\CoreMedia\CoreMediaConfig; -use SprykerEco\Yves\CoreMedia\Dependency\Service\CoreMediaToUtilEncodingServiceInterface; +use Generated\Shared\Transfer\CoremediaPlaceholderTransfer; +use SprykerEco\Shared\Coremedia\CoremediaConfig as SharedCoremediaConfig; +use SprykerEco\Yves\Coremedia\CoremediaConfig; +use SprykerEco\Yves\Coremedia\Dependency\Service\CoremediaToUtilEncodingServiceInterface; class PlaceholderParser implements PlaceholderParserInterface { /** - * @var \SprykerEco\Yves\CoreMedia\Dependency\Service\CoreMediaToUtilEncodingServiceInterface + * @var \SprykerEco\Yves\Coremedia\Dependency\Service\CoremediaToUtilEncodingServiceInterface */ protected $utilEncodingService; /** - * @var \SprykerEco\Yves\CoreMedia\CoreMediaConfig + * @var \SprykerEco\Yves\Coremedia\CoremediaConfig */ protected $config; /** - * @param \SprykerEco\Yves\CoreMedia\Dependency\Service\CoreMediaToUtilEncodingServiceInterface $utilEncodingService - * @param \SprykerEco\Yves\CoreMedia\CoreMediaConfig $config + * @param \SprykerEco\Yves\Coremedia\Dependency\Service\CoremediaToUtilEncodingServiceInterface $utilEncodingService + * @param \SprykerEco\Yves\Coremedia\CoremediaConfig $config */ public function __construct( - CoreMediaToUtilEncodingServiceInterface $utilEncodingService, - CoreMediaConfig $config + CoremediaToUtilEncodingServiceInterface $utilEncodingService, + CoremediaConfig $config ) { $this->utilEncodingService = $utilEncodingService; $this->config = $config; @@ -39,7 +39,7 @@ public function __construct( /** * @param string $content * - * @return \Generated\Shared\Transfer\CoreMediaPlaceholderTransfer[] + * @return \Generated\Shared\Transfer\CoremediaPlaceholderTransfer[] */ public function parse(string $content): array { @@ -51,11 +51,11 @@ public function parse(string $content): array $placeholders = []; - if (!$matches[SharedCoreMediaConfig::PREG_MATCH_PLACEHOLDER_KEY]) { + if (!$matches[SharedCoremediaConfig::PREG_MATCH_PLACEHOLDER_KEY]) { return []; } - $placeholdersData = array_unique($matches[SharedCoreMediaConfig::PREG_MATCH_PLACEHOLDER_KEY]); + $placeholdersData = array_unique($matches[SharedCoremediaConfig::PREG_MATCH_PLACEHOLDER_KEY]); foreach ($placeholdersData as $placeholderKey => $placeholderData) { $decodedPlaceholderData = $this->decodePlaceholderData($placeholderData); @@ -64,7 +64,7 @@ public function parse(string $content): array continue; } - $coreMediaPlaceholderTransfer = (new CoreMediaPlaceholderTransfer()) + $coreMediaPlaceholderTransfer = (new CoremediaPlaceholderTransfer()) ->fromArray($decodedPlaceholderData, true) ->setPlaceholderBody($matches[0][$placeholderKey]); diff --git a/src/SprykerEco/Yves/CoreMedia/ApiResponse/Parser/PlaceholderParserInterface.php b/src/SprykerEco/Yves/CoreMedia/ApiResponse/Parser/PlaceholderParserInterface.php index af8a0ef..78daecf 100644 --- a/src/SprykerEco/Yves/CoreMedia/ApiResponse/Parser/PlaceholderParserInterface.php +++ b/src/SprykerEco/Yves/CoreMedia/ApiResponse/Parser/PlaceholderParserInterface.php @@ -5,14 +5,14 @@ * Use of this software requires acceptance of the Evaluation License Agreement. See LICENSE file. */ -namespace SprykerEco\Yves\CoreMedia\ApiResponse\Parser; +namespace SprykerEco\Yves\Coremedia\ApiResponse\Parser; interface PlaceholderParserInterface { /** * @param string $content * - * @return \Generated\Shared\Transfer\CoreMediaPlaceholderTransfer[] + * @return \Generated\Shared\Transfer\CoremediaPlaceholderTransfer[] */ public function parse(string $content): array; } diff --git a/src/SprykerEco/Yves/CoreMedia/ApiResponse/PostProcessor/PlaceholderPostProcessor.php b/src/SprykerEco/Yves/CoreMedia/ApiResponse/PostProcessor/PlaceholderPostProcessor.php index 4cf9619..1ea1819 100644 --- a/src/SprykerEco/Yves/CoreMedia/ApiResponse/PostProcessor/PlaceholderPostProcessor.php +++ b/src/SprykerEco/Yves/CoreMedia/ApiResponse/PostProcessor/PlaceholderPostProcessor.php @@ -5,27 +5,27 @@ * Use of this software requires acceptance of the Evaluation License Agreement. See LICENSE file. */ -namespace SprykerEco\Yves\CoreMedia\ApiResponse\PostProcessor; +namespace SprykerEco\Yves\Coremedia\ApiResponse\PostProcessor; -use Generated\Shared\Transfer\CoreMediaPlaceholderTransfer; -use SprykerEco\Yves\CoreMedia\ApiResponse\Executor\IncorrectPlaceholderDataExecutorInterface; -use SprykerEco\Yves\CoreMedia\ApiResponse\Renderer\PlaceholderReplacementRendererInterface; +use Generated\Shared\Transfer\CoremediaPlaceholderTransfer; +use SprykerEco\Yves\Coremedia\ApiResponse\Executor\IncorrectPlaceholderDataExecutorInterface; +use SprykerEco\Yves\Coremedia\ApiResponse\Renderer\PlaceholderReplacementRendererInterface; class PlaceholderPostProcessor implements PlaceholderPostProcessorInterface { /** - * @var \SprykerEco\Yves\CoreMedia\ApiResponse\Renderer\PlaceholderReplacementRendererInterface[] + * @var \SprykerEco\Yves\Coremedia\ApiResponse\Renderer\PlaceholderReplacementRendererInterface[] */ protected $placeholderReplacementRenderers; /** - * @var \SprykerEco\Yves\CoreMedia\ApiResponse\Executor\IncorrectPlaceholderDataExecutorInterface + * @var \SprykerEco\Yves\Coremedia\ApiResponse\Executor\IncorrectPlaceholderDataExecutorInterface */ protected $incorrectPlaceholderDataExecutor; /** - * @param \SprykerEco\Yves\CoreMedia\ApiResponse\Renderer\PlaceholderReplacementRendererInterface[] $placeholderReplacementRenderers - * @param \SprykerEco\Yves\CoreMedia\ApiResponse\Executor\IncorrectPlaceholderDataExecutorInterface $incorrectPlaceholderDataExecutor + * @param \SprykerEco\Yves\Coremedia\ApiResponse\Renderer\PlaceholderReplacementRendererInterface[] $placeholderReplacementRenderers + * @param \SprykerEco\Yves\Coremedia\ApiResponse\Executor\IncorrectPlaceholderDataExecutorInterface $incorrectPlaceholderDataExecutor */ public function __construct( array $placeholderReplacementRenderers, @@ -36,15 +36,15 @@ public function __construct( } /** - * @param \Generated\Shared\Transfer\CoreMediaPlaceholderTransfer $coreMediaPlaceholderTransfer + * @param \Generated\Shared\Transfer\CoremediaPlaceholderTransfer $coreMediaPlaceholderTransfer * @param string $locale * - * @return \Generated\Shared\Transfer\CoreMediaPlaceholderTransfer + * @return \Generated\Shared\Transfer\CoremediaPlaceholderTransfer */ public function addReplacement( - CoreMediaPlaceholderTransfer $coreMediaPlaceholderTransfer, + CoremediaPlaceholderTransfer $coreMediaPlaceholderTransfer, string $locale - ): CoreMediaPlaceholderTransfer { + ): CoremediaPlaceholderTransfer { $placeholderReplacementRenderer = $this->resolvePlaceholderReplacementRenderer($coreMediaPlaceholderTransfer); if (!$placeholderReplacementRenderer) { @@ -68,27 +68,27 @@ public function addReplacement( } /** - * @param \SprykerEco\Yves\CoreMedia\ApiResponse\Renderer\PlaceholderReplacementRendererInterface $placeholderReplacementRenderer - * @param \Generated\Shared\Transfer\CoreMediaPlaceholderTransfer $coreMediaPlaceholderTransfer + * @param \SprykerEco\Yves\Coremedia\ApiResponse\Renderer\PlaceholderReplacementRendererInterface $placeholderReplacementRenderer + * @param \Generated\Shared\Transfer\CoremediaPlaceholderTransfer $coreMediaPlaceholderTransfer * - * @return \Generated\Shared\Transfer\CoreMediaPlaceholderTransfer + * @return \Generated\Shared\Transfer\CoremediaPlaceholderTransfer */ protected function setFallbackPlaceholderReplacement( PlaceholderReplacementRendererInterface $placeholderReplacementRenderer, - CoreMediaPlaceholderTransfer $coreMediaPlaceholderTransfer - ): CoreMediaPlaceholderTransfer { + CoremediaPlaceholderTransfer $coreMediaPlaceholderTransfer + ): CoremediaPlaceholderTransfer { return $coreMediaPlaceholderTransfer->setPlaceholderReplacement( $placeholderReplacementRenderer->getFallbackPlaceholderReplacement() ); } /** - * @param \Generated\Shared\Transfer\CoreMediaPlaceholderTransfer $coreMediaPlaceholderTransfer + * @param \Generated\Shared\Transfer\CoremediaPlaceholderTransfer $coreMediaPlaceholderTransfer * - * @return \SprykerEco\Yves\CoreMedia\ApiResponse\Renderer\PlaceholderReplacementRendererInterface|null + * @return \SprykerEco\Yves\Coremedia\ApiResponse\Renderer\PlaceholderReplacementRendererInterface|null */ protected function resolvePlaceholderReplacementRenderer( - CoreMediaPlaceholderTransfer $coreMediaPlaceholderTransfer + CoremediaPlaceholderTransfer $coreMediaPlaceholderTransfer ): ?PlaceholderReplacementRendererInterface { foreach ($this->placeholderReplacementRenderers as $placeholderReplacementRenderer) { if ($placeholderReplacementRenderer->isApplicable($coreMediaPlaceholderTransfer)) { diff --git a/src/SprykerEco/Yves/CoreMedia/ApiResponse/PostProcessor/PlaceholderPostProcessorInterface.php b/src/SprykerEco/Yves/CoreMedia/ApiResponse/PostProcessor/PlaceholderPostProcessorInterface.php index 9afd488..784e573 100644 --- a/src/SprykerEco/Yves/CoreMedia/ApiResponse/PostProcessor/PlaceholderPostProcessorInterface.php +++ b/src/SprykerEco/Yves/CoreMedia/ApiResponse/PostProcessor/PlaceholderPostProcessorInterface.php @@ -5,20 +5,20 @@ * Use of this software requires acceptance of the Evaluation License Agreement. See LICENSE file. */ -namespace SprykerEco\Yves\CoreMedia\ApiResponse\PostProcessor; +namespace SprykerEco\Yves\Coremedia\ApiResponse\PostProcessor; -use Generated\Shared\Transfer\CoreMediaPlaceholderTransfer; +use Generated\Shared\Transfer\CoremediaPlaceholderTransfer; interface PlaceholderPostProcessorInterface { /** - * @param \Generated\Shared\Transfer\CoreMediaPlaceholderTransfer $coreMediaPlaceholderTransfer + * @param \Generated\Shared\Transfer\CoremediaPlaceholderTransfer $coreMediaPlaceholderTransfer * @param string $locale * - * @return \Generated\Shared\Transfer\CoreMediaPlaceholderTransfer + * @return \Generated\Shared\Transfer\CoremediaPlaceholderTransfer */ public function addReplacement( - CoreMediaPlaceholderTransfer $coreMediaPlaceholderTransfer, + CoremediaPlaceholderTransfer $coreMediaPlaceholderTransfer, string $locale - ): CoreMediaPlaceholderTransfer; + ): CoremediaPlaceholderTransfer; } diff --git a/src/SprykerEco/Yves/CoreMedia/ApiResponse/Renderer/CategoryUrlPlaceholderReplacementRenderer.php b/src/SprykerEco/Yves/CoreMedia/ApiResponse/Renderer/CategoryUrlPlaceholderReplacementRenderer.php index 5dd4e59..59c8651 100644 --- a/src/SprykerEco/Yves/CoreMedia/ApiResponse/Renderer/CategoryUrlPlaceholderReplacementRenderer.php +++ b/src/SprykerEco/Yves/CoreMedia/ApiResponse/Renderer/CategoryUrlPlaceholderReplacementRenderer.php @@ -5,10 +5,10 @@ * Use of this software requires acceptance of the Evaluation License Agreement. See LICENSE file. */ -namespace SprykerEco\Yves\CoreMedia\ApiResponse\Renderer; +namespace SprykerEco\Yves\Coremedia\ApiResponse\Renderer; -use Generated\Shared\Transfer\CoreMediaPlaceholderTransfer; -use SprykerEco\Yves\CoreMedia\Dependency\Client\CoreMediaToCategoryStorageClientInterface; +use Generated\Shared\Transfer\CoremediaPlaceholderTransfer; +use SprykerEco\Yves\Coremedia\Dependency\Client\CoremediaToCategoryStorageClientInterface; class CategoryUrlPlaceholderReplacementRenderer implements PlaceholderReplacementRendererInterface { @@ -16,37 +16,37 @@ class CategoryUrlPlaceholderReplacementRenderer implements PlaceholderReplacemen protected const PLACEHOLDER_RENDER_TYPE = 'url'; /** - * @var \SprykerEco\Yves\CoreMedia\Dependency\Client\CoreMediaToCategoryStorageClientInterface + * @var \SprykerEco\Yves\Coremedia\Dependency\Client\CoremediaToCategoryStorageClientInterface */ protected $categoryStorageClient; /** - * @param \SprykerEco\Yves\CoreMedia\Dependency\Client\CoreMediaToCategoryStorageClientInterface $categoryStorageClient + * @param \SprykerEco\Yves\Coremedia\Dependency\Client\CoremediaToCategoryStorageClientInterface $categoryStorageClient */ - public function __construct(CoreMediaToCategoryStorageClientInterface $categoryStorageClient) + public function __construct(CoremediaToCategoryStorageClientInterface $categoryStorageClient) { $this->categoryStorageClient = $categoryStorageClient; } /** - * @param \Generated\Shared\Transfer\CoreMediaPlaceholderTransfer $coreMediaPlaceholderTransfer + * @param \Generated\Shared\Transfer\CoremediaPlaceholderTransfer $coreMediaPlaceholderTransfer * * @return bool */ - public function isApplicable(CoreMediaPlaceholderTransfer $coreMediaPlaceholderTransfer): bool + public function isApplicable(CoremediaPlaceholderTransfer $coreMediaPlaceholderTransfer): bool { return $coreMediaPlaceholderTransfer->getObjectType() === static::PLACEHOLDER_OBJECT_TYPE && $coreMediaPlaceholderTransfer->getRenderType() === static::PLACEHOLDER_RENDER_TYPE; } /** - * @param \Generated\Shared\Transfer\CoreMediaPlaceholderTransfer $coreMediaPlaceholderTransfer + * @param \Generated\Shared\Transfer\CoremediaPlaceholderTransfer $coreMediaPlaceholderTransfer * @param string $locale * * @return string|null */ public function getPlaceholderReplacement( - CoreMediaPlaceholderTransfer $coreMediaPlaceholderTransfer, + CoremediaPlaceholderTransfer $coreMediaPlaceholderTransfer, string $locale ): ?string { if (!$coreMediaPlaceholderTransfer->getCategoryId()) { diff --git a/src/SprykerEco/Yves/CoreMedia/ApiResponse/Renderer/CustomPageUrlPlaceholderReplacementRenderer.php b/src/SprykerEco/Yves/CoreMedia/ApiResponse/Renderer/CustomPageUrlPlaceholderReplacementRenderer.php index 79e664c..c600a0e 100644 --- a/src/SprykerEco/Yves/CoreMedia/ApiResponse/Renderer/CustomPageUrlPlaceholderReplacementRenderer.php +++ b/src/SprykerEco/Yves/CoreMedia/ApiResponse/Renderer/CustomPageUrlPlaceholderReplacementRenderer.php @@ -5,9 +5,9 @@ * Use of this software requires acceptance of the Evaluation License Agreement. See LICENSE file. */ -namespace SprykerEco\Yves\CoreMedia\ApiResponse\Renderer; +namespace SprykerEco\Yves\Coremedia\ApiResponse\Renderer; -use Generated\Shared\Transfer\CoreMediaPlaceholderTransfer; +use Generated\Shared\Transfer\CoremediaPlaceholderTransfer; use Symfony\Component\Routing\Exception\RouteNotFoundException; use Symfony\Component\Routing\Generator\UrlGeneratorInterface; @@ -30,24 +30,24 @@ public function __construct(UrlGeneratorInterface $urlGenerator) } /** - * @param \Generated\Shared\Transfer\CoreMediaPlaceholderTransfer $coreMediaPlaceholderTransfer + * @param \Generated\Shared\Transfer\CoremediaPlaceholderTransfer $coreMediaPlaceholderTransfer * * @return bool */ - public function isApplicable(CoreMediaPlaceholderTransfer $coreMediaPlaceholderTransfer): bool + public function isApplicable(CoremediaPlaceholderTransfer $coreMediaPlaceholderTransfer): bool { return $coreMediaPlaceholderTransfer->getObjectType() === static::PLACEHOLDER_OBJECT_TYPE && $coreMediaPlaceholderTransfer->getRenderType() === static::PLACEHOLDER_RENDER_TYPE; } /** - * @param \Generated\Shared\Transfer\CoreMediaPlaceholderTransfer $coreMediaPlaceholderTransfer + * @param \Generated\Shared\Transfer\CoremediaPlaceholderTransfer $coreMediaPlaceholderTransfer * @param string $locale * * @return string|null */ public function getPlaceholderReplacement( - CoreMediaPlaceholderTransfer $coreMediaPlaceholderTransfer, + CoremediaPlaceholderTransfer $coreMediaPlaceholderTransfer, string $locale ): ?string { if (!$coreMediaPlaceholderTransfer->getExternalSeoSegment()) { diff --git a/src/SprykerEco/Yves/CoreMedia/ApiResponse/Renderer/PageMetadataPlaceholderReplacementRenderer.php b/src/SprykerEco/Yves/CoreMedia/ApiResponse/Renderer/PageMetadataPlaceholderReplacementRenderer.php index ca04de2..f4d2c49 100644 --- a/src/SprykerEco/Yves/CoreMedia/ApiResponse/Renderer/PageMetadataPlaceholderReplacementRenderer.php +++ b/src/SprykerEco/Yves/CoreMedia/ApiResponse/Renderer/PageMetadataPlaceholderReplacementRenderer.php @@ -5,9 +5,9 @@ * Use of this software requires acceptance of the Evaluation License Agreement. See LICENSE file. */ -namespace SprykerEco\Yves\CoreMedia\ApiResponse\Renderer; +namespace SprykerEco\Yves\Coremedia\ApiResponse\Renderer; -use Generated\Shared\Transfer\CoreMediaPlaceholderTransfer; +use Generated\Shared\Transfer\CoremediaPlaceholderTransfer; class PageMetadataPlaceholderReplacementRenderer implements PlaceholderReplacementRendererInterface { @@ -15,12 +15,12 @@ class PageMetadataPlaceholderReplacementRenderer implements PlaceholderReplaceme protected const PLACEHOLDER_RENDER_TYPE = 'metadata'; /** - * @var \SprykerEco\Yves\CoreMedia\ApiResponse\Replacer\Metadata\MetadataReplacerInterface[] + * @var \SprykerEco\Yves\Coremedia\ApiResponse\Replacer\Metadata\MetadataReplacerInterface[] */ protected $metadataReplacers = []; /** - * @param \SprykerEco\Yves\CoreMedia\ApiResponse\Replacer\Metadata\MetadataReplacerInterface[] $metadataReplacers + * @param \SprykerEco\Yves\Coremedia\ApiResponse\Replacer\Metadata\MetadataReplacerInterface[] $metadataReplacers */ public function __construct(array $metadataReplacers) { @@ -28,24 +28,24 @@ public function __construct(array $metadataReplacers) } /** - * @param \Generated\Shared\Transfer\CoreMediaPlaceholderTransfer $coreMediaPlaceholderTransfer + * @param \Generated\Shared\Transfer\CoremediaPlaceholderTransfer $coreMediaPlaceholderTransfer * * @return bool */ - public function isApplicable(CoreMediaPlaceholderTransfer $coreMediaPlaceholderTransfer): bool + public function isApplicable(CoremediaPlaceholderTransfer $coreMediaPlaceholderTransfer): bool { return $coreMediaPlaceholderTransfer->getObjectType() === static::PLACEHOLDER_OBJECT_TYPE && $coreMediaPlaceholderTransfer->getRenderType() === static::PLACEHOLDER_RENDER_TYPE; } /** - * @param \Generated\Shared\Transfer\CoreMediaPlaceholderTransfer $coreMediaPlaceholderTransfer + * @param \Generated\Shared\Transfer\CoremediaPlaceholderTransfer $coreMediaPlaceholderTransfer * @param string $locale * * @return string */ public function getPlaceholderReplacement( - CoreMediaPlaceholderTransfer $coreMediaPlaceholderTransfer, + CoremediaPlaceholderTransfer $coreMediaPlaceholderTransfer, string $locale ): string { $metadata = ''; diff --git a/src/SprykerEco/Yves/CoreMedia/ApiResponse/Renderer/PlaceholderReplacementRendererInterface.php b/src/SprykerEco/Yves/CoreMedia/ApiResponse/Renderer/PlaceholderReplacementRendererInterface.php index f8004d5..c8253d6 100644 --- a/src/SprykerEco/Yves/CoreMedia/ApiResponse/Renderer/PlaceholderReplacementRendererInterface.php +++ b/src/SprykerEco/Yves/CoreMedia/ApiResponse/Renderer/PlaceholderReplacementRendererInterface.php @@ -5,27 +5,27 @@ * Use of this software requires acceptance of the Evaluation License Agreement. See LICENSE file. */ -namespace SprykerEco\Yves\CoreMedia\ApiResponse\Renderer; +namespace SprykerEco\Yves\Coremedia\ApiResponse\Renderer; -use Generated\Shared\Transfer\CoreMediaPlaceholderTransfer; +use Generated\Shared\Transfer\CoremediaPlaceholderTransfer; interface PlaceholderReplacementRendererInterface { /** - * @param \Generated\Shared\Transfer\CoreMediaPlaceholderTransfer $coreMediaPlaceholderTransfer + * @param \Generated\Shared\Transfer\CoremediaPlaceholderTransfer $coreMediaPlaceholderTransfer * * @return bool */ - public function isApplicable(CoreMediaPlaceholderTransfer $coreMediaPlaceholderTransfer): bool; + public function isApplicable(CoremediaPlaceholderTransfer $coreMediaPlaceholderTransfer): bool; /** - * @param \Generated\Shared\Transfer\CoreMediaPlaceholderTransfer $coreMediaPlaceholderTransfer + * @param \Generated\Shared\Transfer\CoremediaPlaceholderTransfer $coreMediaPlaceholderTransfer * @param string $locale * * @return string|null */ public function getPlaceholderReplacement( - CoreMediaPlaceholderTransfer $coreMediaPlaceholderTransfer, + CoremediaPlaceholderTransfer $coreMediaPlaceholderTransfer, string $locale ): ?string; diff --git a/src/SprykerEco/Yves/CoreMedia/ApiResponse/Renderer/ProductPricePlaceholderReplacementRenderer.php b/src/SprykerEco/Yves/CoreMedia/ApiResponse/Renderer/ProductPricePlaceholderReplacementRenderer.php index 68572cb..c5f73c3 100644 --- a/src/SprykerEco/Yves/CoreMedia/ApiResponse/Renderer/ProductPricePlaceholderReplacementRenderer.php +++ b/src/SprykerEco/Yves/CoreMedia/ApiResponse/Renderer/ProductPricePlaceholderReplacementRenderer.php @@ -5,14 +5,14 @@ * Use of this software requires acceptance of the Evaluation License Agreement. See LICENSE file. */ -namespace SprykerEco\Yves\CoreMedia\ApiResponse\Renderer; +namespace SprykerEco\Yves\Coremedia\ApiResponse\Renderer; -use Generated\Shared\Transfer\CoreMediaPlaceholderTransfer; +use Generated\Shared\Transfer\CoremediaPlaceholderTransfer; use Generated\Shared\Transfer\CurrentProductPriceTransfer; -use SprykerEco\Yves\CoreMedia\Dependency\Client\CoreMediaToPriceProductClientInterface; -use SprykerEco\Yves\CoreMedia\Dependency\Client\CoreMediaToPriceProductStorageClientInterface; -use SprykerEco\Yves\CoreMedia\Dependency\Client\CoreMediaToProductStorageClientInterface; -use SprykerEco\Yves\CoreMedia\Formatter\ProductPriceFormatterInterface; +use SprykerEco\Yves\Coremedia\Dependency\Client\CoremediaToPriceProductClientInterface; +use SprykerEco\Yves\Coremedia\Dependency\Client\CoremediaToPriceProductStorageClientInterface; +use SprykerEco\Yves\Coremedia\Dependency\Client\CoremediaToProductStorageClientInterface; +use SprykerEco\Yves\Coremedia\Formatter\ProductPriceFormatterInterface; class ProductPricePlaceholderReplacementRenderer implements PlaceholderReplacementRendererInterface { @@ -25,35 +25,35 @@ class ProductPricePlaceholderReplacementRenderer implements PlaceholderReplaceme protected const PRODUCT_ABSTRACT_MAPPING_TYPE = 'sku'; /** - * @var \SprykerEco\Yves\CoreMedia\Dependency\Client\CoreMediaToProductStorageClientInterface + * @var \SprykerEco\Yves\Coremedia\Dependency\Client\CoremediaToProductStorageClientInterface */ protected $productStorageClient; /** - * @var \SprykerEco\Yves\CoreMedia\Dependency\Client\CoreMediaToPriceProductStorageClientInterface + * @var \SprykerEco\Yves\Coremedia\Dependency\Client\CoremediaToPriceProductStorageClientInterface */ protected $priceProductStorageClient; /** - * @var \SprykerEco\Yves\CoreMedia\Dependency\Client\CoreMediaToPriceProductClientInterface + * @var \SprykerEco\Yves\Coremedia\Dependency\Client\CoremediaToPriceProductClientInterface */ protected $priceProductClient; /** - * @var \SprykerEco\Yves\CoreMedia\Formatter\ProductPriceFormatterInterface + * @var \SprykerEco\Yves\Coremedia\Formatter\ProductPriceFormatterInterface */ protected $productPriceFormatter; /** - * @param \SprykerEco\Yves\CoreMedia\Dependency\Client\CoreMediaToProductStorageClientInterface $productStorageClient - * @param \SprykerEco\Yves\CoreMedia\Dependency\Client\CoreMediaToPriceProductStorageClientInterface $priceProductStorageClient - * @param \SprykerEco\Yves\CoreMedia\Dependency\Client\CoreMediaToPriceProductClientInterface $priceProductClient - * @param \SprykerEco\Yves\CoreMedia\Formatter\ProductPriceFormatterInterface $productPriceFormatter + * @param \SprykerEco\Yves\Coremedia\Dependency\Client\CoremediaToProductStorageClientInterface $productStorageClient + * @param \SprykerEco\Yves\Coremedia\Dependency\Client\CoremediaToPriceProductStorageClientInterface $priceProductStorageClient + * @param \SprykerEco\Yves\Coremedia\Dependency\Client\CoremediaToPriceProductClientInterface $priceProductClient + * @param \SprykerEco\Yves\Coremedia\Formatter\ProductPriceFormatterInterface $productPriceFormatter */ public function __construct( - CoreMediaToProductStorageClientInterface $productStorageClient, - CoreMediaToPriceProductStorageClientInterface $priceProductStorageClient, - CoreMediaToPriceProductClientInterface $priceProductClient, + CoremediaToProductStorageClientInterface $productStorageClient, + CoremediaToPriceProductStorageClientInterface $priceProductStorageClient, + CoremediaToPriceProductClientInterface $priceProductClient, ProductPriceFormatterInterface $productPriceFormatter ) { $this->productStorageClient = $productStorageClient; @@ -63,24 +63,24 @@ public function __construct( } /** - * @param \Generated\Shared\Transfer\CoreMediaPlaceholderTransfer $coreMediaPlaceholderTransfer + * @param \Generated\Shared\Transfer\CoremediaPlaceholderTransfer $coreMediaPlaceholderTransfer * * @return bool */ - public function isApplicable(CoreMediaPlaceholderTransfer $coreMediaPlaceholderTransfer): bool + public function isApplicable(CoremediaPlaceholderTransfer $coreMediaPlaceholderTransfer): bool { return $coreMediaPlaceholderTransfer->getObjectType() === static::PLACEHOLDER_OBJECT_TYPE && $coreMediaPlaceholderTransfer->getRenderType() === static::PLACEHOLDER_RENDER_TYPE; } /** - * @param \Generated\Shared\Transfer\CoreMediaPlaceholderTransfer $coreMediaPlaceholderTransfer + * @param \Generated\Shared\Transfer\CoremediaPlaceholderTransfer $coreMediaPlaceholderTransfer * @param string $locale * * @return string|null */ public function getPlaceholderReplacement( - CoreMediaPlaceholderTransfer $coreMediaPlaceholderTransfer, + CoremediaPlaceholderTransfer $coreMediaPlaceholderTransfer, string $locale ): ?string { if (!$coreMediaPlaceholderTransfer->getProductId()) { @@ -117,13 +117,13 @@ public function getFallbackPlaceholderReplacement(): ?string } /** - * @param \Generated\Shared\Transfer\CoreMediaPlaceholderTransfer $coreMediaPlaceholderTransfer + * @param \Generated\Shared\Transfer\CoremediaPlaceholderTransfer $coreMediaPlaceholderTransfer * @param string $locale * * @return \Generated\Shared\Transfer\CurrentProductPriceTransfer|null */ protected function findAbstractProductPrice( - CoreMediaPlaceholderTransfer $coreMediaPlaceholderTransfer, + CoremediaPlaceholderTransfer $coreMediaPlaceholderTransfer, string $locale ): ?CurrentProductPriceTransfer { $abstractProductData = $this->productStorageClient->findProductAbstractStorageDataByMapping( @@ -143,13 +143,13 @@ protected function findAbstractProductPrice( } /** - * @param \Generated\Shared\Transfer\CoreMediaPlaceholderTransfer $coreMediaPlaceholderTransfer + * @param \Generated\Shared\Transfer\CoremediaPlaceholderTransfer $coreMediaPlaceholderTransfer * @param string $locale * * @return \Generated\Shared\Transfer\CurrentProductPriceTransfer|null */ protected function findConcreteProductPrice( - CoreMediaPlaceholderTransfer $coreMediaPlaceholderTransfer, + CoremediaPlaceholderTransfer $coreMediaPlaceholderTransfer, string $locale ): ?CurrentProductPriceTransfer { $concreteProductData = $this->productStorageClient->findProductConcreteStorageDataByMapping( diff --git a/src/SprykerEco/Yves/CoreMedia/ApiResponse/Renderer/ProductUrlPlaceholderReplacementRenderer.php b/src/SprykerEco/Yves/CoreMedia/ApiResponse/Renderer/ProductUrlPlaceholderReplacementRenderer.php index a2765d2..f2a4837 100644 --- a/src/SprykerEco/Yves/CoreMedia/ApiResponse/Renderer/ProductUrlPlaceholderReplacementRenderer.php +++ b/src/SprykerEco/Yves/CoreMedia/ApiResponse/Renderer/ProductUrlPlaceholderReplacementRenderer.php @@ -5,10 +5,10 @@ * Use of this software requires acceptance of the Evaluation License Agreement. See LICENSE file. */ -namespace SprykerEco\Yves\CoreMedia\ApiResponse\Renderer; +namespace SprykerEco\Yves\Coremedia\ApiResponse\Renderer; -use Generated\Shared\Transfer\CoreMediaPlaceholderTransfer; -use SprykerEco\Yves\CoreMedia\Dependency\Client\CoreMediaToProductStorageClientInterface; +use Generated\Shared\Transfer\CoremediaPlaceholderTransfer; +use SprykerEco\Yves\Coremedia\Dependency\Client\CoremediaToProductStorageClientInterface; class ProductUrlPlaceholderReplacementRenderer implements PlaceholderReplacementRendererInterface { @@ -19,37 +19,37 @@ class ProductUrlPlaceholderReplacementRenderer implements PlaceholderReplacement protected const PRODUCT_MAPPING_TYPE = 'sku'; /** - * @var \SprykerEco\Yves\CoreMedia\Dependency\Client\CoreMediaToProductStorageClientInterface + * @var \SprykerEco\Yves\Coremedia\Dependency\Client\CoremediaToProductStorageClientInterface */ protected $productStorageClient; /** - * @param \SprykerEco\Yves\CoreMedia\Dependency\Client\CoreMediaToProductStorageClientInterface $productStorageClient + * @param \SprykerEco\Yves\Coremedia\Dependency\Client\CoremediaToProductStorageClientInterface $productStorageClient */ - public function __construct(CoreMediaToProductStorageClientInterface $productStorageClient) + public function __construct(CoremediaToProductStorageClientInterface $productStorageClient) { $this->productStorageClient = $productStorageClient; } /** - * @param \Generated\Shared\Transfer\CoreMediaPlaceholderTransfer $coreMediaPlaceholderTransfer + * @param \Generated\Shared\Transfer\CoremediaPlaceholderTransfer $coreMediaPlaceholderTransfer * * @return bool */ - public function isApplicable(CoreMediaPlaceholderTransfer $coreMediaPlaceholderTransfer): bool + public function isApplicable(CoremediaPlaceholderTransfer $coreMediaPlaceholderTransfer): bool { return $coreMediaPlaceholderTransfer->getObjectType() === static::PLACEHOLDER_OBJECT_TYPE && $coreMediaPlaceholderTransfer->getRenderType() === static::PLACEHOLDER_RENDER_TYPE; } /** - * @param \Generated\Shared\Transfer\CoreMediaPlaceholderTransfer $coreMediaPlaceholderTransfer + * @param \Generated\Shared\Transfer\CoremediaPlaceholderTransfer $coreMediaPlaceholderTransfer * @param string $locale * * @return string|null */ public function getPlaceholderReplacement( - CoreMediaPlaceholderTransfer $coreMediaPlaceholderTransfer, + CoremediaPlaceholderTransfer $coreMediaPlaceholderTransfer, string $locale ): ?string { if (!$coreMediaPlaceholderTransfer->getProductId()) { @@ -80,13 +80,13 @@ public function getFallbackPlaceholderReplacement(): ?string } /** - * @param \Generated\Shared\Transfer\CoreMediaPlaceholderTransfer $coreMediaPlaceholderTransfer + * @param \Generated\Shared\Transfer\CoremediaPlaceholderTransfer $coreMediaPlaceholderTransfer * @param string $locale * * @return string|null */ protected function findAbstractProductUrl( - CoreMediaPlaceholderTransfer $coreMediaPlaceholderTransfer, + CoremediaPlaceholderTransfer $coreMediaPlaceholderTransfer, string $locale ): ?string { $abstractProductData = $this->productStorageClient->findProductAbstractStorageDataByMapping( @@ -99,13 +99,13 @@ protected function findAbstractProductUrl( } /** - * @param \Generated\Shared\Transfer\CoreMediaPlaceholderTransfer $coreMediaPlaceholderTransfer + * @param \Generated\Shared\Transfer\CoremediaPlaceholderTransfer $coreMediaPlaceholderTransfer * @param string $locale * * @return string|null */ protected function findConcreteProductUrl( - CoreMediaPlaceholderTransfer $coreMediaPlaceholderTransfer, + CoremediaPlaceholderTransfer $coreMediaPlaceholderTransfer, string $locale ): ?string { $concreteProductData = $this->productStorageClient->findProductConcreteStorageDataByMapping( diff --git a/src/SprykerEco/Yves/CoreMedia/ApiResponse/Replacer/Metadata/DescriptionMetadataReplacer.php b/src/SprykerEco/Yves/CoreMedia/ApiResponse/Replacer/Metadata/DescriptionMetadataReplacer.php index 7e4a0b8..390b73b 100644 --- a/src/SprykerEco/Yves/CoreMedia/ApiResponse/Replacer/Metadata/DescriptionMetadataReplacer.php +++ b/src/SprykerEco/Yves/CoreMedia/ApiResponse/Replacer/Metadata/DescriptionMetadataReplacer.php @@ -5,32 +5,32 @@ * Use of this software requires acceptance of the Evaluation License Agreement. See LICENSE file. */ -namespace SprykerEco\Yves\CoreMedia\ApiResponse\Replacer\Metadata; +namespace SprykerEco\Yves\Coremedia\ApiResponse\Replacer\Metadata; -use Generated\Shared\Transfer\CoreMediaPlaceholderTransfer; -use SprykerEco\Yves\CoreMedia\CoreMediaConfig; +use Generated\Shared\Transfer\CoremediaPlaceholderTransfer; +use SprykerEco\Yves\Coremedia\CoremediaConfig; class DescriptionMetadataReplacer implements MetadataReplacerInterface { /** - * @var \SprykerEco\Yves\CoreMedia\CoreMediaConfig + * @var \SprykerEco\Yves\Coremedia\CoremediaConfig */ protected $config; /** - * @param \SprykerEco\Yves\CoreMedia\CoreMediaConfig $config + * @param \SprykerEco\Yves\Coremedia\CoremediaConfig $config */ - public function __construct(CoreMediaConfig $config) + public function __construct(CoremediaConfig $config) { $this->config = $config; } /** - * @param \Generated\Shared\Transfer\CoreMediaPlaceholderTransfer $coreMediaPlaceholderTransfer + * @param \Generated\Shared\Transfer\CoremediaPlaceholderTransfer $coreMediaPlaceholderTransfer * * @return string */ - public function replaceMetaTag(CoreMediaPlaceholderTransfer $coreMediaPlaceholderTransfer): string + public function replaceMetaTag(CoremediaPlaceholderTransfer $coreMediaPlaceholderTransfer): string { if ($coreMediaPlaceholderTransfer->getDescription() === null) { return ''; @@ -38,7 +38,7 @@ public function replaceMetaTag(CoreMediaPlaceholderTransfer $coreMediaPlaceholde return sprintf( $this->config->getMetaTagFormat(), - CoreMediaPlaceholderTransfer::DESCRIPTION, + CoremediaPlaceholderTransfer::DESCRIPTION, htmlentities($coreMediaPlaceholderTransfer->getDescription()) ); } diff --git a/src/SprykerEco/Yves/CoreMedia/ApiResponse/Replacer/Metadata/KeywordsMetadataReplacer.php b/src/SprykerEco/Yves/CoreMedia/ApiResponse/Replacer/Metadata/KeywordsMetadataReplacer.php index 457e9c6..626ed91 100644 --- a/src/SprykerEco/Yves/CoreMedia/ApiResponse/Replacer/Metadata/KeywordsMetadataReplacer.php +++ b/src/SprykerEco/Yves/CoreMedia/ApiResponse/Replacer/Metadata/KeywordsMetadataReplacer.php @@ -5,32 +5,32 @@ * Use of this software requires acceptance of the Evaluation License Agreement. See LICENSE file. */ -namespace SprykerEco\Yves\CoreMedia\ApiResponse\Replacer\Metadata; +namespace SprykerEco\Yves\Coremedia\ApiResponse\Replacer\Metadata; -use Generated\Shared\Transfer\CoreMediaPlaceholderTransfer; -use SprykerEco\Yves\CoreMedia\CoreMediaConfig; +use Generated\Shared\Transfer\CoremediaPlaceholderTransfer; +use SprykerEco\Yves\Coremedia\CoremediaConfig; class KeywordsMetadataReplacer implements MetadataReplacerInterface { /** - * @var \SprykerEco\Yves\CoreMedia\CoreMediaConfig + * @var \SprykerEco\Yves\Coremedia\CoremediaConfig */ protected $config; /** - * @param \SprykerEco\Yves\CoreMedia\CoreMediaConfig $config + * @param \SprykerEco\Yves\Coremedia\CoremediaConfig $config */ - public function __construct(CoreMediaConfig $config) + public function __construct(CoremediaConfig $config) { $this->config = $config; } /** - * @param \Generated\Shared\Transfer\CoreMediaPlaceholderTransfer $coreMediaPlaceholderTransfer + * @param \Generated\Shared\Transfer\CoremediaPlaceholderTransfer $coreMediaPlaceholderTransfer * * @return string */ - public function replaceMetaTag(CoreMediaPlaceholderTransfer $coreMediaPlaceholderTransfer): string + public function replaceMetaTag(CoremediaPlaceholderTransfer $coreMediaPlaceholderTransfer): string { if ($coreMediaPlaceholderTransfer->getKeywords() === null) { return ''; @@ -38,7 +38,7 @@ public function replaceMetaTag(CoreMediaPlaceholderTransfer $coreMediaPlaceholde return sprintf( $this->config->getMetaTagFormat(), - CoreMediaPlaceholderTransfer::KEYWORDS, + CoremediaPlaceholderTransfer::KEYWORDS, htmlentities($coreMediaPlaceholderTransfer->getKeywords()) ); } diff --git a/src/SprykerEco/Yves/CoreMedia/ApiResponse/Replacer/Metadata/MetadataReplacerInterface.php b/src/SprykerEco/Yves/CoreMedia/ApiResponse/Replacer/Metadata/MetadataReplacerInterface.php index 48912ac..09e288a 100644 --- a/src/SprykerEco/Yves/CoreMedia/ApiResponse/Replacer/Metadata/MetadataReplacerInterface.php +++ b/src/SprykerEco/Yves/CoreMedia/ApiResponse/Replacer/Metadata/MetadataReplacerInterface.php @@ -5,16 +5,16 @@ * Use of this software requires acceptance of the Evaluation License Agreement. See LICENSE file. */ -namespace SprykerEco\Yves\CoreMedia\ApiResponse\Replacer\Metadata; +namespace SprykerEco\Yves\Coremedia\ApiResponse\Replacer\Metadata; -use Generated\Shared\Transfer\CoreMediaPlaceholderTransfer; +use Generated\Shared\Transfer\CoremediaPlaceholderTransfer; interface MetadataReplacerInterface { /** - * @param \Generated\Shared\Transfer\CoreMediaPlaceholderTransfer $coreMediaPlaceholderTransfer + * @param \Generated\Shared\Transfer\CoremediaPlaceholderTransfer $coreMediaPlaceholderTransfer * * @return string */ - public function replaceMetaTag(CoreMediaPlaceholderTransfer $coreMediaPlaceholderTransfer): string; + public function replaceMetaTag(CoremediaPlaceholderTransfer $coreMediaPlaceholderTransfer): string; } diff --git a/src/SprykerEco/Yves/CoreMedia/ApiResponse/Replacer/Metadata/PageNameMetadataReplacer.php b/src/SprykerEco/Yves/CoreMedia/ApiResponse/Replacer/Metadata/PageNameMetadataReplacer.php index a775966..b660049 100644 --- a/src/SprykerEco/Yves/CoreMedia/ApiResponse/Replacer/Metadata/PageNameMetadataReplacer.php +++ b/src/SprykerEco/Yves/CoreMedia/ApiResponse/Replacer/Metadata/PageNameMetadataReplacer.php @@ -5,32 +5,32 @@ * Use of this software requires acceptance of the Evaluation License Agreement. See LICENSE file. */ -namespace SprykerEco\Yves\CoreMedia\ApiResponse\Replacer\Metadata; +namespace SprykerEco\Yves\Coremedia\ApiResponse\Replacer\Metadata; -use Generated\Shared\Transfer\CoreMediaPlaceholderTransfer; -use SprykerEco\Yves\CoreMedia\CoreMediaConfig; +use Generated\Shared\Transfer\CoremediaPlaceholderTransfer; +use SprykerEco\Yves\Coremedia\CoremediaConfig; class PageNameMetadataReplacer implements MetadataReplacerInterface { /** - * @var \SprykerEco\Yves\CoreMedia\CoreMediaConfig + * @var \SprykerEco\Yves\Coremedia\CoremediaConfig */ protected $config; /** - * @param \SprykerEco\Yves\CoreMedia\CoreMediaConfig $config + * @param \SprykerEco\Yves\Coremedia\CoremediaConfig $config */ - public function __construct(CoreMediaConfig $config) + public function __construct(CoremediaConfig $config) { $this->config = $config; } /** - * @param \Generated\Shared\Transfer\CoreMediaPlaceholderTransfer $coreMediaPlaceholderTransfer + * @param \Generated\Shared\Transfer\CoremediaPlaceholderTransfer $coreMediaPlaceholderTransfer * * @return string */ - public function replaceMetaTag(CoreMediaPlaceholderTransfer $coreMediaPlaceholderTransfer): string + public function replaceMetaTag(CoremediaPlaceholderTransfer $coreMediaPlaceholderTransfer): string { if ($coreMediaPlaceholderTransfer->getPageName() === null) { return ''; @@ -38,7 +38,7 @@ public function replaceMetaTag(CoreMediaPlaceholderTransfer $coreMediaPlaceholde return sprintf( $this->config->getMetaTagFormat(), - CoreMediaPlaceholderTransfer::PAGE_NAME, + CoremediaPlaceholderTransfer::PAGE_NAME, htmlentities($coreMediaPlaceholderTransfer->getPageName()) ); } diff --git a/src/SprykerEco/Yves/CoreMedia/ApiResponse/Replacer/Metadata/TitleMetadataReplacer.php b/src/SprykerEco/Yves/CoreMedia/ApiResponse/Replacer/Metadata/TitleMetadataReplacer.php index d0a45da..db3bf44 100644 --- a/src/SprykerEco/Yves/CoreMedia/ApiResponse/Replacer/Metadata/TitleMetadataReplacer.php +++ b/src/SprykerEco/Yves/CoreMedia/ApiResponse/Replacer/Metadata/TitleMetadataReplacer.php @@ -5,32 +5,32 @@ * Use of this software requires acceptance of the Evaluation License Agreement. See LICENSE file. */ -namespace SprykerEco\Yves\CoreMedia\ApiResponse\Replacer\Metadata; +namespace SprykerEco\Yves\Coremedia\ApiResponse\Replacer\Metadata; -use Generated\Shared\Transfer\CoreMediaPlaceholderTransfer; -use SprykerEco\Yves\CoreMedia\CoreMediaConfig; +use Generated\Shared\Transfer\CoremediaPlaceholderTransfer; +use SprykerEco\Yves\Coremedia\CoremediaConfig; class TitleMetadataReplacer implements MetadataReplacerInterface { /** - * @var \SprykerEco\Yves\CoreMedia\CoreMediaConfig + * @var \SprykerEco\Yves\Coremedia\CoremediaConfig */ protected $config; /** - * @param \SprykerEco\Yves\CoreMedia\CoreMediaConfig $config + * @param \SprykerEco\Yves\Coremedia\CoremediaConfig $config */ - public function __construct(CoreMediaConfig $config) + public function __construct(CoremediaConfig $config) { $this->config = $config; } /** - * @param \Generated\Shared\Transfer\CoreMediaPlaceholderTransfer $coreMediaPlaceholderTransfer + * @param \Generated\Shared\Transfer\CoremediaPlaceholderTransfer $coreMediaPlaceholderTransfer * * @return string */ - public function replaceMetaTag(CoreMediaPlaceholderTransfer $coreMediaPlaceholderTransfer): string + public function replaceMetaTag(CoremediaPlaceholderTransfer $coreMediaPlaceholderTransfer): string { if ($coreMediaPlaceholderTransfer->getTitle() === null) { return ''; @@ -38,7 +38,7 @@ public function replaceMetaTag(CoreMediaPlaceholderTransfer $coreMediaPlaceholde return sprintf( $this->config->getMetaTagFormat(), - CoreMediaPlaceholderTransfer::TITLE, + CoremediaPlaceholderTransfer::TITLE, htmlentities($coreMediaPlaceholderTransfer->getTitle()) ); } diff --git a/src/SprykerEco/Yves/CoreMedia/ApiResponse/Replacer/PlaceholderReplacer.php b/src/SprykerEco/Yves/CoreMedia/ApiResponse/Replacer/PlaceholderReplacer.php index 3d4a35e..19fdab7 100644 --- a/src/SprykerEco/Yves/CoreMedia/ApiResponse/Replacer/PlaceholderReplacer.php +++ b/src/SprykerEco/Yves/CoreMedia/ApiResponse/Replacer/PlaceholderReplacer.php @@ -5,19 +5,19 @@ * Use of this software requires acceptance of the Evaluation License Agreement. See LICENSE file. */ -namespace SprykerEco\Yves\CoreMedia\ApiResponse\Replacer; +namespace SprykerEco\Yves\Coremedia\ApiResponse\Replacer; -use Generated\Shared\Transfer\CoreMediaPlaceholderTransfer; +use Generated\Shared\Transfer\CoremediaPlaceholderTransfer; class PlaceholderReplacer implements PlaceholderReplacerInterface { /** * @param string $content - * @param \Generated\Shared\Transfer\CoreMediaPlaceholderTransfer $coreMediaPlaceholderTransfer + * @param \Generated\Shared\Transfer\CoremediaPlaceholderTransfer $coreMediaPlaceholderTransfer * * @return string */ - public function replace(string $content, CoreMediaPlaceholderTransfer $coreMediaPlaceholderTransfer): string + public function replace(string $content, CoremediaPlaceholderTransfer $coreMediaPlaceholderTransfer): string { if ($coreMediaPlaceholderTransfer->getPlaceholderReplacement() === null) { return $content; diff --git a/src/SprykerEco/Yves/CoreMedia/ApiResponse/Replacer/PlaceholderReplacerInterface.php b/src/SprykerEco/Yves/CoreMedia/ApiResponse/Replacer/PlaceholderReplacerInterface.php index 6c781af..e93fcaf 100644 --- a/src/SprykerEco/Yves/CoreMedia/ApiResponse/Replacer/PlaceholderReplacerInterface.php +++ b/src/SprykerEco/Yves/CoreMedia/ApiResponse/Replacer/PlaceholderReplacerInterface.php @@ -5,17 +5,17 @@ * Use of this software requires acceptance of the Evaluation License Agreement. See LICENSE file. */ -namespace SprykerEco\Yves\CoreMedia\ApiResponse\Replacer; +namespace SprykerEco\Yves\Coremedia\ApiResponse\Replacer; -use Generated\Shared\Transfer\CoreMediaPlaceholderTransfer; +use Generated\Shared\Transfer\CoremediaPlaceholderTransfer; interface PlaceholderReplacerInterface { /** * @param string $content - * @param \Generated\Shared\Transfer\CoreMediaPlaceholderTransfer $coreMediaPlaceholderTransfer + * @param \Generated\Shared\Transfer\CoremediaPlaceholderTransfer $coreMediaPlaceholderTransfer * * @return string */ - public function replace(string $content, CoreMediaPlaceholderTransfer $coreMediaPlaceholderTransfer): string; + public function replace(string $content, CoremediaPlaceholderTransfer $coreMediaPlaceholderTransfer): string; } diff --git a/src/SprykerEco/Yves/CoreMedia/ApiResponse/Resolver/ApiResponseResolverInterface.php b/src/SprykerEco/Yves/CoreMedia/ApiResponse/Resolver/ApiResponseResolverInterface.php index 90fefb1..6654f3f 100644 --- a/src/SprykerEco/Yves/CoreMedia/ApiResponse/Resolver/ApiResponseResolverInterface.php +++ b/src/SprykerEco/Yves/CoreMedia/ApiResponse/Resolver/ApiResponseResolverInterface.php @@ -5,20 +5,20 @@ * Use of this software requires acceptance of the Evaluation License Agreement. See LICENSE file. */ -namespace SprykerEco\Yves\CoreMedia\ApiResponse\Resolver; +namespace SprykerEco\Yves\Coremedia\ApiResponse\Resolver; -use Generated\Shared\Transfer\CoreMediaApiResponseTransfer; +use Generated\Shared\Transfer\CoremediaApiResponseTransfer; interface ApiResponseResolverInterface { /** - * @param \Generated\Shared\Transfer\CoreMediaApiResponseTransfer $coreMediaApiResponseTransfer + * @param \Generated\Shared\Transfer\CoremediaApiResponseTransfer $coreMediaApiResponseTransfer * @param string $locale * - * @return \Generated\Shared\Transfer\CoreMediaApiResponseTransfer + * @return \Generated\Shared\Transfer\CoremediaApiResponseTransfer */ public function resolve( - CoreMediaApiResponseTransfer $coreMediaApiResponseTransfer, + CoremediaApiResponseTransfer $coreMediaApiResponseTransfer, string $locale - ): CoreMediaApiResponseTransfer; + ): CoremediaApiResponseTransfer; } diff --git a/src/SprykerEco/Yves/CoreMedia/ApiResponse/Resolver/PlaceholderResolver.php b/src/SprykerEco/Yves/CoreMedia/ApiResponse/Resolver/PlaceholderResolver.php index 8ebcc59..2c31126 100644 --- a/src/SprykerEco/Yves/CoreMedia/ApiResponse/Resolver/PlaceholderResolver.php +++ b/src/SprykerEco/Yves/CoreMedia/ApiResponse/Resolver/PlaceholderResolver.php @@ -5,34 +5,34 @@ * Use of this software requires acceptance of the Evaluation License Agreement. See LICENSE file. */ -namespace SprykerEco\Yves\CoreMedia\ApiResponse\Resolver; +namespace SprykerEco\Yves\Coremedia\ApiResponse\Resolver; -use Generated\Shared\Transfer\CoreMediaApiResponseTransfer; -use SprykerEco\Yves\CoreMedia\ApiResponse\Parser\PlaceholderParserInterface; -use SprykerEco\Yves\CoreMedia\ApiResponse\PostProcessor\PlaceholderPostProcessorInterface; -use SprykerEco\Yves\CoreMedia\ApiResponse\Replacer\PlaceholderReplacerInterface; +use Generated\Shared\Transfer\CoremediaApiResponseTransfer; +use SprykerEco\Yves\Coremedia\ApiResponse\Parser\PlaceholderParserInterface; +use SprykerEco\Yves\Coremedia\ApiResponse\PostProcessor\PlaceholderPostProcessorInterface; +use SprykerEco\Yves\Coremedia\ApiResponse\Replacer\PlaceholderReplacerInterface; class PlaceholderResolver implements ApiResponseResolverInterface { /** - * @var \SprykerEco\Yves\CoreMedia\ApiResponse\Parser\PlaceholderParserInterface + * @var \SprykerEco\Yves\Coremedia\ApiResponse\Parser\PlaceholderParserInterface */ protected $placeholderParser; /** - * @var \SprykerEco\Yves\CoreMedia\ApiResponse\PostProcessor\PlaceholderPostProcessorInterface + * @var \SprykerEco\Yves\Coremedia\ApiResponse\PostProcessor\PlaceholderPostProcessorInterface */ protected $placeholderPostProcessor; /** - * @var \SprykerEco\Yves\CoreMedia\ApiResponse\Replacer\PlaceholderReplacerInterface + * @var \SprykerEco\Yves\Coremedia\ApiResponse\Replacer\PlaceholderReplacerInterface */ protected $placeholderReplacer; /** - * @param \SprykerEco\Yves\CoreMedia\ApiResponse\Parser\PlaceholderParserInterface $placeholderParser - * @param \SprykerEco\Yves\CoreMedia\ApiResponse\PostProcessor\PlaceholderPostProcessorInterface $placeholderPostProcessor - * @param \SprykerEco\Yves\CoreMedia\ApiResponse\Replacer\PlaceholderReplacerInterface $placeholderReplacer + * @param \SprykerEco\Yves\Coremedia\ApiResponse\Parser\PlaceholderParserInterface $placeholderParser + * @param \SprykerEco\Yves\Coremedia\ApiResponse\PostProcessor\PlaceholderPostProcessorInterface $placeholderPostProcessor + * @param \SprykerEco\Yves\Coremedia\ApiResponse\Replacer\PlaceholderReplacerInterface $placeholderReplacer */ public function __construct( PlaceholderParserInterface $placeholderParser, @@ -45,15 +45,15 @@ public function __construct( } /** - * @param \Generated\Shared\Transfer\CoreMediaApiResponseTransfer $coreMediaApiResponseTransfer + * @param \Generated\Shared\Transfer\CoremediaApiResponseTransfer $coreMediaApiResponseTransfer * @param string $locale * - * @return \Generated\Shared\Transfer\CoreMediaApiResponseTransfer + * @return \Generated\Shared\Transfer\CoremediaApiResponseTransfer */ public function resolve( - CoreMediaApiResponseTransfer $coreMediaApiResponseTransfer, + CoremediaApiResponseTransfer $coreMediaApiResponseTransfer, string $locale - ): CoreMediaApiResponseTransfer { + ): CoremediaApiResponseTransfer { $coreMediaPlaceholderTransfers = $this->placeholderParser->parse($coreMediaApiResponseTransfer->getData()); if (!$coreMediaPlaceholderTransfers) { diff --git a/src/SprykerEco/Yves/CoreMedia/CoreMediaConfig.php b/src/SprykerEco/Yves/CoreMedia/CoremediaConfig.php similarity index 73% rename from src/SprykerEco/Yves/CoreMedia/CoreMediaConfig.php rename to src/SprykerEco/Yves/CoreMedia/CoremediaConfig.php index 892212e..718a312 100644 --- a/src/SprykerEco/Yves/CoreMedia/CoreMediaConfig.php +++ b/src/SprykerEco/Yves/CoreMedia/CoremediaConfig.php @@ -5,15 +5,15 @@ * Use of this software requires acceptance of the Evaluation License Agreement. See LICENSE file. */ -namespace SprykerEco\Yves\CoreMedia; +namespace SprykerEco\Yves\Coremedia; use Spryker\Yves\Kernel\AbstractBundleConfig; -use SprykerEco\Shared\CoreMedia\CoreMediaConfig as SharedCoreMediaConfig; +use SprykerEco\Shared\Coremedia\CoremediaConfig as SharedCoremediaConfig; /** - * @method \SprykerEco\Shared\CoreMedia\CoreMediaConfig getSharedConfig() + * @method \SprykerEco\Shared\Coremedia\CoremediaConfig getSharedConfig() */ -class CoreMediaConfig extends AbstractBundleConfig +class CoremediaConfig extends AbstractBundleConfig { /** * @return bool @@ -28,7 +28,7 @@ public function isDebugModeEnabled(): bool */ public function getPlaceholderPattern(): string { - return '/(?:(?:<|<)!--CM\s*)(?P<' . SharedCoreMediaConfig::PREG_MATCH_PLACEHOLDER_KEY . '>(?:(?!CM--(>|>)).|\s)*)(?:\s*\CM--(?:>|>))/i'; + return '/(?:(?:<|<)!--CM\s*)(?P<' . SharedCoremediaConfig::PREG_MATCH_PLACEHOLDER_KEY . '>(?:(?!CM--(>|>)).|\s)*)(?:\s*\CM--(?:>|>))/i'; } /** diff --git a/src/SprykerEco/Yves/CoreMedia/CoreMediaDependencyProvider.php b/src/SprykerEco/Yves/CoreMedia/CoremediaDependencyProvider.php similarity index 84% rename from src/SprykerEco/Yves/CoreMedia/CoreMediaDependencyProvider.php rename to src/SprykerEco/Yves/CoreMedia/CoremediaDependencyProvider.php index 80522f2..6b14c63 100644 --- a/src/SprykerEco/Yves/CoreMedia/CoreMediaDependencyProvider.php +++ b/src/SprykerEco/Yves/CoreMedia/CoremediaDependencyProvider.php @@ -5,19 +5,19 @@ * Use of this software requires acceptance of the Evaluation License Agreement. See LICENSE file. */ -namespace SprykerEco\Yves\CoreMedia; +namespace SprykerEco\Yves\Coremedia; use Spryker\Yves\Kernel\AbstractBundleDependencyProvider; use Spryker\Yves\Kernel\Container; use Spryker\Yves\Kernel\Plugin\Pimple; -use SprykerEco\Yves\CoreMedia\Dependency\Client\CoreMediaToCategoryStorageClientBridge; -use SprykerEco\Yves\CoreMedia\Dependency\Client\CoreMediaToMoneyClientBridge; -use SprykerEco\Yves\CoreMedia\Dependency\Client\CoreMediaToPriceProductClientBridge; -use SprykerEco\Yves\CoreMedia\Dependency\Client\CoreMediaToPriceProductStorageClientBridge; -use SprykerEco\Yves\CoreMedia\Dependency\Client\CoreMediaToProductStorageClientBridge; -use SprykerEco\Yves\CoreMedia\Dependency\Service\CoreMediaToUtilEncodingServiceBridge; - -class CoreMediaDependencyProvider extends AbstractBundleDependencyProvider +use SprykerEco\Yves\Coremedia\Dependency\Client\CoremediaToCategoryStorageClientBridge; +use SprykerEco\Yves\Coremedia\Dependency\Client\CoremediaToMoneyClientBridge; +use SprykerEco\Yves\Coremedia\Dependency\Client\CoremediaToPriceProductClientBridge; +use SprykerEco\Yves\Coremedia\Dependency\Client\CoremediaToPriceProductStorageClientBridge; +use SprykerEco\Yves\Coremedia\Dependency\Client\CoremediaToProductStorageClientBridge; +use SprykerEco\Yves\Coremedia\Dependency\Service\CoremediaToUtilEncodingServiceBridge; + +class CoremediaDependencyProvider extends AbstractBundleDependencyProvider { public const CLIENT_PRODUCT_STORAGE = 'CLIENT_PRODUCT_STORAGE'; public const CLIENT_CATEGORY_STORAGE = 'CLIENT_CATEGORY_STORAGE'; @@ -55,7 +55,7 @@ public function provideDependencies(Container $container): Container protected function addUtilEncodingService(Container $container): Container { $container->set(static::SERVICE_UTIL_ENCODING, function (Container $container) { - return new CoreMediaToUtilEncodingServiceBridge( + return new CoremediaToUtilEncodingServiceBridge( $container->getLocator()->utilEncoding()->service() ); }); @@ -71,7 +71,7 @@ protected function addUtilEncodingService(Container $container): Container protected function addProductStorageClient(Container $container): Container { $container->set(static::CLIENT_PRODUCT_STORAGE, function (Container $container) { - return new CoreMediaToProductStorageClientBridge( + return new CoremediaToProductStorageClientBridge( $container->getLocator()->productStorage()->client() ); }); @@ -87,7 +87,7 @@ protected function addProductStorageClient(Container $container): Container protected function addCategoryStorageClient(Container $container): Container { $container->set(static::CLIENT_CATEGORY_STORAGE, function (Container $container) { - return new CoreMediaToCategoryStorageClientBridge( + return new CoremediaToCategoryStorageClientBridge( $container->getLocator()->categoryStorage()->client() ); }); @@ -103,7 +103,7 @@ protected function addCategoryStorageClient(Container $container): Container protected function addPriceProductStorageClient(Container $container): Container { $container->set(static::CLIENT_PRICE_PRODUCT_STORAGE, function (Container $container) { - return new CoreMediaToPriceProductStorageClientBridge( + return new CoremediaToPriceProductStorageClientBridge( $container->getLocator()->priceProductStorage()->client() ); }); @@ -119,7 +119,7 @@ protected function addPriceProductStorageClient(Container $container): Container protected function addPriceProductClient(Container $container): Container { $container->set(static::CLIENT_PRICE_PRODUCT, function (Container $container) { - return new CoreMediaToPriceProductClientBridge( + return new CoremediaToPriceProductClientBridge( $container->getLocator()->priceProduct()->client() ); }); @@ -135,7 +135,7 @@ protected function addPriceProductClient(Container $container): Container protected function addMoneyClient(Container $container): Container { $container->set(static::CLIENT_MONEY, function (Container $container) { - return new CoreMediaToMoneyClientBridge( + return new CoremediaToMoneyClientBridge( $container->getLocator()->money()->client() ); }); diff --git a/src/SprykerEco/Yves/CoreMedia/CoreMediaFactory.php b/src/SprykerEco/Yves/CoreMedia/CoremediaFactory.php similarity index 58% rename from src/SprykerEco/Yves/CoreMedia/CoreMediaFactory.php rename to src/SprykerEco/Yves/CoreMedia/CoremediaFactory.php index 501fad1..367a0c3 100644 --- a/src/SprykerEco/Yves/CoreMedia/CoreMediaFactory.php +++ b/src/SprykerEco/Yves/CoreMedia/CoremediaFactory.php @@ -5,54 +5,54 @@ * Use of this software requires acceptance of the Evaluation License Agreement. See LICENSE file. */ -namespace SprykerEco\Yves\CoreMedia; +namespace SprykerEco\Yves\Coremedia; use Spryker\Yves\Kernel\AbstractFactory; -use SprykerEco\Yves\CoreMedia\ApiResponse\ApiResponsePreparator; -use SprykerEco\Yves\CoreMedia\ApiResponse\ApiResponsePreparatorInterface; -use SprykerEco\Yves\CoreMedia\ApiResponse\Executor\IncorrectPlaceholderDataExecutor; -use SprykerEco\Yves\CoreMedia\ApiResponse\Executor\IncorrectPlaceholderDataExecutorInterface; -use SprykerEco\Yves\CoreMedia\ApiResponse\Parser\PlaceholderParser; -use SprykerEco\Yves\CoreMedia\ApiResponse\Parser\PlaceholderParserInterface; -use SprykerEco\Yves\CoreMedia\ApiResponse\PostProcessor\PlaceholderPostProcessor; -use SprykerEco\Yves\CoreMedia\ApiResponse\PostProcessor\PlaceholderPostProcessorInterface; -use SprykerEco\Yves\CoreMedia\ApiResponse\Renderer\CategoryUrlPlaceholderReplacementRenderer; -use SprykerEco\Yves\CoreMedia\ApiResponse\Renderer\CustomPageUrlPlaceholderReplacementRenderer; -use SprykerEco\Yves\CoreMedia\ApiResponse\Renderer\PageMetadataPlaceholderReplacementRenderer; -use SprykerEco\Yves\CoreMedia\ApiResponse\Renderer\PlaceholderReplacementRendererInterface; -use SprykerEco\Yves\CoreMedia\ApiResponse\Renderer\ProductPricePlaceholderReplacementRenderer; -use SprykerEco\Yves\CoreMedia\ApiResponse\Renderer\ProductUrlPlaceholderReplacementRenderer; -use SprykerEco\Yves\CoreMedia\ApiResponse\Replacer\Metadata\DescriptionMetadataReplacer; -use SprykerEco\Yves\CoreMedia\ApiResponse\Replacer\Metadata\KeywordsMetadataReplacer; -use SprykerEco\Yves\CoreMedia\ApiResponse\Replacer\Metadata\MetadataReplacerInterface; -use SprykerEco\Yves\CoreMedia\ApiResponse\Replacer\Metadata\PageNameMetadataReplacer; -use SprykerEco\Yves\CoreMedia\ApiResponse\Replacer\Metadata\TitleMetadataReplacer; -use SprykerEco\Yves\CoreMedia\ApiResponse\Replacer\PlaceholderReplacer; -use SprykerEco\Yves\CoreMedia\ApiResponse\Replacer\PlaceholderReplacerInterface; -use SprykerEco\Yves\CoreMedia\ApiResponse\Resolver\ApiResponseResolverInterface; -use SprykerEco\Yves\CoreMedia\ApiResponse\Resolver\PlaceholderResolver; -use SprykerEco\Yves\CoreMedia\Dependency\Client\CoreMediaToCategoryStorageClientInterface; -use SprykerEco\Yves\CoreMedia\Dependency\Client\CoreMediaToMoneyClientInterface; -use SprykerEco\Yves\CoreMedia\Dependency\Client\CoreMediaToPriceProductClientInterface; -use SprykerEco\Yves\CoreMedia\Dependency\Client\CoreMediaToPriceProductStorageClientInterface; -use SprykerEco\Yves\CoreMedia\Dependency\Client\CoreMediaToProductStorageClientInterface; -use SprykerEco\Yves\CoreMedia\Dependency\Service\CoreMediaToUtilEncodingServiceInterface; -use SprykerEco\Yves\CoreMedia\Formatter\ProductPriceFormatter; -use SprykerEco\Yves\CoreMedia\Formatter\ProductPriceFormatterInterface; -use SprykerEco\Yves\CoreMedia\Mapper\ApiContextMapper; -use SprykerEco\Yves\CoreMedia\Mapper\ApiContextMapperInterface; -use SprykerEco\Yves\CoreMedia\Reader\CmsSlotContent\CmsSlotContentReader; -use SprykerEco\Yves\CoreMedia\Reader\CmsSlotContent\CmsSlotContentReaderInterface; +use SprykerEco\Yves\Coremedia\ApiResponse\ApiResponsePreparator; +use SprykerEco\Yves\Coremedia\ApiResponse\ApiResponsePreparatorInterface; +use SprykerEco\Yves\Coremedia\ApiResponse\Executor\IncorrectPlaceholderDataExecutor; +use SprykerEco\Yves\Coremedia\ApiResponse\Executor\IncorrectPlaceholderDataExecutorInterface; +use SprykerEco\Yves\Coremedia\ApiResponse\Parser\PlaceholderParser; +use SprykerEco\Yves\Coremedia\ApiResponse\Parser\PlaceholderParserInterface; +use SprykerEco\Yves\Coremedia\ApiResponse\PostProcessor\PlaceholderPostProcessor; +use SprykerEco\Yves\Coremedia\ApiResponse\PostProcessor\PlaceholderPostProcessorInterface; +use SprykerEco\Yves\Coremedia\ApiResponse\Renderer\CategoryUrlPlaceholderReplacementRenderer; +use SprykerEco\Yves\Coremedia\ApiResponse\Renderer\CustomPageUrlPlaceholderReplacementRenderer; +use SprykerEco\Yves\Coremedia\ApiResponse\Renderer\PageMetadataPlaceholderReplacementRenderer; +use SprykerEco\Yves\Coremedia\ApiResponse\Renderer\PlaceholderReplacementRendererInterface; +use SprykerEco\Yves\Coremedia\ApiResponse\Renderer\ProductPricePlaceholderReplacementRenderer; +use SprykerEco\Yves\Coremedia\ApiResponse\Renderer\ProductUrlPlaceholderReplacementRenderer; +use SprykerEco\Yves\Coremedia\ApiResponse\Replacer\Metadata\DescriptionMetadataReplacer; +use SprykerEco\Yves\Coremedia\ApiResponse\Replacer\Metadata\KeywordsMetadataReplacer; +use SprykerEco\Yves\Coremedia\ApiResponse\Replacer\Metadata\MetadataReplacerInterface; +use SprykerEco\Yves\Coremedia\ApiResponse\Replacer\Metadata\PageNameMetadataReplacer; +use SprykerEco\Yves\Coremedia\ApiResponse\Replacer\Metadata\TitleMetadataReplacer; +use SprykerEco\Yves\Coremedia\ApiResponse\Replacer\PlaceholderReplacer; +use SprykerEco\Yves\Coremedia\ApiResponse\Replacer\PlaceholderReplacerInterface; +use SprykerEco\Yves\Coremedia\ApiResponse\Resolver\ApiResponseResolverInterface; +use SprykerEco\Yves\Coremedia\ApiResponse\Resolver\PlaceholderResolver; +use SprykerEco\Yves\Coremedia\Dependency\Client\CoremediaToCategoryStorageClientInterface; +use SprykerEco\Yves\Coremedia\Dependency\Client\CoremediaToMoneyClientInterface; +use SprykerEco\Yves\Coremedia\Dependency\Client\CoremediaToPriceProductClientInterface; +use SprykerEco\Yves\Coremedia\Dependency\Client\CoremediaToPriceProductStorageClientInterface; +use SprykerEco\Yves\Coremedia\Dependency\Client\CoremediaToProductStorageClientInterface; +use SprykerEco\Yves\Coremedia\Dependency\Service\CoremediaToUtilEncodingServiceInterface; +use SprykerEco\Yves\Coremedia\Formatter\ProductPriceFormatter; +use SprykerEco\Yves\Coremedia\Formatter\ProductPriceFormatterInterface; +use SprykerEco\Yves\Coremedia\Mapper\ApiContextMapper; +use SprykerEco\Yves\Coremedia\Mapper\ApiContextMapperInterface; +use SprykerEco\Yves\Coremedia\Reader\CmsSlotContent\CmsSlotContentReader; +use SprykerEco\Yves\Coremedia\Reader\CmsSlotContent\CmsSlotContentReaderInterface; use Symfony\Component\Routing\Generator\UrlGeneratorInterface; /** - * @method \SprykerEco\Yves\CoreMedia\CoreMediaConfig getConfig() - * @method \SprykerEco\Client\CoreMedia\CoreMediaClientInterface getClient() + * @method \SprykerEco\Yves\Coremedia\CoremediaConfig getConfig() + * @method \SprykerEco\Client\Coremedia\CoremediaClientInterface getClient() */ -class CoreMediaFactory extends AbstractFactory +class CoremediaFactory extends AbstractFactory { /** - * @return \SprykerEco\Yves\CoreMedia\Reader\CmsSlotContent\CmsSlotContentReaderInterface + * @return \SprykerEco\Yves\Coremedia\Reader\CmsSlotContent\CmsSlotContentReaderInterface */ public function createCmsSlotContentReader(): CmsSlotContentReaderInterface { @@ -64,7 +64,7 @@ public function createCmsSlotContentReader(): CmsSlotContentReaderInterface } /** - * @return \SprykerEco\Yves\CoreMedia\Mapper\ApiContextMapperInterface + * @return \SprykerEco\Yves\Coremedia\Mapper\ApiContextMapperInterface */ public function createApiContextMapper(): ApiContextMapperInterface { @@ -72,7 +72,7 @@ public function createApiContextMapper(): ApiContextMapperInterface } /** - * @return \SprykerEco\Yves\CoreMedia\ApiResponse\ApiResponsePreparatorInterface + * @return \SprykerEco\Yves\Coremedia\ApiResponse\ApiResponsePreparatorInterface */ public function createApiResponsePreparator(): ApiResponsePreparatorInterface { @@ -82,7 +82,7 @@ public function createApiResponsePreparator(): ApiResponsePreparatorInterface } /** - * @return \SprykerEco\Yves\CoreMedia\ApiResponse\Resolver\ApiResponseResolverInterface[] + * @return \SprykerEco\Yves\Coremedia\ApiResponse\Resolver\ApiResponseResolverInterface[] */ public function getApiResponseResolvers(): array { @@ -92,7 +92,7 @@ public function getApiResponseResolvers(): array } /** - * @return \SprykerEco\Yves\CoreMedia\ApiResponse\Resolver\ApiResponseResolverInterface + * @return \SprykerEco\Yves\Coremedia\ApiResponse\Resolver\ApiResponseResolverInterface */ public function createPlaceholderResolver(): ApiResponseResolverInterface { @@ -104,7 +104,7 @@ public function createPlaceholderResolver(): ApiResponseResolverInterface } /** - * @return \SprykerEco\Yves\CoreMedia\ApiResponse\Parser\PlaceholderParserInterface + * @return \SprykerEco\Yves\Coremedia\ApiResponse\Parser\PlaceholderParserInterface */ public function createPlaceholderParser(): PlaceholderParserInterface { @@ -115,7 +115,7 @@ public function createPlaceholderParser(): PlaceholderParserInterface } /** - * @return \SprykerEco\Yves\CoreMedia\ApiResponse\Replacer\PlaceholderReplacerInterface + * @return \SprykerEco\Yves\Coremedia\ApiResponse\Replacer\PlaceholderReplacerInterface */ public function createPlaceholderReplacer(): PlaceholderReplacerInterface { @@ -123,7 +123,7 @@ public function createPlaceholderReplacer(): PlaceholderReplacerInterface } /** - * @return \SprykerEco\Yves\CoreMedia\ApiResponse\PostProcessor\PlaceholderPostProcessorInterface + * @return \SprykerEco\Yves\Coremedia\ApiResponse\PostProcessor\PlaceholderPostProcessorInterface */ public function createPlaceholderPostProcessor(): PlaceholderPostProcessorInterface { @@ -134,7 +134,7 @@ public function createPlaceholderPostProcessor(): PlaceholderPostProcessorInterf } /** - * @return \SprykerEco\Yves\CoreMedia\ApiResponse\Renderer\PlaceholderReplacementRendererInterface + * @return \SprykerEco\Yves\Coremedia\ApiResponse\Renderer\PlaceholderReplacementRendererInterface */ public function createProductUrlPlaceholderReplacementRenderer(): PlaceholderReplacementRendererInterface { @@ -144,7 +144,7 @@ public function createProductUrlPlaceholderReplacementRenderer(): PlaceholderRep } /** - * @return \SprykerEco\Yves\CoreMedia\ApiResponse\Renderer\PlaceholderReplacementRendererInterface + * @return \SprykerEco\Yves\Coremedia\ApiResponse\Renderer\PlaceholderReplacementRendererInterface */ public function createCategoryUrlPlaceholderReplacementRenderer(): PlaceholderReplacementRendererInterface { @@ -154,7 +154,7 @@ public function createCategoryUrlPlaceholderReplacementRenderer(): PlaceholderRe } /** - * @return \SprykerEco\Yves\CoreMedia\ApiResponse\Renderer\PlaceholderReplacementRendererInterface + * @return \SprykerEco\Yves\Coremedia\ApiResponse\Renderer\PlaceholderReplacementRendererInterface */ public function createPageMetadataPlaceholderReplacementRenderer(): PlaceholderReplacementRendererInterface { @@ -164,7 +164,7 @@ public function createPageMetadataPlaceholderReplacementRenderer(): PlaceholderR } /** - * @return \SprykerEco\Yves\CoreMedia\ApiResponse\Renderer\PlaceholderReplacementRendererInterface + * @return \SprykerEco\Yves\Coremedia\ApiResponse\Renderer\PlaceholderReplacementRendererInterface */ public function createProductPricePlaceholderReplacementRenderer(): PlaceholderReplacementRendererInterface { @@ -177,7 +177,7 @@ public function createProductPricePlaceholderReplacementRenderer(): PlaceholderR } /** - * @return \SprykerEco\Yves\CoreMedia\ApiResponse\Renderer\PlaceholderReplacementRendererInterface + * @return \SprykerEco\Yves\Coremedia\ApiResponse\Renderer\PlaceholderReplacementRendererInterface */ public function createCustomPageUrlPlaceholderReplacementRenderer(): PlaceholderReplacementRendererInterface { @@ -187,7 +187,7 @@ public function createCustomPageUrlPlaceholderReplacementRenderer(): Placeholder } /** - * @return \SprykerEco\Yves\CoreMedia\ApiResponse\Renderer\PlaceholderReplacementRendererInterface[] + * @return \SprykerEco\Yves\Coremedia\ApiResponse\Renderer\PlaceholderReplacementRendererInterface[] */ public function getPlaceholderReplacementRenderers(): array { @@ -201,7 +201,7 @@ public function getPlaceholderReplacementRenderers(): array } /** - * @return \SprykerEco\Yves\CoreMedia\Formatter\ProductPriceFormatterInterface + * @return \SprykerEco\Yves\Coremedia\Formatter\ProductPriceFormatterInterface */ public function createProductPriceFormatter(): ProductPriceFormatterInterface { @@ -211,7 +211,7 @@ public function createProductPriceFormatter(): ProductPriceFormatterInterface } /** - * @return \SprykerEco\Yves\CoreMedia\ApiResponse\Replacer\Metadata\MetadataReplacerInterface[] + * @return \SprykerEco\Yves\Coremedia\ApiResponse\Replacer\Metadata\MetadataReplacerInterface[] */ public function getMetadataReplacers(): array { @@ -224,7 +224,7 @@ public function getMetadataReplacers(): array } /** - * @return \SprykerEco\Yves\CoreMedia\ApiResponse\Replacer\Metadata\MetadataReplacerInterface + * @return \SprykerEco\Yves\Coremedia\ApiResponse\Replacer\Metadata\MetadataReplacerInterface */ public function createTitleMetadataReplacer(): MetadataReplacerInterface { @@ -232,7 +232,7 @@ public function createTitleMetadataReplacer(): MetadataReplacerInterface } /** - * @return \SprykerEco\Yves\CoreMedia\ApiResponse\Replacer\Metadata\MetadataReplacerInterface + * @return \SprykerEco\Yves\Coremedia\ApiResponse\Replacer\Metadata\MetadataReplacerInterface */ public function createDescriptionMetadataReplacer(): MetadataReplacerInterface { @@ -240,7 +240,7 @@ public function createDescriptionMetadataReplacer(): MetadataReplacerInterface } /** - * @return \SprykerEco\Yves\CoreMedia\ApiResponse\Replacer\Metadata\MetadataReplacerInterface + * @return \SprykerEco\Yves\Coremedia\ApiResponse\Replacer\Metadata\MetadataReplacerInterface */ public function createKeywordsMetadataReplacer(): MetadataReplacerInterface { @@ -248,7 +248,7 @@ public function createKeywordsMetadataReplacer(): MetadataReplacerInterface } /** - * @return \SprykerEco\Yves\CoreMedia\ApiResponse\Replacer\Metadata\MetadataReplacerInterface + * @return \SprykerEco\Yves\Coremedia\ApiResponse\Replacer\Metadata\MetadataReplacerInterface */ public function createPageNameMetadataReplacer(): MetadataReplacerInterface { @@ -256,7 +256,7 @@ public function createPageNameMetadataReplacer(): MetadataReplacerInterface } /** - * @return \SprykerEco\Yves\CoreMedia\ApiResponse\Executor\IncorrectPlaceholderDataExecutorInterface + * @return \SprykerEco\Yves\Coremedia\ApiResponse\Executor\IncorrectPlaceholderDataExecutorInterface */ public function createIncorrectPlaceholderDataExecutor(): IncorrectPlaceholderDataExecutorInterface { @@ -264,51 +264,51 @@ public function createIncorrectPlaceholderDataExecutor(): IncorrectPlaceholderDa } /** - * @return \SprykerEco\Yves\CoreMedia\Dependency\Service\CoreMediaToUtilEncodingServiceInterface + * @return \SprykerEco\Yves\Coremedia\Dependency\Service\CoremediaToUtilEncodingServiceInterface */ - public function getUtilEncodingService(): CoreMediaToUtilEncodingServiceInterface + public function getUtilEncodingService(): CoremediaToUtilEncodingServiceInterface { - return $this->getProvidedDependency(CoreMediaDependencyProvider::SERVICE_UTIL_ENCODING); + return $this->getProvidedDependency(CoremediaDependencyProvider::SERVICE_UTIL_ENCODING); } /** - * @return \SprykerEco\Yves\CoreMedia\Dependency\Client\CoreMediaToProductStorageClientInterface + * @return \SprykerEco\Yves\Coremedia\Dependency\Client\CoremediaToProductStorageClientInterface */ - public function getProductStorageClient(): CoreMediaToProductStorageClientInterface + public function getProductStorageClient(): CoremediaToProductStorageClientInterface { - return $this->getProvidedDependency(CoreMediaDependencyProvider::CLIENT_PRODUCT_STORAGE); + return $this->getProvidedDependency(CoremediaDependencyProvider::CLIENT_PRODUCT_STORAGE); } /** - * @return \SprykerEco\Yves\CoreMedia\Dependency\Client\CoreMediaToCategoryStorageClientInterface + * @return \SprykerEco\Yves\Coremedia\Dependency\Client\CoremediaToCategoryStorageClientInterface */ - public function getCategoryStorageClient(): CoreMediaToCategoryStorageClientInterface + public function getCategoryStorageClient(): CoremediaToCategoryStorageClientInterface { - return $this->getProvidedDependency(CoreMediaDependencyProvider::CLIENT_CATEGORY_STORAGE); + return $this->getProvidedDependency(CoremediaDependencyProvider::CLIENT_CATEGORY_STORAGE); } /** - * @return \SprykerEco\Yves\CoreMedia\Dependency\Client\CoreMediaToPriceProductStorageClientInterface + * @return \SprykerEco\Yves\Coremedia\Dependency\Client\CoremediaToPriceProductStorageClientInterface */ - public function getPriceProductStorageClient(): CoreMediaToPriceProductStorageClientInterface + public function getPriceProductStorageClient(): CoremediaToPriceProductStorageClientInterface { - return $this->getProvidedDependency(CoreMediaDependencyProvider::CLIENT_PRICE_PRODUCT_STORAGE); + return $this->getProvidedDependency(CoremediaDependencyProvider::CLIENT_PRICE_PRODUCT_STORAGE); } /** - * @return \SprykerEco\Yves\CoreMedia\Dependency\Client\CoreMediaToPriceProductClientInterface + * @return \SprykerEco\Yves\Coremedia\Dependency\Client\CoremediaToPriceProductClientInterface */ - public function getPriceProductClient(): CoreMediaToPriceProductClientInterface + public function getPriceProductClient(): CoremediaToPriceProductClientInterface { - return $this->getProvidedDependency(CoreMediaDependencyProvider::CLIENT_PRICE_PRODUCT); + return $this->getProvidedDependency(CoremediaDependencyProvider::CLIENT_PRICE_PRODUCT); } /** - * @return \SprykerEco\Yves\CoreMedia\Dependency\Client\CoreMediaToMoneyClientInterface + * @return \SprykerEco\Yves\Coremedia\Dependency\Client\CoremediaToMoneyClientInterface */ - public function getMoneyClient(): CoreMediaToMoneyClientInterface + public function getMoneyClient(): CoremediaToMoneyClientInterface { - return $this->getProvidedDependency(CoreMediaDependencyProvider::CLIENT_MONEY); + return $this->getProvidedDependency(CoremediaDependencyProvider::CLIENT_MONEY); } /** @@ -316,6 +316,6 @@ public function getMoneyClient(): CoreMediaToMoneyClientInterface */ public function getUrlGenerator(): UrlGeneratorInterface { - return $this->getProvidedDependency(CoreMediaDependencyProvider::URL_GENERATOR); + return $this->getProvidedDependency(CoremediaDependencyProvider::URL_GENERATOR); } } diff --git a/src/SprykerEco/Yves/CoreMedia/Dependency/Client/CoreMediaToCategoryStorageClientBridge.php b/src/SprykerEco/Yves/CoreMedia/Dependency/Client/CoremediaToCategoryStorageClientBridge.php similarity index 88% rename from src/SprykerEco/Yves/CoreMedia/Dependency/Client/CoreMediaToCategoryStorageClientBridge.php rename to src/SprykerEco/Yves/CoreMedia/Dependency/Client/CoremediaToCategoryStorageClientBridge.php index fc0b834..e825330 100644 --- a/src/SprykerEco/Yves/CoreMedia/Dependency/Client/CoreMediaToCategoryStorageClientBridge.php +++ b/src/SprykerEco/Yves/CoreMedia/Dependency/Client/CoremediaToCategoryStorageClientBridge.php @@ -5,9 +5,9 @@ * Use of this software requires acceptance of the Evaluation License Agreement. See LICENSE file. */ -namespace SprykerEco\Yves\CoreMedia\Dependency\Client; +namespace SprykerEco\Yves\Coremedia\Dependency\Client; -class CoreMediaToCategoryStorageClientBridge implements CoreMediaToCategoryStorageClientInterface +class CoremediaToCategoryStorageClientBridge implements CoremediaToCategoryStorageClientInterface { /** * @var \Spryker\Client\CategoryStorage\CategoryStorageClientInterface diff --git a/src/SprykerEco/Yves/CoreMedia/Dependency/Client/CoreMediaToCategoryStorageClientInterface.php b/src/SprykerEco/Yves/CoreMedia/Dependency/Client/CoremediaToCategoryStorageClientInterface.php similarity index 79% rename from src/SprykerEco/Yves/CoreMedia/Dependency/Client/CoreMediaToCategoryStorageClientInterface.php rename to src/SprykerEco/Yves/CoreMedia/Dependency/Client/CoremediaToCategoryStorageClientInterface.php index 8859669..3d84e65 100644 --- a/src/SprykerEco/Yves/CoreMedia/Dependency/Client/CoreMediaToCategoryStorageClientInterface.php +++ b/src/SprykerEco/Yves/CoreMedia/Dependency/Client/CoremediaToCategoryStorageClientInterface.php @@ -5,9 +5,9 @@ * Use of this software requires acceptance of the Evaluation License Agreement. See LICENSE file. */ -namespace SprykerEco\Yves\CoreMedia\Dependency\Client; +namespace SprykerEco\Yves\Coremedia\Dependency\Client; -interface CoreMediaToCategoryStorageClientInterface +interface CoremediaToCategoryStorageClientInterface { /** * @param int $idCategoryNode diff --git a/src/SprykerEco/Yves/CoreMedia/Dependency/Client/CoreMediaToMoneyClientBridge.php b/src/SprykerEco/Yves/CoreMedia/Dependency/Client/CoremediaToMoneyClientBridge.php similarity index 87% rename from src/SprykerEco/Yves/CoreMedia/Dependency/Client/CoreMediaToMoneyClientBridge.php rename to src/SprykerEco/Yves/CoreMedia/Dependency/Client/CoremediaToMoneyClientBridge.php index 2cfe8d5..0eaa6da 100644 --- a/src/SprykerEco/Yves/CoreMedia/Dependency/Client/CoreMediaToMoneyClientBridge.php +++ b/src/SprykerEco/Yves/CoreMedia/Dependency/Client/CoremediaToMoneyClientBridge.php @@ -5,11 +5,11 @@ * Use of this software requires acceptance of the Evaluation License Agreement. See LICENSE file. */ -namespace SprykerEco\Yves\CoreMedia\Dependency\Client; +namespace SprykerEco\Yves\Coremedia\Dependency\Client; use Generated\Shared\Transfer\MoneyTransfer; -class CoreMediaToMoneyClientBridge implements CoreMediaToMoneyClientInterface +class CoremediaToMoneyClientBridge implements CoremediaToMoneyClientInterface { /** * @var \Spryker\Client\Money\MoneyClientInterface diff --git a/src/SprykerEco/Yves/CoreMedia/Dependency/Client/CoreMediaToMoneyClientInterface.php b/src/SprykerEco/Yves/CoreMedia/Dependency/Client/CoremediaToMoneyClientInterface.php similarity index 81% rename from src/SprykerEco/Yves/CoreMedia/Dependency/Client/CoreMediaToMoneyClientInterface.php rename to src/SprykerEco/Yves/CoreMedia/Dependency/Client/CoremediaToMoneyClientInterface.php index a806f3c..6e071da 100644 --- a/src/SprykerEco/Yves/CoreMedia/Dependency/Client/CoreMediaToMoneyClientInterface.php +++ b/src/SprykerEco/Yves/CoreMedia/Dependency/Client/CoremediaToMoneyClientInterface.php @@ -5,11 +5,11 @@ * Use of this software requires acceptance of the Evaluation License Agreement. See LICENSE file. */ -namespace SprykerEco\Yves\CoreMedia\Dependency\Client; +namespace SprykerEco\Yves\Coremedia\Dependency\Client; use Generated\Shared\Transfer\MoneyTransfer; -interface CoreMediaToMoneyClientInterface +interface CoremediaToMoneyClientInterface { /** * @param \Generated\Shared\Transfer\MoneyTransfer $moneyTransfer diff --git a/src/SprykerEco/Yves/CoreMedia/Dependency/Client/CoreMediaToPriceProductClientBridge.php b/src/SprykerEco/Yves/CoreMedia/Dependency/Client/CoremediaToPriceProductClientBridge.php similarity index 89% rename from src/SprykerEco/Yves/CoreMedia/Dependency/Client/CoreMediaToPriceProductClientBridge.php rename to src/SprykerEco/Yves/CoreMedia/Dependency/Client/CoremediaToPriceProductClientBridge.php index cfd7da8..9c6e860 100644 --- a/src/SprykerEco/Yves/CoreMedia/Dependency/Client/CoreMediaToPriceProductClientBridge.php +++ b/src/SprykerEco/Yves/CoreMedia/Dependency/Client/CoremediaToPriceProductClientBridge.php @@ -5,11 +5,11 @@ * Use of this software requires acceptance of the Evaluation License Agreement. See LICENSE file. */ -namespace SprykerEco\Yves\CoreMedia\Dependency\Client; +namespace SprykerEco\Yves\Coremedia\Dependency\Client; use Generated\Shared\Transfer\CurrentProductPriceTransfer; -class CoreMediaToPriceProductClientBridge implements CoreMediaToPriceProductClientInterface +class CoremediaToPriceProductClientBridge implements CoremediaToPriceProductClientInterface { /** * @var \Spryker\Client\PriceProduct\PriceProductClientInterface diff --git a/src/SprykerEco/Yves/CoreMedia/Dependency/Client/CoreMediaToPriceProductClientInterface.php b/src/SprykerEco/Yves/CoreMedia/Dependency/Client/CoremediaToPriceProductClientInterface.php similarity index 83% rename from src/SprykerEco/Yves/CoreMedia/Dependency/Client/CoreMediaToPriceProductClientInterface.php rename to src/SprykerEco/Yves/CoreMedia/Dependency/Client/CoremediaToPriceProductClientInterface.php index dce2e0a..a936951 100644 --- a/src/SprykerEco/Yves/CoreMedia/Dependency/Client/CoreMediaToPriceProductClientInterface.php +++ b/src/SprykerEco/Yves/CoreMedia/Dependency/Client/CoremediaToPriceProductClientInterface.php @@ -5,11 +5,11 @@ * Use of this software requires acceptance of the Evaluation License Agreement. See LICENSE file. */ -namespace SprykerEco\Yves\CoreMedia\Dependency\Client; +namespace SprykerEco\Yves\Coremedia\Dependency\Client; use Generated\Shared\Transfer\CurrentProductPriceTransfer; -interface CoreMediaToPriceProductClientInterface +interface CoremediaToPriceProductClientInterface { /** * @param \Generated\Shared\Transfer\PriceProductTransfer[] $priceProductTransfers diff --git a/src/SprykerEco/Yves/CoreMedia/Dependency/Client/CoreMediaToPriceProductStorageClientBridge.php b/src/SprykerEco/Yves/CoreMedia/Dependency/Client/CoremediaToPriceProductStorageClientBridge.php similarity index 89% rename from src/SprykerEco/Yves/CoreMedia/Dependency/Client/CoreMediaToPriceProductStorageClientBridge.php rename to src/SprykerEco/Yves/CoreMedia/Dependency/Client/CoremediaToPriceProductStorageClientBridge.php index 2cfb74a..f927a2a 100644 --- a/src/SprykerEco/Yves/CoreMedia/Dependency/Client/CoreMediaToPriceProductStorageClientBridge.php +++ b/src/SprykerEco/Yves/CoreMedia/Dependency/Client/CoremediaToPriceProductStorageClientBridge.php @@ -5,9 +5,9 @@ * Use of this software requires acceptance of the Evaluation License Agreement. See LICENSE file. */ -namespace SprykerEco\Yves\CoreMedia\Dependency\Client; +namespace SprykerEco\Yves\Coremedia\Dependency\Client; -class CoreMediaToPriceProductStorageClientBridge implements CoreMediaToPriceProductStorageClientInterface +class CoremediaToPriceProductStorageClientBridge implements CoremediaToPriceProductStorageClientInterface { /** * @var \Spryker\Client\PriceProductStorage\PriceProductStorageClientInterface diff --git a/src/SprykerEco/Yves/CoreMedia/Dependency/Client/CoreMediaToPriceProductStorageClientInterface.php b/src/SprykerEco/Yves/CoreMedia/Dependency/Client/CoremediaToPriceProductStorageClientInterface.php similarity index 86% rename from src/SprykerEco/Yves/CoreMedia/Dependency/Client/CoreMediaToPriceProductStorageClientInterface.php rename to src/SprykerEco/Yves/CoreMedia/Dependency/Client/CoremediaToPriceProductStorageClientInterface.php index ebde657..23fd745 100644 --- a/src/SprykerEco/Yves/CoreMedia/Dependency/Client/CoreMediaToPriceProductStorageClientInterface.php +++ b/src/SprykerEco/Yves/CoreMedia/Dependency/Client/CoremediaToPriceProductStorageClientInterface.php @@ -5,9 +5,9 @@ * Use of this software requires acceptance of the Evaluation License Agreement. See LICENSE file. */ -namespace SprykerEco\Yves\CoreMedia\Dependency\Client; +namespace SprykerEco\Yves\Coremedia\Dependency\Client; -interface CoreMediaToPriceProductStorageClientInterface +interface CoremediaToPriceProductStorageClientInterface { /** * @param int $idProductAbstract diff --git a/src/SprykerEco/Yves/CoreMedia/Dependency/Client/CoreMediaToProductStorageClientBridge.php b/src/SprykerEco/Yves/CoreMedia/Dependency/Client/CoremediaToProductStorageClientBridge.php similarity index 92% rename from src/SprykerEco/Yves/CoreMedia/Dependency/Client/CoreMediaToProductStorageClientBridge.php rename to src/SprykerEco/Yves/CoreMedia/Dependency/Client/CoremediaToProductStorageClientBridge.php index 0d07bf9..32a2b9d 100644 --- a/src/SprykerEco/Yves/CoreMedia/Dependency/Client/CoreMediaToProductStorageClientBridge.php +++ b/src/SprykerEco/Yves/CoreMedia/Dependency/Client/CoremediaToProductStorageClientBridge.php @@ -5,9 +5,9 @@ * Use of this software requires acceptance of the Evaluation License Agreement. See LICENSE file. */ -namespace SprykerEco\Yves\CoreMedia\Dependency\Client; +namespace SprykerEco\Yves\Coremedia\Dependency\Client; -class CoreMediaToProductStorageClientBridge implements CoreMediaToProductStorageClientInterface +class CoremediaToProductStorageClientBridge implements CoremediaToProductStorageClientInterface { /** * @var \Spryker\Client\ProductStorage\ProductStorageClientInterface diff --git a/src/SprykerEco/Yves/CoreMedia/Dependency/Client/CoreMediaToProductStorageClientInterface.php b/src/SprykerEco/Yves/CoreMedia/Dependency/Client/CoremediaToProductStorageClientInterface.php similarity index 87% rename from src/SprykerEco/Yves/CoreMedia/Dependency/Client/CoreMediaToProductStorageClientInterface.php rename to src/SprykerEco/Yves/CoreMedia/Dependency/Client/CoremediaToProductStorageClientInterface.php index b84c34b..a3366a2 100644 --- a/src/SprykerEco/Yves/CoreMedia/Dependency/Client/CoreMediaToProductStorageClientInterface.php +++ b/src/SprykerEco/Yves/CoreMedia/Dependency/Client/CoremediaToProductStorageClientInterface.php @@ -5,9 +5,9 @@ * Use of this software requires acceptance of the Evaluation License Agreement. See LICENSE file. */ -namespace SprykerEco\Yves\CoreMedia\Dependency\Client; +namespace SprykerEco\Yves\Coremedia\Dependency\Client; -interface CoreMediaToProductStorageClientInterface +interface CoremediaToProductStorageClientInterface { /** * @param string $mappingType diff --git a/src/SprykerEco/Yves/CoreMedia/Dependency/Service/CoreMediaToUtilEncodingServiceBridge.php b/src/SprykerEco/Yves/CoreMedia/Dependency/Service/CoremediaToUtilEncodingServiceBridge.php similarity index 88% rename from src/SprykerEco/Yves/CoreMedia/Dependency/Service/CoreMediaToUtilEncodingServiceBridge.php rename to src/SprykerEco/Yves/CoreMedia/Dependency/Service/CoremediaToUtilEncodingServiceBridge.php index 3601db0..c478e97 100644 --- a/src/SprykerEco/Yves/CoreMedia/Dependency/Service/CoreMediaToUtilEncodingServiceBridge.php +++ b/src/SprykerEco/Yves/CoreMedia/Dependency/Service/CoremediaToUtilEncodingServiceBridge.php @@ -5,9 +5,9 @@ * Use of this software requires acceptance of the Evaluation License Agreement. See LICENSE file. */ -namespace SprykerEco\Yves\CoreMedia\Dependency\Service; +namespace SprykerEco\Yves\Coremedia\Dependency\Service; -class CoreMediaToUtilEncodingServiceBridge implements CoreMediaToUtilEncodingServiceInterface +class CoremediaToUtilEncodingServiceBridge implements CoremediaToUtilEncodingServiceInterface { /** * @var \Spryker\Service\UtilEncoding\UtilEncodingServiceInterface diff --git a/src/SprykerEco/Yves/CoreMedia/Dependency/Service/CoreMediaToUtilEncodingServiceInterface.php b/src/SprykerEco/Yves/CoreMedia/Dependency/Service/CoremediaToUtilEncodingServiceInterface.php similarity index 81% rename from src/SprykerEco/Yves/CoreMedia/Dependency/Service/CoreMediaToUtilEncodingServiceInterface.php rename to src/SprykerEco/Yves/CoreMedia/Dependency/Service/CoremediaToUtilEncodingServiceInterface.php index 5182f4a..905f1ad 100644 --- a/src/SprykerEco/Yves/CoreMedia/Dependency/Service/CoreMediaToUtilEncodingServiceInterface.php +++ b/src/SprykerEco/Yves/CoreMedia/Dependency/Service/CoremediaToUtilEncodingServiceInterface.php @@ -5,9 +5,9 @@ * Use of this software requires acceptance of the Evaluation License Agreement. See LICENSE file. */ -namespace SprykerEco\Yves\CoreMedia\Dependency\Service; +namespace SprykerEco\Yves\Coremedia\Dependency\Service; -interface CoreMediaToUtilEncodingServiceInterface +interface CoremediaToUtilEncodingServiceInterface { /** * @param string $jsonValue diff --git a/src/SprykerEco/Yves/CoreMedia/Exception/InvalidPlaceholderDataException.php b/src/SprykerEco/Yves/CoreMedia/Exception/InvalidPlaceholderDataException.php index eff9abb..caaa2d4 100644 --- a/src/SprykerEco/Yves/CoreMedia/Exception/InvalidPlaceholderDataException.php +++ b/src/SprykerEco/Yves/CoreMedia/Exception/InvalidPlaceholderDataException.php @@ -5,7 +5,7 @@ * Use of this software requires acceptance of the Evaluation License Agreement. See LICENSE file. */ -namespace SprykerEco\Yves\CoreMedia\Exception; +namespace SprykerEco\Yves\Coremedia\Exception; use Exception; diff --git a/src/SprykerEco/Yves/CoreMedia/Exception/MissingRequestParameterException.php b/src/SprykerEco/Yves/CoreMedia/Exception/MissingRequestParameterException.php index 0fa846c..65c4cc0 100644 --- a/src/SprykerEco/Yves/CoreMedia/Exception/MissingRequestParameterException.php +++ b/src/SprykerEco/Yves/CoreMedia/Exception/MissingRequestParameterException.php @@ -5,7 +5,7 @@ * Use of this software requires acceptance of the Evaluation License Agreement. See LICENSE file. */ -namespace SprykerEco\Yves\CoreMedia\Exception; +namespace SprykerEco\Yves\Coremedia\Exception; use Exception; diff --git a/src/SprykerEco/Yves/CoreMedia/Formatter/ProductPriceFormatter.php b/src/SprykerEco/Yves/CoreMedia/Formatter/ProductPriceFormatter.php index 40412a6..352a262 100644 --- a/src/SprykerEco/Yves/CoreMedia/Formatter/ProductPriceFormatter.php +++ b/src/SprykerEco/Yves/CoreMedia/Formatter/ProductPriceFormatter.php @@ -5,23 +5,23 @@ * Use of this software requires acceptance of the Evaluation License Agreement. See LICENSE file. */ -namespace SprykerEco\Yves\CoreMedia\Formatter; +namespace SprykerEco\Yves\Coremedia\Formatter; use Generated\Shared\Transfer\CurrentProductPriceTransfer; use Generated\Shared\Transfer\MoneyTransfer; -use SprykerEco\Yves\CoreMedia\Dependency\Client\CoreMediaToMoneyClientInterface; +use SprykerEco\Yves\Coremedia\Dependency\Client\CoremediaToMoneyClientInterface; class ProductPriceFormatter implements ProductPriceFormatterInterface { /** - * @var \SprykerEco\Yves\CoreMedia\Dependency\Client\CoreMediaToMoneyClientInterface + * @var \SprykerEco\Yves\Coremedia\Dependency\Client\CoremediaToMoneyClientInterface */ protected $moneyClient; /** - * @param \SprykerEco\Yves\CoreMedia\Dependency\Client\CoreMediaToMoneyClientInterface $moneyClient + * @param \SprykerEco\Yves\Coremedia\Dependency\Client\CoremediaToMoneyClientInterface $moneyClient */ - public function __construct(CoreMediaToMoneyClientInterface $moneyClient) + public function __construct(CoremediaToMoneyClientInterface $moneyClient) { $this->moneyClient = $moneyClient; } diff --git a/src/SprykerEco/Yves/CoreMedia/Formatter/ProductPriceFormatterInterface.php b/src/SprykerEco/Yves/CoreMedia/Formatter/ProductPriceFormatterInterface.php index 6faedb4..dd36e90 100644 --- a/src/SprykerEco/Yves/CoreMedia/Formatter/ProductPriceFormatterInterface.php +++ b/src/SprykerEco/Yves/CoreMedia/Formatter/ProductPriceFormatterInterface.php @@ -5,7 +5,7 @@ * Use of this software requires acceptance of the Evaluation License Agreement. See LICENSE file. */ -namespace SprykerEco\Yves\CoreMedia\Formatter; +namespace SprykerEco\Yves\Coremedia\Formatter; use Generated\Shared\Transfer\CurrentProductPriceTransfer; diff --git a/src/SprykerEco/Yves/CoreMedia/Mapper/ApiContextMapper.php b/src/SprykerEco/Yves/CoreMedia/Mapper/ApiContextMapper.php index 9dc4456..f373027 100644 --- a/src/SprykerEco/Yves/CoreMedia/Mapper/ApiContextMapper.php +++ b/src/SprykerEco/Yves/CoreMedia/Mapper/ApiContextMapper.php @@ -5,36 +5,36 @@ * Use of this software requires acceptance of the Evaluation License Agreement. See LICENSE file. */ -namespace SprykerEco\Yves\CoreMedia\Mapper; +namespace SprykerEco\Yves\Coremedia\Mapper; use Generated\Shared\Transfer\CmsSlotContentRequestTransfer; use Generated\Shared\Transfer\CmsSlotContentResponseTransfer; -use Generated\Shared\Transfer\CoreMediaApiResponseTransfer; -use Generated\Shared\Transfer\CoreMediaFragmentRequestTransfer; +use Generated\Shared\Transfer\CoremediaApiResponseTransfer; +use Generated\Shared\Transfer\CoremediaFragmentRequestTransfer; class ApiContextMapper implements ApiContextMapperInterface { /** * @param \Generated\Shared\Transfer\CmsSlotContentRequestTransfer $cmsSlotContentRequestTransfer * - * @return \Generated\Shared\Transfer\CoreMediaFragmentRequestTransfer + * @return \Generated\Shared\Transfer\CoremediaFragmentRequestTransfer */ - public function mapCmsSlotContentRequestToCoreMediaFragmentRequest( + public function mapCmsSlotContentRequestToCoremediaFragmentRequest( CmsSlotContentRequestTransfer $cmsSlotContentRequestTransfer - ): CoreMediaFragmentRequestTransfer { - return (new CoreMediaFragmentRequestTransfer()) + ): CoremediaFragmentRequestTransfer { + return (new CoremediaFragmentRequestTransfer()) ->fromArray($cmsSlotContentRequestTransfer->getParams(), true) ->requireStore() ->requireLocale(); } /** - * @param \Generated\Shared\Transfer\CoreMediaApiResponseTransfer $coreMediaApiResponseTransfer + * @param \Generated\Shared\Transfer\CoremediaApiResponseTransfer $coreMediaApiResponseTransfer * * @return \Generated\Shared\Transfer\CmsSlotContentResponseTransfer */ - public function mapCoreMediaApiResponseTransferToCmsSlotContentResponseTransfer( - CoreMediaApiResponseTransfer $coreMediaApiResponseTransfer + public function mapCoremediaApiResponseTransferToCmsSlotContentResponseTransfer( + CoremediaApiResponseTransfer $coreMediaApiResponseTransfer ): CmsSlotContentResponseTransfer { return (new CmsSlotContentResponseTransfer())->setContent($coreMediaApiResponseTransfer->getData()); } diff --git a/src/SprykerEco/Yves/CoreMedia/Mapper/ApiContextMapperInterface.php b/src/SprykerEco/Yves/CoreMedia/Mapper/ApiContextMapperInterface.php index 03d23f2..7927a93 100644 --- a/src/SprykerEco/Yves/CoreMedia/Mapper/ApiContextMapperInterface.php +++ b/src/SprykerEco/Yves/CoreMedia/Mapper/ApiContextMapperInterface.php @@ -5,30 +5,30 @@ * Use of this software requires acceptance of the Evaluation License Agreement. See LICENSE file. */ -namespace SprykerEco\Yves\CoreMedia\Mapper; +namespace SprykerEco\Yves\Coremedia\Mapper; use Generated\Shared\Transfer\CmsSlotContentRequestTransfer; use Generated\Shared\Transfer\CmsSlotContentResponseTransfer; -use Generated\Shared\Transfer\CoreMediaApiResponseTransfer; -use Generated\Shared\Transfer\CoreMediaFragmentRequestTransfer; +use Generated\Shared\Transfer\CoremediaApiResponseTransfer; +use Generated\Shared\Transfer\CoremediaFragmentRequestTransfer; interface ApiContextMapperInterface { /** * @param \Generated\Shared\Transfer\CmsSlotContentRequestTransfer $cmsSlotContentRequestTransfer * - * @return \Generated\Shared\Transfer\CoreMediaFragmentRequestTransfer + * @return \Generated\Shared\Transfer\CoremediaFragmentRequestTransfer */ - public function mapCmsSlotContentRequestToCoreMediaFragmentRequest( + public function mapCmsSlotContentRequestToCoremediaFragmentRequest( CmsSlotContentRequestTransfer $cmsSlotContentRequestTransfer - ): CoreMediaFragmentRequestTransfer; + ): CoremediaFragmentRequestTransfer; /** - * @param \Generated\Shared\Transfer\CoreMediaApiResponseTransfer $coreMediaApiResponseTransfer + * @param \Generated\Shared\Transfer\CoremediaApiResponseTransfer $coreMediaApiResponseTransfer * * @return \Generated\Shared\Transfer\CmsSlotContentResponseTransfer */ - public function mapCoreMediaApiResponseTransferToCmsSlotContentResponseTransfer( - CoreMediaApiResponseTransfer $coreMediaApiResponseTransfer + public function mapCoremediaApiResponseTransferToCmsSlotContentResponseTransfer( + CoremediaApiResponseTransfer $coreMediaApiResponseTransfer ): CmsSlotContentResponseTransfer; } diff --git a/src/SprykerEco/Yves/CoreMedia/Plugin/ShopCmsSlot/CoreMediaCmsSlotContentPlugin.php b/src/SprykerEco/Yves/CoreMedia/Plugin/ShopCmsSlot/CoremediaCmsSlotContentPlugin.php similarity index 84% rename from src/SprykerEco/Yves/CoreMedia/Plugin/ShopCmsSlot/CoreMediaCmsSlotContentPlugin.php rename to src/SprykerEco/Yves/CoreMedia/Plugin/ShopCmsSlot/CoremediaCmsSlotContentPlugin.php index cce0cf5..dc0fd5b 100644 --- a/src/SprykerEco/Yves/CoreMedia/Plugin/ShopCmsSlot/CoreMediaCmsSlotContentPlugin.php +++ b/src/SprykerEco/Yves/CoreMedia/Plugin/ShopCmsSlot/CoremediaCmsSlotContentPlugin.php @@ -5,7 +5,7 @@ * Use of this software requires acceptance of the Evaluation License Agreement. See LICENSE file. */ -namespace SprykerEco\Yves\CoreMedia\Plugin\ShopCmsSlot; +namespace SprykerEco\Yves\Coremedia\Plugin\ShopCmsSlot; use Generated\Shared\Transfer\CmsSlotContentRequestTransfer; use Generated\Shared\Transfer\CmsSlotContentResponseTransfer; @@ -13,9 +13,9 @@ use SprykerShop\Yves\ShopCmsSlotExtension\Dependency\Plugin\CmsSlotContentPluginInterface; /** - * @method \SprykerEco\Yves\CoreMedia\CoreMediaFactory getFactory() + * @method \SprykerEco\Yves\Coremedia\CoremediaFactory getFactory() */ -class CoreMediaCmsSlotContentPlugin extends AbstractPlugin implements CmsSlotContentPluginInterface +class CoremediaCmsSlotContentPlugin extends AbstractPlugin implements CmsSlotContentPluginInterface { /** * @param \Generated\Shared\Transfer\CmsSlotContentRequestTransfer $cmsSlotContentRequestTransfer diff --git a/src/SprykerEco/Yves/CoreMedia/Reader/CmsSlotContent/CmsSlotContentReader.php b/src/SprykerEco/Yves/CoreMedia/Reader/CmsSlotContent/CmsSlotContentReader.php index a77b7d8..9e76ac3 100644 --- a/src/SprykerEco/Yves/CoreMedia/Reader/CmsSlotContent/CmsSlotContentReader.php +++ b/src/SprykerEco/Yves/CoreMedia/Reader/CmsSlotContent/CmsSlotContentReader.php @@ -5,38 +5,38 @@ * Use of this software requires acceptance of the Evaluation License Agreement. See LICENSE file. */ -namespace SprykerEco\Yves\CoreMedia\Reader\CmsSlotContent; +namespace SprykerEco\Yves\Coremedia\Reader\CmsSlotContent; use Generated\Shared\Transfer\CmsSlotContentRequestTransfer; use Generated\Shared\Transfer\CmsSlotContentResponseTransfer; -use SprykerEco\Client\CoreMedia\CoreMediaClientInterface; -use SprykerEco\Yves\CoreMedia\ApiResponse\ApiResponsePreparatorInterface; -use SprykerEco\Yves\CoreMedia\Mapper\ApiContextMapperInterface; +use SprykerEco\Client\Coremedia\CoremediaClientInterface; +use SprykerEco\Yves\Coremedia\ApiResponse\ApiResponsePreparatorInterface; +use SprykerEco\Yves\Coremedia\Mapper\ApiContextMapperInterface; class CmsSlotContentReader implements CmsSlotContentReaderInterface { /** - * @var \SprykerEco\Client\CoreMedia\CoreMediaClientInterface + * @var \SprykerEco\Client\Coremedia\CoremediaClientInterface */ protected $coreMediaClient; /** - * @var \SprykerEco\Yves\CoreMedia\Mapper\ApiContextMapperInterface + * @var \SprykerEco\Yves\Coremedia\Mapper\ApiContextMapperInterface */ protected $apiContextMapper; /** - * @var \SprykerEco\Yves\CoreMedia\ApiResponse\ApiResponsePreparatorInterface + * @var \SprykerEco\Yves\Coremedia\ApiResponse\ApiResponsePreparatorInterface */ protected $apiResponsePreparator; /** - * @param \SprykerEco\Client\CoreMedia\CoreMediaClientInterface $coreMediaClient - * @param \SprykerEco\Yves\CoreMedia\Mapper\ApiContextMapperInterface $apiContextMapper - * @param \SprykerEco\Yves\CoreMedia\ApiResponse\ApiResponsePreparatorInterface $apiResponsePreparator + * @param \SprykerEco\Client\Coremedia\CoremediaClientInterface $coreMediaClient + * @param \SprykerEco\Yves\Coremedia\Mapper\ApiContextMapperInterface $apiContextMapper + * @param \SprykerEco\Yves\Coremedia\ApiResponse\ApiResponsePreparatorInterface $apiResponsePreparator */ public function __construct( - CoreMediaClientInterface $coreMediaClient, + CoremediaClientInterface $coreMediaClient, ApiContextMapperInterface $apiContextMapper, ApiResponsePreparatorInterface $apiResponsePreparator ) { @@ -53,7 +53,7 @@ public function __construct( public function getDocumentFragment( CmsSlotContentRequestTransfer $cmsSlotContentRequestTransfer ): CmsSlotContentResponseTransfer { - $coreMediaFragmentRequestTransfer = $this->apiContextMapper->mapCmsSlotContentRequestToCoreMediaFragmentRequest( + $coreMediaFragmentRequestTransfer = $this->apiContextMapper->mapCmsSlotContentRequestToCoremediaFragmentRequest( $cmsSlotContentRequestTransfer ); $coreMediaApiResponseTransfer = $this->coreMediaClient->getDocumentFragment($coreMediaFragmentRequestTransfer); @@ -68,6 +68,6 @@ public function getDocumentFragment( ); return $this->apiContextMapper - ->mapCoreMediaApiResponseTransferToCmsSlotContentResponseTransfer($coreMediaApiResponseTransfer); + ->mapCoremediaApiResponseTransferToCmsSlotContentResponseTransfer($coreMediaApiResponseTransfer); } } diff --git a/src/SprykerEco/Yves/CoreMedia/Reader/CmsSlotContent/CmsSlotContentReaderInterface.php b/src/SprykerEco/Yves/CoreMedia/Reader/CmsSlotContent/CmsSlotContentReaderInterface.php index 3e25693..f2f02d2 100644 --- a/src/SprykerEco/Yves/CoreMedia/Reader/CmsSlotContent/CmsSlotContentReaderInterface.php +++ b/src/SprykerEco/Yves/CoreMedia/Reader/CmsSlotContent/CmsSlotContentReaderInterface.php @@ -5,7 +5,7 @@ * Use of this software requires acceptance of the Evaluation License Agreement. See LICENSE file. */ -namespace SprykerEco\Yves\CoreMedia\Reader\CmsSlotContent; +namespace SprykerEco\Yves\Coremedia\Reader\CmsSlotContent; use Generated\Shared\Transfer\CmsSlotContentRequestTransfer; use Generated\Shared\Transfer\CmsSlotContentResponseTransfer; diff --git a/src/SprykerEco/Zed/CoreMedia/Persistence/Propel/Schema/spy_product_storage.schema.xml b/src/SprykerEco/Zed/Coremedia/Persistence/Propel/Schema/spy_product_storage.schema.xml similarity index 100% rename from src/SprykerEco/Zed/CoreMedia/Persistence/Propel/Schema/spy_product_storage.schema.xml rename to src/SprykerEco/Zed/Coremedia/Persistence/Propel/Schema/spy_product_storage.schema.xml diff --git a/tests/SprykerEcoTest/Client/CoreMedia/_support/Helper/CoreMediaHelper.php b/tests/SprykerEcoTest/Client/CoreMedia/_support/Helper/CoreMediaHelper.php deleted file mode 100644 index 2f55e85..0000000 --- a/tests/SprykerEcoTest/Client/CoreMedia/_support/Helper/CoreMediaHelper.php +++ /dev/null @@ -1,25 +0,0 @@ -build(); - } -} diff --git a/tests/SprykerEcoTest/Client/CoreMedia/Api/Configuration/UrlBuilderTest.php b/tests/SprykerEcoTest/Client/Coremedia/Api/Configuration/UrlBuilderTest.php similarity index 51% rename from tests/SprykerEcoTest/Client/CoreMedia/Api/Configuration/UrlBuilderTest.php rename to tests/SprykerEcoTest/Client/Coremedia/Api/Configuration/UrlBuilderTest.php index 1eca29e..bbe6499 100644 --- a/tests/SprykerEcoTest/Client/CoreMedia/Api/Configuration/UrlBuilderTest.php +++ b/tests/SprykerEcoTest/Client/Coremedia/Api/Configuration/UrlBuilderTest.php @@ -5,17 +5,17 @@ * Use of this software requires acceptance of the Evaluation License Agreement. See LICENSE file. */ -namespace SprykerEcoTest\Client\CoreMedia\Api\Configuration; +namespace SprykerEcoTest\Client\Coremedia\Api\Configuration; use Codeception\Test\Unit; -use Generated\Shared\Transfer\CoreMediaFragmentRequestTransfer; -use SprykerEco\Client\CoreMedia\Api\Exception\UrlConfigurationException; -use SprykerEco\Client\CoreMedia\CoreMediaConfig; -use SprykerEco\Client\CoreMedia\CoreMediaFactory; +use Generated\Shared\Transfer\CoremediaFragmentRequestTransfer; +use SprykerEco\Client\Coremedia\Api\Exception\UrlConfigurationException; +use SprykerEco\Client\Coremedia\CoremediaConfig; +use SprykerEco\Client\Coremedia\CoremediaFactory; class UrlBuilderTest extends Unit { - protected const CORE_MEDIA_HOST = 'https://test.coremedia.com'; + protected const COREMEDIA_HOST = 'https://test.coremedia.com'; protected const APPLICATION_STORE_MAPPING = [ 'DE' => 'test-store', ]; @@ -26,7 +26,7 @@ class UrlBuilderTest extends Unit ]; /** - * @var \SprykerEcoTest\Client\CoreMedia\CoreMediaClientTester + * @var \SprykerEcoTest\Client\Coremedia\CoremediaClientTester */ protected $tester; @@ -35,17 +35,17 @@ class UrlBuilderTest extends Unit */ public function testUrlBuilderProvidesCorrectUrlForApiRequest(): void { - $coreMediaFragmentRequestTransfer = $this->tester->getCoreMediaFragmentRequestTransfer([ - CoreMediaFragmentRequestTransfer::STORE => 'DE', - CoreMediaFragmentRequestTransfer::LOCALE => 'en_US', - CoreMediaFragmentRequestTransfer::PRODUCT_ID => 111, - CoreMediaFragmentRequestTransfer::CATEGORY_ID => 222, - CoreMediaFragmentRequestTransfer::PAGE_ID => 'test-page', - CoreMediaFragmentRequestTransfer::PLACEMENT => 'header', - CoreMediaFragmentRequestTransfer::VIEW => 'asDefaultFragment', + $coreMediaFragmentRequestTransfer = $this->tester->getCoremediaFragmentRequestTransfer([ + CoremediaFragmentRequestTransfer::STORE => 'DE', + CoremediaFragmentRequestTransfer::LOCALE => 'en_US', + CoremediaFragmentRequestTransfer::PRODUCT_ID => 111, + CoremediaFragmentRequestTransfer::CATEGORY_ID => 222, + CoremediaFragmentRequestTransfer::PAGE_ID => 'test-page', + CoremediaFragmentRequestTransfer::PLACEMENT => 'header', + CoremediaFragmentRequestTransfer::VIEW => 'asDefaultFragment', ]); - $coreMediaFactoryMock = $this->getCoreMediaFactoryMock(); + $coreMediaFactoryMock = $this->getCoremediaFactoryMock(); $urlBuilder = $coreMediaFactoryMock->createUrlBuilder(); $url = $urlBuilder->buildDocumentFragmentApiUrl($coreMediaFragmentRequestTransfer); @@ -59,17 +59,17 @@ public function testUrlBuilderProvidesCorrectUrlForApiRequest(): void */ public function testUrlBuilderProvidesCorrectUrlOnNullParametersProvided(): void { - $coreMediaFragmentRequestTransfer = $this->tester->getCoreMediaFragmentRequestTransfer([ - CoreMediaFragmentRequestTransfer::STORE => 'DE', - CoreMediaFragmentRequestTransfer::LOCALE => 'en_US', - CoreMediaFragmentRequestTransfer::PRODUCT_ID => null, - CoreMediaFragmentRequestTransfer::CATEGORY_ID => 222, - CoreMediaFragmentRequestTransfer::PAGE_ID => null, - CoreMediaFragmentRequestTransfer::PLACEMENT => null, - CoreMediaFragmentRequestTransfer::VIEW => null, + $coreMediaFragmentRequestTransfer = $this->tester->getCoremediaFragmentRequestTransfer([ + CoremediaFragmentRequestTransfer::STORE => 'DE', + CoremediaFragmentRequestTransfer::LOCALE => 'en_US', + CoremediaFragmentRequestTransfer::PRODUCT_ID => null, + CoremediaFragmentRequestTransfer::CATEGORY_ID => 222, + CoremediaFragmentRequestTransfer::PAGE_ID => null, + CoremediaFragmentRequestTransfer::PLACEMENT => null, + CoremediaFragmentRequestTransfer::VIEW => null, ]); - $coreMediaFactoryMock = $this->getCoreMediaFactoryMock(); + $coreMediaFactoryMock = $this->getCoremediaFactoryMock(); $urlBuilder = $coreMediaFactoryMock->createUrlBuilder(); $url = $urlBuilder->buildDocumentFragmentApiUrl($coreMediaFragmentRequestTransfer); @@ -82,17 +82,17 @@ public function testUrlBuilderProvidesCorrectUrlOnNullParametersProvided(): void */ public function testUrlBuilderFailsOnIncorrectStoreProvided(): void { - $coreMediaFragmentRequestTransfer = $this->tester->getCoreMediaFragmentRequestTransfer([ - CoreMediaFragmentRequestTransfer::STORE => 'wrong-store', - CoreMediaFragmentRequestTransfer::LOCALE => 'en_US', - CoreMediaFragmentRequestTransfer::PRODUCT_ID => 111, - CoreMediaFragmentRequestTransfer::CATEGORY_ID => 222, - CoreMediaFragmentRequestTransfer::PAGE_ID => 'test-page', - CoreMediaFragmentRequestTransfer::PLACEMENT => 'header', - CoreMediaFragmentRequestTransfer::VIEW => 'asDefaultFragment', + $coreMediaFragmentRequestTransfer = $this->tester->getCoremediaFragmentRequestTransfer([ + CoremediaFragmentRequestTransfer::STORE => 'wrong-store', + CoremediaFragmentRequestTransfer::LOCALE => 'en_US', + CoremediaFragmentRequestTransfer::PRODUCT_ID => 111, + CoremediaFragmentRequestTransfer::CATEGORY_ID => 222, + CoremediaFragmentRequestTransfer::PAGE_ID => 'test-page', + CoremediaFragmentRequestTransfer::PLACEMENT => 'header', + CoremediaFragmentRequestTransfer::VIEW => 'asDefaultFragment', ]); - $coreMediaFactoryMock = $this->getCoreMediaFactoryMock(); + $coreMediaFactoryMock = $this->getCoremediaFactoryMock(); $urlBuilder = $coreMediaFactoryMock->createUrlBuilder(); $this->expectException(UrlConfigurationException::class); @@ -104,17 +104,17 @@ public function testUrlBuilderFailsOnIncorrectStoreProvided(): void */ public function testUrlBuilderFailsOnIncorrectLocaleProvided(): void { - $coreMediaFragmentRequestTransfer = $this->tester->getCoreMediaFragmentRequestTransfer([ - CoreMediaFragmentRequestTransfer::STORE => 'DE', - CoreMediaFragmentRequestTransfer::LOCALE => 'wrong_locale', - CoreMediaFragmentRequestTransfer::PRODUCT_ID => 111, - CoreMediaFragmentRequestTransfer::CATEGORY_ID => 222, - CoreMediaFragmentRequestTransfer::PAGE_ID => 'test-page', - CoreMediaFragmentRequestTransfer::PLACEMENT => 'header', - CoreMediaFragmentRequestTransfer::VIEW => 'asDefaultFragment', + $coreMediaFragmentRequestTransfer = $this->tester->getCoremediaFragmentRequestTransfer([ + CoremediaFragmentRequestTransfer::STORE => 'DE', + CoremediaFragmentRequestTransfer::LOCALE => 'wrong_locale', + CoremediaFragmentRequestTransfer::PRODUCT_ID => 111, + CoremediaFragmentRequestTransfer::CATEGORY_ID => 222, + CoremediaFragmentRequestTransfer::PAGE_ID => 'test-page', + CoremediaFragmentRequestTransfer::PLACEMENT => 'header', + CoremediaFragmentRequestTransfer::VIEW => 'asDefaultFragment', ]); - $coreMediaFactoryMock = $this->getCoreMediaFactoryMock(); + $coreMediaFactoryMock = $this->getCoremediaFactoryMock(); $urlBuilder = $coreMediaFactoryMock->createUrlBuilder(); $this->expectException(UrlConfigurationException::class); @@ -122,14 +122,14 @@ public function testUrlBuilderFailsOnIncorrectLocaleProvided(): void } /** - * @return \PHPUnit\Framework\MockObject\MockObject|\SprykerEco\Client\CoreMedia\CoreMediaConfig + * @return \PHPUnit\Framework\MockObject\MockObject|\SprykerEco\Client\Coremedia\CoremediaConfig */ - protected function getCoreMediaConfigMock(): CoreMediaConfig + protected function getCoremediaConfigMock(): CoremediaConfig { - $coreMediaConfigMock = $this->getMockBuilder(CoreMediaConfig::class) - ->setMethods(['getCoreMediaHost', 'getApplicationStoreMapping', 'getApplicationStoreLocaleMapping']) + $coreMediaConfigMock = $this->getMockBuilder(CoremediaConfig::class) + ->setMethods(['getCoremediaHost', 'getApplicationStoreMapping', 'getApplicationStoreLocaleMapping']) ->getMock(); - $coreMediaConfigMock->method('getCoreMediaHost')->willReturn(static::CORE_MEDIA_HOST); + $coreMediaConfigMock->method('getCoremediaHost')->willReturn(static::COREMEDIA_HOST); $coreMediaConfigMock->method('getApplicationStoreMapping') ->willReturn(static::APPLICATION_STORE_MAPPING); $coreMediaConfigMock->method('getApplicationStoreLocaleMapping') @@ -139,14 +139,14 @@ protected function getCoreMediaConfigMock(): CoreMediaConfig } /** - * @return \PHPUnit\Framework\MockObject\MockObject|\SprykerEco\Client\CoreMedia\CoreMediaFactory + * @return \PHPUnit\Framework\MockObject\MockObject|\SprykerEco\Client\Coremedia\CoremediaFactory */ - protected function getCoreMediaFactoryMock(): CoreMediaFactory + protected function getCoremediaFactoryMock(): CoremediaFactory { - $coreMediaFactoryMock = $this->getMockBuilder(CoreMediaFactory::class) + $coreMediaFactoryMock = $this->getMockBuilder(CoremediaFactory::class) ->setMethods(['getConfig']) ->getMock(); - $coreMediaFactoryMock->method('getConfig')->willReturn($this->getCoreMediaConfigMock()); + $coreMediaFactoryMock->method('getConfig')->willReturn($this->getCoremediaConfigMock()); return $coreMediaFactoryMock; } diff --git a/tests/SprykerEcoTest/Client/CoreMedia/_support/CoreMediaClientTester.php b/tests/SprykerEcoTest/Client/Coremedia/_support/CoremediaClientTester.php similarity index 82% rename from tests/SprykerEcoTest/Client/CoreMedia/_support/CoreMediaClientTester.php rename to tests/SprykerEcoTest/Client/Coremedia/_support/CoremediaClientTester.php index ddb1376..0a3b392 100644 --- a/tests/SprykerEcoTest/Client/CoreMedia/_support/CoreMediaClientTester.php +++ b/tests/SprykerEcoTest/Client/Coremedia/_support/CoremediaClientTester.php @@ -5,7 +5,7 @@ * Use of this software requires acceptance of the Evaluation License Agreement. See LICENSE file. */ -namespace SprykerEcoTest\Client\CoreMedia; +namespace SprykerEcoTest\Client\Coremedia; use Codeception\Actor; @@ -25,7 +25,7 @@ * * @SuppressWarnings(PHPMD) */ -class CoreMediaClientTester extends Actor +class CoremediaClientTester extends Actor { - use _generated\CoreMediaClientTesterActions; + use _generated\CoremediaClientTesterActions; } diff --git a/tests/SprykerEcoTest/Client/Coremedia/_support/Helper/CoremediaHelper.php b/tests/SprykerEcoTest/Client/Coremedia/_support/Helper/CoremediaHelper.php new file mode 100644 index 0000000..d371cd0 --- /dev/null +++ b/tests/SprykerEcoTest/Client/Coremedia/_support/Helper/CoremediaHelper.php @@ -0,0 +1,25 @@ +build(); + } +} diff --git a/tests/SprykerEcoTest/Client/CoreMedia/codeception.yml b/tests/SprykerEcoTest/Client/Coremedia/codeception.yml similarity index 78% rename from tests/SprykerEcoTest/Client/CoreMedia/codeception.yml rename to tests/SprykerEcoTest/Client/Coremedia/codeception.yml index a36f8d2..4f241f6 100644 --- a/tests/SprykerEcoTest/Client/CoreMedia/codeception.yml +++ b/tests/SprykerEcoTest/Client/Coremedia/codeception.yml @@ -1,4 +1,4 @@ -namespace: SprykerEcoTest\Client\CoreMedia +namespace: SprykerEcoTest\Client\Coremedia paths: tests: . @@ -14,7 +14,7 @@ coverage: suites: Client: path: . - class_name: CoreMediaClientTester + class_name: CoremediaClientTester modules: enabled: - \SprykerTest\Shared\Testify\Helper\Environment @@ -22,4 +22,4 @@ suites: projectNamespaces: - 'SprykerEco' - 'SprykerEcoTest' - - \SprykerEcoTest\Client\CoreMedia\Helper\CoreMediaHelper + - \SprykerEcoTest\Client\Coremedia\Helper\CoremediaHelper diff --git a/tests/SprykerEcoTest/Yves/CoreMedia/ApiResponse/ApiResponsePreparatorTest.php b/tests/SprykerEcoTest/Yves/Coremedia/ApiResponse/ApiResponsePreparatorTest.php similarity index 78% rename from tests/SprykerEcoTest/Yves/CoreMedia/ApiResponse/ApiResponsePreparatorTest.php rename to tests/SprykerEcoTest/Yves/Coremedia/ApiResponse/ApiResponsePreparatorTest.php index db72ae5..ee23837 100644 --- a/tests/SprykerEcoTest/Yves/CoreMedia/ApiResponse/ApiResponsePreparatorTest.php +++ b/tests/SprykerEcoTest/Yves/Coremedia/ApiResponse/ApiResponsePreparatorTest.php @@ -5,24 +5,24 @@ * Use of this software requires acceptance of the Evaluation License Agreement. See LICENSE file. */ -namespace SprykerEcoTest\Yves\CoreMedia\ApiResponse; +namespace SprykerEcoTest\Yves\Coremedia\ApiResponse; use Codeception\Test\Unit; use Generated\Shared\Transfer\CategoryNodeStorageTransfer; -use Generated\Shared\Transfer\CoreMediaApiResponseTransfer; +use Generated\Shared\Transfer\CoremediaApiResponseTransfer; use Generated\Shared\Transfer\CurrentProductPriceTransfer; use Generated\Shared\Transfer\MoneyTransfer; use Generated\Shared\Transfer\MoneyValueTransfer; use Generated\Shared\Transfer\PriceProductTransfer; -use SprykerEco\Client\CoreMedia\CoreMediaClientInterface; -use SprykerEco\Yves\CoreMedia\CoreMediaConfig; -use SprykerEco\Yves\CoreMedia\CoreMediaFactory; -use SprykerEco\Yves\CoreMedia\Dependency\Client\CoreMediaToCategoryStorageClientInterface; -use SprykerEco\Yves\CoreMedia\Dependency\Client\CoreMediaToMoneyClientInterface; -use SprykerEco\Yves\CoreMedia\Dependency\Client\CoreMediaToPriceProductClientInterface; -use SprykerEco\Yves\CoreMedia\Dependency\Client\CoreMediaToPriceProductStorageClientInterface; -use SprykerEco\Yves\CoreMedia\Dependency\Client\CoreMediaToProductStorageClientInterface; -use SprykerEco\Yves\CoreMedia\Dependency\Service\CoreMediaToUtilEncodingServiceInterface; +use SprykerEco\Client\Coremedia\CoremediaClientInterface; +use SprykerEco\Yves\Coremedia\CoremediaConfig; +use SprykerEco\Yves\Coremedia\CoremediaFactory; +use SprykerEco\Yves\Coremedia\Dependency\Client\CoremediaToCategoryStorageClientInterface; +use SprykerEco\Yves\Coremedia\Dependency\Client\CoremediaToMoneyClientInterface; +use SprykerEco\Yves\Coremedia\Dependency\Client\CoremediaToPriceProductClientInterface; +use SprykerEco\Yves\Coremedia\Dependency\Client\CoremediaToPriceProductStorageClientInterface; +use SprykerEco\Yves\Coremedia\Dependency\Client\CoremediaToProductStorageClientInterface; +use SprykerEco\Yves\Coremedia\Dependency\Service\CoremediaToUtilEncodingServiceInterface; use Symfony\Component\Routing\Generator\UrlGeneratorInterface; class ApiResponsePreparatorTest extends Unit @@ -62,7 +62,7 @@ class ApiResponsePreparatorTest extends Unit . 'Page url'; /** - * @var \SprykerEcoTest\Yves\CoreMedia\CoreMediaYvesTester + * @var \SprykerEcoTest\Yves\Coremedia\CoremediaYvesTester */ protected $tester; @@ -75,9 +75,9 @@ class ApiResponsePreparatorTest extends Unit */ public function testApiResponsePreparatorProvidesCorrectDataWithReplacedPlaceholders(string $correctApiResponseData): void { - $unprocessedCoreMediaApiResponseTransfer = $this->tester->getCoreMediaApiResponseTransfer([ - CoreMediaApiResponseTransfer::IS_SUCCESSFUL => true, - CoreMediaApiResponseTransfer::DATA => $correctApiResponseData, + $unprocessedCoremediaApiResponseTransfer = $this->tester->getCoremediaApiResponseTransfer([ + CoremediaApiResponseTransfer::IS_SUCCESSFUL => true, + CoremediaApiResponseTransfer::DATA => $correctApiResponseData, ]); $categoryNodeStorageTransfer = $this->tester->getCategoryNodeStorageTransfer([ @@ -85,7 +85,7 @@ public function testApiResponsePreparatorProvidesCorrectDataWithReplacedPlacehol ]); $coreMediaApiResponseTransfer = $this->prepare( - $unprocessedCoreMediaApiResponseTransfer, + $unprocessedCoremediaApiResponseTransfer, static::PRODUCT_ABSTRACT_STORAGE_DATA, static::PRODUCT_CONCRETE_STORAGE_DATA, $categoryNodeStorageTransfer, @@ -114,9 +114,9 @@ public function testApiResponsePreparatorProvidesCorrectDataWithReplacedPlacehol public function testApiResponsePreparatorReturnsTheSameDataOnIncorrectPlaceholderObjectType( string $nonexistentPlaceholderObjectTypeApiResponseData ): void { - $unprocessedCoreMediaApiResponseTransfer = $this->tester->getCoreMediaApiResponseTransfer([ - CoreMediaApiResponseTransfer::IS_SUCCESSFUL => true, - CoreMediaApiResponseTransfer::DATA => $nonexistentPlaceholderObjectTypeApiResponseData, + $unprocessedCoremediaApiResponseTransfer = $this->tester->getCoremediaApiResponseTransfer([ + CoremediaApiResponseTransfer::IS_SUCCESSFUL => true, + CoremediaApiResponseTransfer::DATA => $nonexistentPlaceholderObjectTypeApiResponseData, ]); $categoryNodeStorageTransfer = $this->tester->getCategoryNodeStorageTransfer([ @@ -124,7 +124,7 @@ public function testApiResponsePreparatorReturnsTheSameDataOnIncorrectPlaceholde ]); $coreMediaApiResponseTransfer = $this->prepare( - $unprocessedCoreMediaApiResponseTransfer, + $unprocessedCoremediaApiResponseTransfer, static::PRODUCT_ABSTRACT_STORAGE_DATA, static::PRODUCT_CONCRETE_STORAGE_DATA, $categoryNodeStorageTransfer, @@ -146,15 +146,15 @@ public function testApiResponsePreparatorReturnsTheSameDataOnIncorrectPlaceholde */ public function testApiResponsePreparatorFailsOnIncorrectPlaceholdersData(string $incorrectApiResponseData): void { - $unprocessedCoreMediaApiResponseTransfer = $this->tester->getCoreMediaApiResponseTransfer([ - CoreMediaApiResponseTransfer::IS_SUCCESSFUL => true, - CoreMediaApiResponseTransfer::DATA => $incorrectApiResponseData, + $unprocessedCoremediaApiResponseTransfer = $this->tester->getCoremediaApiResponseTransfer([ + CoremediaApiResponseTransfer::IS_SUCCESSFUL => true, + CoremediaApiResponseTransfer::DATA => $incorrectApiResponseData, ]); $categoryNodeStorageTransfer = $this->tester->getCategoryNodeStorageTransfer([]); $coreMediaApiResponseTransfer = $this->prepare( - $unprocessedCoreMediaApiResponseTransfer, + $unprocessedCoremediaApiResponseTransfer, [], [], $categoryNodeStorageTransfer, @@ -172,21 +172,21 @@ public function testApiResponsePreparatorFailsOnIncorrectPlaceholdersData(string } /** - * @param \Generated\Shared\Transfer\CoreMediaApiResponseTransfer $unprocessedCoreMediaApiResponseTransfer + * @param \Generated\Shared\Transfer\CoremediaApiResponseTransfer $unprocessedCoremediaApiResponseTransfer * @param array $productAbstractStorageData * @param array $productConcreteStorageData * @param \Generated\Shared\Transfer\CategoryNodeStorageTransfer $categoryNodeStorageTransfer * @param string $externalSeoSegment * - * @return \Generated\Shared\Transfer\CoreMediaApiResponseTransfer + * @return \Generated\Shared\Transfer\CoremediaApiResponseTransfer */ protected function prepare( - CoreMediaApiResponseTransfer $unprocessedCoreMediaApiResponseTransfer, + CoremediaApiResponseTransfer $unprocessedCoremediaApiResponseTransfer, array $productAbstractStorageData, array $productConcreteStorageData, CategoryNodeStorageTransfer $categoryNodeStorageTransfer, string $externalSeoSegment - ): CoreMediaApiResponseTransfer { + ): CoremediaApiResponseTransfer { $productStorageClient = $this->getProductStorageClientMock( $productAbstractStorageData, $productConcreteStorageData @@ -197,7 +197,7 @@ protected function prepare( $moneyClient = $this->getMoneyClientMock(); $urlGenerator = $this->getUrlGeneratorMock($externalSeoSegment); - $apiResponsePreparator = $this->getCoreMediaFactoryMock( + $apiResponsePreparator = $this->getCoremediaFactoryMock( $productStorageClient, $categoryStorageClient, $priceProductStorageClient, @@ -207,8 +207,8 @@ protected function prepare( )->createApiResponsePreparator(); return $apiResponsePreparator->prepare( - $this->getCoreMediaClientMock($unprocessedCoreMediaApiResponseTransfer)->getDocumentFragment( - $this->tester->getCoreMediaFragmentRequestTransfer() + $this->getCoremediaClientMock($unprocessedCoremediaApiResponseTransfer)->getDocumentFragment( + $this->tester->getCoremediaFragmentRequestTransfer() ), 'en_US' ); @@ -219,7 +219,7 @@ protected function prepare( */ protected function getUtilEncodingMock() { - $utilEncodingMock = $this->getMockBuilder(CoreMediaToUtilEncodingServiceInterface::class) + $utilEncodingMock = $this->getMockBuilder(CoremediaToUtilEncodingServiceInterface::class) ->disableOriginalConstructor() ->setMethods(['decodeJson']) ->getMock(); @@ -237,13 +237,13 @@ protected function getUtilEncodingMock() * @param array $productAbstractStorageData * @param array $productConcreteStorageData * - * @return \SprykerEco\Yves\CoreMedia\Dependency\Client\CoreMediaToProductStorageClientInterface|\PHPUnit\Framework\MockObject\MockObject + * @return \SprykerEco\Yves\Coremedia\Dependency\Client\CoremediaToProductStorageClientInterface|\PHPUnit\Framework\MockObject\MockObject */ protected function getProductStorageClientMock( array $productAbstractStorageData, array $productConcreteStorageData - ): CoreMediaToProductStorageClientInterface { - $coreMediaToProductStorageClientBridge = $this->getMockBuilder(CoreMediaToProductStorageClientInterface::class)->getMock(); + ): CoremediaToProductStorageClientInterface { + $coreMediaToProductStorageClientBridge = $this->getMockBuilder(CoremediaToProductStorageClientInterface::class)->getMock(); $coreMediaToProductStorageClientBridge ->method('findProductAbstractStorageDataByMapping') ->willReturnCallback(function (string $mappingType, string $identifier) use ($productAbstractStorageData) { @@ -261,12 +261,12 @@ protected function getProductStorageClientMock( /** * @param \Generated\Shared\Transfer\CategoryNodeStorageTransfer $categoryNodeStorageTransfer * - * @return \SprykerEco\Yves\CoreMedia\Dependency\Client\CoreMediaToCategoryStorageClientInterface|\PHPUnit\Framework\MockObject\MockObject + * @return \SprykerEco\Yves\Coremedia\Dependency\Client\CoremediaToCategoryStorageClientInterface|\PHPUnit\Framework\MockObject\MockObject */ protected function getCategoryStorageClientMock( CategoryNodeStorageTransfer $categoryNodeStorageTransfer - ): CoreMediaToCategoryStorageClientInterface { - $coreMediaToCategoryStorageClientBridge = $this->getMockBuilder(CoreMediaToCategoryStorageClientInterface::class)->getMock(); + ): CoremediaToCategoryStorageClientInterface { + $coreMediaToCategoryStorageClientBridge = $this->getMockBuilder(CoremediaToCategoryStorageClientInterface::class)->getMock(); $coreMediaToCategoryStorageClientBridge->method('getCategoryNodeById')->willReturn( $categoryNodeStorageTransfer ); @@ -275,11 +275,11 @@ protected function getCategoryStorageClientMock( } /** - * @return \SprykerEco\Yves\CoreMedia\Dependency\Client\CoreMediaToPriceProductStorageClientInterface|\PHPUnit\Framework\MockObject\MockObject + * @return \SprykerEco\Yves\Coremedia\Dependency\Client\CoremediaToPriceProductStorageClientInterface|\PHPUnit\Framework\MockObject\MockObject */ - protected function getPriceProductStorageClientMock(): CoreMediaToPriceProductStorageClientInterface + protected function getPriceProductStorageClientMock(): CoremediaToPriceProductStorageClientInterface { - $coreMediaToPriceProductStorageClientBridge = $this->getMockBuilder(CoreMediaToPriceProductStorageClientInterface::class)->getMock(); + $coreMediaToPriceProductStorageClientBridge = $this->getMockBuilder(CoremediaToPriceProductStorageClientInterface::class)->getMock(); $coreMediaToPriceProductStorageClientBridge->method('getPriceProductAbstractTransfers')->willReturn([ $this->tester->getPriceProductTransfer([ PriceProductTransfer::MONEY_VALUE => $this->tester->getMoneyValueTransfer([ @@ -299,11 +299,11 @@ protected function getPriceProductStorageClientMock(): CoreMediaToPriceProductSt } /** - * @return \SprykerEco\Yves\CoreMedia\Dependency\Client\CoreMediaToPriceProductClientInterface|\PHPUnit\Framework\MockObject\MockObject + * @return \SprykerEco\Yves\Coremedia\Dependency\Client\CoremediaToPriceProductClientInterface|\PHPUnit\Framework\MockObject\MockObject */ - protected function getPriceProductClientMock(): CoreMediaToPriceProductClientInterface + protected function getPriceProductClientMock(): CoremediaToPriceProductClientInterface { - $coreMediaToPriceProductClientBridge = $this->getMockBuilder(CoreMediaToPriceProductClientInterface::class)->getMock(); + $coreMediaToPriceProductClientBridge = $this->getMockBuilder(CoremediaToPriceProductClientInterface::class)->getMock(); $coreMediaToPriceProductClientBridge->method('resolveProductPriceTransfer')->willReturnCallback(function (array $priceProductTransfers) { return $this->tester->getCurrentProductPriceTransfer([ CurrentProductPriceTransfer::PRICE => $priceProductTransfers[0]->getMoneyValue()->getNetAmount(), @@ -315,11 +315,11 @@ protected function getPriceProductClientMock(): CoreMediaToPriceProductClientInt } /** - * @return \SprykerEco\Yves\CoreMedia\Dependency\Client\CoreMediaToMoneyClientInterface|\PHPUnit\Framework\MockObject\MockObject + * @return \SprykerEco\Yves\Coremedia\Dependency\Client\CoremediaToMoneyClientInterface|\PHPUnit\Framework\MockObject\MockObject */ - protected function getMoneyClientMock(): CoreMediaToMoneyClientInterface + protected function getMoneyClientMock(): CoremediaToMoneyClientInterface { - $coreMediaToMoneyClientBridge = $this->getMockBuilder(CoreMediaToMoneyClientInterface::class)->getMock(); + $coreMediaToMoneyClientBridge = $this->getMockBuilder(CoremediaToMoneyClientInterface::class)->getMock(); $coreMediaToMoneyClientBridge->method('formatWithSymbol')->willReturnCallback(function (MoneyTransfer $moneyTransfer) { return static::CURRENCY_CODE . $moneyTransfer->getAmount(); }); @@ -328,24 +328,24 @@ protected function getMoneyClientMock(): CoreMediaToMoneyClientInterface } /** - * @param \SprykerEco\Yves\CoreMedia\Dependency\Client\CoreMediaToProductStorageClientInterface $productStorageClient - * @param \SprykerEco\Yves\CoreMedia\Dependency\Client\CoreMediaToCategoryStorageClientInterface $categoryStorageClient - * @param \SprykerEco\Yves\CoreMedia\Dependency\Client\CoreMediaToPriceProductStorageClientInterface $priceProductStorageClient - * @param \SprykerEco\Yves\CoreMedia\Dependency\Client\CoreMediaToPriceProductClientInterface $priceProductClient - * @param \SprykerEco\Yves\CoreMedia\Dependency\Client\CoreMediaToMoneyClientInterface $moneyClient + * @param \SprykerEco\Yves\Coremedia\Dependency\Client\CoremediaToProductStorageClientInterface $productStorageClient + * @param \SprykerEco\Yves\Coremedia\Dependency\Client\CoremediaToCategoryStorageClientInterface $categoryStorageClient + * @param \SprykerEco\Yves\Coremedia\Dependency\Client\CoremediaToPriceProductStorageClientInterface $priceProductStorageClient + * @param \SprykerEco\Yves\Coremedia\Dependency\Client\CoremediaToPriceProductClientInterface $priceProductClient + * @param \SprykerEco\Yves\Coremedia\Dependency\Client\CoremediaToMoneyClientInterface $moneyClient * @param \Symfony\Component\Routing\Generator\UrlGeneratorInterface $urlGenerator * - * @return \PHPUnit\Framework\MockObject\MockObject|\SprykerEco\Yves\CoreMedia\CoreMediaFactory + * @return \PHPUnit\Framework\MockObject\MockObject|\SprykerEco\Yves\Coremedia\CoremediaFactory */ - protected function getCoreMediaFactoryMock( - CoreMediaToProductStorageClientInterface $productStorageClient, - CoreMediaToCategoryStorageClientInterface $categoryStorageClient, - CoreMediaToPriceProductStorageClientInterface $priceProductStorageClient, - CoreMediaToPriceProductClientInterface $priceProductClient, - CoreMediaToMoneyClientInterface $moneyClient, + protected function getCoremediaFactoryMock( + CoremediaToProductStorageClientInterface $productStorageClient, + CoremediaToCategoryStorageClientInterface $categoryStorageClient, + CoremediaToPriceProductStorageClientInterface $priceProductStorageClient, + CoremediaToPriceProductClientInterface $priceProductClient, + CoremediaToMoneyClientInterface $moneyClient, UrlGeneratorInterface $urlGenerator - ): CoreMediaFactory { - $coreMediaFactoryMock = $this->getMockBuilder(CoreMediaFactory::class) + ): CoremediaFactory { + $coreMediaFactoryMock = $this->getMockBuilder(CoremediaFactory::class) ->setMethods([ 'getConfig', 'getUtilEncodingService', @@ -358,7 +358,7 @@ protected function getCoreMediaFactoryMock( ])->getMock(); $coreMediaFactoryMock->method('getConfig')->willReturn( - $this->getCoreMediaConfigMock() + $this->getCoremediaConfigMock() ); $coreMediaFactoryMock->method('getUtilEncodingService')->willReturn( $this->getUtilEncodingMock() @@ -374,11 +374,11 @@ protected function getCoreMediaFactoryMock( } /** - * @return \PHPUnit\Framework\MockObject\MockObject|\SprykerEco\Yves\CoreMedia\CoreMediaConfig + * @return \PHPUnit\Framework\MockObject\MockObject|\SprykerEco\Yves\Coremedia\CoremediaConfig */ - protected function getCoreMediaConfigMock(): CoreMediaConfig + protected function getCoremediaConfigMock(): CoremediaConfig { - $coreMediaConfigMock = $this->getMockBuilder(CoreMediaConfig::class) + $coreMediaConfigMock = $this->getMockBuilder(CoremediaConfig::class) ->setMethods(['isDebugModeEnabled'])->getMock(); $coreMediaConfigMock->method('isDebugModeEnabled')->willReturn(static::IS_DEBUG_MODE_ENABLED); @@ -386,14 +386,14 @@ protected function getCoreMediaConfigMock(): CoreMediaConfig } /** - * @param \Generated\Shared\Transfer\CoreMediaApiResponseTransfer $coreMediaApiResponseTransfer + * @param \Generated\Shared\Transfer\CoremediaApiResponseTransfer $coreMediaApiResponseTransfer * - * @return \PHPUnit\Framework\MockObject\MockObject|\SprykerEco\Client\CoreMedia\CoreMediaClientInterface + * @return \PHPUnit\Framework\MockObject\MockObject|\SprykerEco\Client\Coremedia\CoremediaClientInterface */ - protected function getCoreMediaClientMock( - CoreMediaApiResponseTransfer $coreMediaApiResponseTransfer - ): CoreMediaClientInterface { - $coreMediaClientMock = $this->getMockBuilder(CoreMediaClientInterface::class) + protected function getCoremediaClientMock( + CoremediaApiResponseTransfer $coreMediaApiResponseTransfer + ): CoremediaClientInterface { + $coreMediaClientMock = $this->getMockBuilder(CoremediaClientInterface::class) ->setMethods(['getDocumentFragment']) ->getMock(); $coreMediaClientMock->method('getDocumentFragment')->willReturn($coreMediaApiResponseTransfer); diff --git a/tests/SprykerEcoTest/Yves/CoreMedia/_support/CoreMediaYvesTester.php b/tests/SprykerEcoTest/Yves/Coremedia/_support/CoremediaYvesTester.php similarity index 84% rename from tests/SprykerEcoTest/Yves/CoreMedia/_support/CoreMediaYvesTester.php rename to tests/SprykerEcoTest/Yves/Coremedia/_support/CoremediaYvesTester.php index b185d08..3a5e7f1 100644 --- a/tests/SprykerEcoTest/Yves/CoreMedia/_support/CoreMediaYvesTester.php +++ b/tests/SprykerEcoTest/Yves/Coremedia/_support/CoremediaYvesTester.php @@ -5,7 +5,7 @@ * Use of this software requires acceptance of the Evaluation License Agreement. See LICENSE file. */ -namespace SprykerEcoTest\Yves\CoreMedia; +namespace SprykerEcoTest\Yves\Coremedia; use Codeception\Actor; @@ -25,9 +25,9 @@ * * @SuppressWarnings(PHPMD) */ -class CoreMediaYvesTester extends Actor +class CoremediaYvesTester extends Actor { - use _generated\CoreMediaYvesTesterActions; + use _generated\CoremediaYvesTesterActions; /** * Define custom actions here diff --git a/tests/SprykerEcoTest/Yves/CoreMedia/_support/Helper/CoreMediaHelper.php b/tests/SprykerEcoTest/Yves/Coremedia/_support/Helper/CoremediaHelper.php similarity index 74% rename from tests/SprykerEcoTest/Yves/CoreMedia/_support/Helper/CoreMediaHelper.php rename to tests/SprykerEcoTest/Yves/Coremedia/_support/Helper/CoremediaHelper.php index 6903f95..43bbd67 100644 --- a/tests/SprykerEcoTest/Yves/CoreMedia/_support/Helper/CoreMediaHelper.php +++ b/tests/SprykerEcoTest/Yves/Coremedia/_support/Helper/CoremediaHelper.php @@ -5,44 +5,44 @@ * Use of this software requires acceptance of the Evaluation License Agreement. See LICENSE file. */ -namespace SprykerEcoTest\Yves\CoreMedia\Helper; +namespace SprykerEcoTest\Yves\Coremedia\Helper; use Codeception\Module; use Generated\Shared\DataBuilder\CategoryNodeStorageBuilder; -use Generated\Shared\DataBuilder\CoreMediaApiResponseBuilder; -use Generated\Shared\DataBuilder\CoreMediaFragmentRequestBuilder; +use Generated\Shared\DataBuilder\CoremediaApiResponseBuilder; +use Generated\Shared\DataBuilder\CoremediaFragmentRequestBuilder; use Generated\Shared\DataBuilder\CurrencyBuilder; use Generated\Shared\DataBuilder\CurrentProductPriceBuilder; use Generated\Shared\DataBuilder\MoneyValueBuilder; use Generated\Shared\DataBuilder\PriceProductBuilder; use Generated\Shared\Transfer\CategoryNodeStorageTransfer; -use Generated\Shared\Transfer\CoreMediaApiResponseTransfer; -use Generated\Shared\Transfer\CoreMediaFragmentRequestTransfer; +use Generated\Shared\Transfer\CoremediaApiResponseTransfer; +use Generated\Shared\Transfer\CoremediaFragmentRequestTransfer; use Generated\Shared\Transfer\CurrencyTransfer; use Generated\Shared\Transfer\CurrentProductPriceTransfer; use Generated\Shared\Transfer\MoneyValueTransfer; use Generated\Shared\Transfer\PriceProductTransfer; -class CoreMediaHelper extends Module +class CoremediaHelper extends Module { /** * @param array $seedData * - * @return \Generated\Shared\Transfer\CoreMediaFragmentRequestTransfer + * @return \Generated\Shared\Transfer\CoremediaFragmentRequestTransfer */ - public function getCoreMediaFragmentRequestTransfer(array $seedData = []): CoreMediaFragmentRequestTransfer + public function getCoremediaFragmentRequestTransfer(array $seedData = []): CoremediaFragmentRequestTransfer { - return (new CoreMediaFragmentRequestBuilder($seedData))->build(); + return (new CoremediaFragmentRequestBuilder($seedData))->build(); } /** * @param array $seedData * - * @return \Generated\Shared\Transfer\CoreMediaApiResponseTransfer + * @return \Generated\Shared\Transfer\CoremediaApiResponseTransfer */ - public function getCoreMediaApiResponseTransfer(array $seedData = []): CoreMediaApiResponseTransfer + public function getCoremediaApiResponseTransfer(array $seedData = []): CoremediaApiResponseTransfer { - return (new CoreMediaApiResponseBuilder($seedData))->build(); + return (new CoremediaApiResponseBuilder($seedData))->build(); } /** diff --git a/tests/SprykerEcoTest/Yves/CoreMedia/codeception.yml b/tests/SprykerEcoTest/Yves/Coremedia/codeception.yml similarity index 78% rename from tests/SprykerEcoTest/Yves/CoreMedia/codeception.yml rename to tests/SprykerEcoTest/Yves/Coremedia/codeception.yml index 0e68518..27c26a6 100644 --- a/tests/SprykerEcoTest/Yves/CoreMedia/codeception.yml +++ b/tests/SprykerEcoTest/Yves/Coremedia/codeception.yml @@ -1,4 +1,4 @@ -namespace: SprykerEcoTest\Yves\CoreMedia +namespace: SprykerEcoTest\Yves\Coremedia paths: tests: . @@ -14,7 +14,7 @@ coverage: suites: Yves: path: . - class_name: CoreMediaYvesTester + class_name: CoremediaYvesTester modules: enabled: - \SprykerTest\Shared\Testify\Helper\Environment @@ -22,4 +22,4 @@ suites: projectNamespaces: - 'SprykerEco' - 'SprykerEcoTest' - - \SprykerEcoTest\Yves\CoreMedia\Helper\CoreMediaHelper + - \SprykerEcoTest\Yves\Coremedia\Helper\CoremediaHelper diff --git a/tooling.yml b/tooling.yml index e556dd1..d25e7d8 100644 --- a/tooling.yml +++ b/tooling.yml @@ -1,7 +1,7 @@ architecture-sniffer: priority: 2 ignoreErrors: - - '#SprykerEco\\Client\\CoreMedia\\Api\\ApiClientInterface[a-zA-Z\s:()]+\@api#' + - '#SprykerEco\\Client\\Coremedia\\Api\\ApiClientInterface[a-zA-Z\s:()]+\@api#' code-sniffer: level: 1 From 78dcff7633e5500e860587ba2c186d0fc754813e Mon Sep 17 00:00:00 2001 From: Anton Zubariev Date: Wed, 16 Oct 2019 15:31:57 +0300 Subject: [PATCH 2/3] [CMS-2969] Fixed one folder left --- .../ApiResponse/ApiResponsePreparator.php | 0 .../ApiResponse/ApiResponsePreparatorInterface.php | 0 .../ApiResponse/Executor/IncorrectPlaceholderDataExecutor.php | 0 .../Executor/IncorrectPlaceholderDataExecutorInterface.php | 0 .../ApiResponse/Parser/PlaceholderParser.php | 0 .../ApiResponse/Parser/PlaceholderParserInterface.php | 0 .../ApiResponse/PostProcessor/PlaceholderPostProcessor.php | 0 .../PostProcessor/PlaceholderPostProcessorInterface.php | 0 .../Renderer/CategoryUrlPlaceholderReplacementRenderer.php | 0 .../Renderer/CustomPageUrlPlaceholderReplacementRenderer.php | 0 .../Renderer/PageMetadataPlaceholderReplacementRenderer.php | 0 .../Renderer/PlaceholderReplacementRendererInterface.php | 0 .../Renderer/ProductPricePlaceholderReplacementRenderer.php | 0 .../Renderer/ProductUrlPlaceholderReplacementRenderer.php | 0 .../ApiResponse/Replacer/Metadata/DescriptionMetadataReplacer.php | 0 .../ApiResponse/Replacer/Metadata/KeywordsMetadataReplacer.php | 0 .../ApiResponse/Replacer/Metadata/MetadataReplacerInterface.php | 0 .../ApiResponse/Replacer/Metadata/PageNameMetadataReplacer.php | 0 .../ApiResponse/Replacer/Metadata/TitleMetadataReplacer.php | 0 .../ApiResponse/Replacer/PlaceholderReplacer.php | 0 .../ApiResponse/Replacer/PlaceholderReplacerInterface.php | 0 .../ApiResponse/Resolver/ApiResponseResolverInterface.php | 0 .../ApiResponse/Resolver/PlaceholderResolver.php | 0 src/SprykerEco/Yves/{CoreMedia => Coremedia}/CoremediaConfig.php | 0 .../Yves/{CoreMedia => Coremedia}/CoremediaDependencyProvider.php | 0 src/SprykerEco/Yves/{CoreMedia => Coremedia}/CoremediaFactory.php | 0 .../Dependency/Client/CoremediaToCategoryStorageClientBridge.php | 0 .../Client/CoremediaToCategoryStorageClientInterface.php | 0 .../Dependency/Client/CoremediaToMoneyClientBridge.php | 0 .../Dependency/Client/CoremediaToMoneyClientInterface.php | 0 .../Dependency/Client/CoremediaToPriceProductClientBridge.php | 0 .../Dependency/Client/CoremediaToPriceProductClientInterface.php | 0 .../Client/CoremediaToPriceProductStorageClientBridge.php | 0 .../Client/CoremediaToPriceProductStorageClientInterface.php | 0 .../Dependency/Client/CoremediaToProductStorageClientBridge.php | 0 .../Client/CoremediaToProductStorageClientInterface.php | 0 .../Dependency/Service/CoremediaToUtilEncodingServiceBridge.php | 0 .../Service/CoremediaToUtilEncodingServiceInterface.php | 0 .../Exception/InvalidPlaceholderDataException.php | 0 .../Exception/MissingRequestParameterException.php | 0 .../{CoreMedia => Coremedia}/Formatter/ProductPriceFormatter.php | 0 .../Formatter/ProductPriceFormatterInterface.php | 0 .../Yves/{CoreMedia => Coremedia}/Mapper/ApiContextMapper.php | 0 .../{CoreMedia => Coremedia}/Mapper/ApiContextMapperInterface.php | 0 .../Plugin/ShopCmsSlot/CoremediaCmsSlotContentPlugin.php | 0 .../Reader/CmsSlotContent/CmsSlotContentReader.php | 0 .../Reader/CmsSlotContent/CmsSlotContentReaderInterface.php | 0 47 files changed, 0 insertions(+), 0 deletions(-) rename src/SprykerEco/Yves/{CoreMedia => Coremedia}/ApiResponse/ApiResponsePreparator.php (100%) rename src/SprykerEco/Yves/{CoreMedia => Coremedia}/ApiResponse/ApiResponsePreparatorInterface.php (100%) rename src/SprykerEco/Yves/{CoreMedia => Coremedia}/ApiResponse/Executor/IncorrectPlaceholderDataExecutor.php (100%) rename src/SprykerEco/Yves/{CoreMedia => Coremedia}/ApiResponse/Executor/IncorrectPlaceholderDataExecutorInterface.php (100%) rename src/SprykerEco/Yves/{CoreMedia => Coremedia}/ApiResponse/Parser/PlaceholderParser.php (100%) rename src/SprykerEco/Yves/{CoreMedia => Coremedia}/ApiResponse/Parser/PlaceholderParserInterface.php (100%) rename src/SprykerEco/Yves/{CoreMedia => Coremedia}/ApiResponse/PostProcessor/PlaceholderPostProcessor.php (100%) rename src/SprykerEco/Yves/{CoreMedia => Coremedia}/ApiResponse/PostProcessor/PlaceholderPostProcessorInterface.php (100%) rename src/SprykerEco/Yves/{CoreMedia => Coremedia}/ApiResponse/Renderer/CategoryUrlPlaceholderReplacementRenderer.php (100%) rename src/SprykerEco/Yves/{CoreMedia => Coremedia}/ApiResponse/Renderer/CustomPageUrlPlaceholderReplacementRenderer.php (100%) rename src/SprykerEco/Yves/{CoreMedia => Coremedia}/ApiResponse/Renderer/PageMetadataPlaceholderReplacementRenderer.php (100%) rename src/SprykerEco/Yves/{CoreMedia => Coremedia}/ApiResponse/Renderer/PlaceholderReplacementRendererInterface.php (100%) rename src/SprykerEco/Yves/{CoreMedia => Coremedia}/ApiResponse/Renderer/ProductPricePlaceholderReplacementRenderer.php (100%) rename src/SprykerEco/Yves/{CoreMedia => Coremedia}/ApiResponse/Renderer/ProductUrlPlaceholderReplacementRenderer.php (100%) rename src/SprykerEco/Yves/{CoreMedia => Coremedia}/ApiResponse/Replacer/Metadata/DescriptionMetadataReplacer.php (100%) rename src/SprykerEco/Yves/{CoreMedia => Coremedia}/ApiResponse/Replacer/Metadata/KeywordsMetadataReplacer.php (100%) rename src/SprykerEco/Yves/{CoreMedia => Coremedia}/ApiResponse/Replacer/Metadata/MetadataReplacerInterface.php (100%) rename src/SprykerEco/Yves/{CoreMedia => Coremedia}/ApiResponse/Replacer/Metadata/PageNameMetadataReplacer.php (100%) rename src/SprykerEco/Yves/{CoreMedia => Coremedia}/ApiResponse/Replacer/Metadata/TitleMetadataReplacer.php (100%) rename src/SprykerEco/Yves/{CoreMedia => Coremedia}/ApiResponse/Replacer/PlaceholderReplacer.php (100%) rename src/SprykerEco/Yves/{CoreMedia => Coremedia}/ApiResponse/Replacer/PlaceholderReplacerInterface.php (100%) rename src/SprykerEco/Yves/{CoreMedia => Coremedia}/ApiResponse/Resolver/ApiResponseResolverInterface.php (100%) rename src/SprykerEco/Yves/{CoreMedia => Coremedia}/ApiResponse/Resolver/PlaceholderResolver.php (100%) rename src/SprykerEco/Yves/{CoreMedia => Coremedia}/CoremediaConfig.php (100%) rename src/SprykerEco/Yves/{CoreMedia => Coremedia}/CoremediaDependencyProvider.php (100%) rename src/SprykerEco/Yves/{CoreMedia => Coremedia}/CoremediaFactory.php (100%) rename src/SprykerEco/Yves/{CoreMedia => Coremedia}/Dependency/Client/CoremediaToCategoryStorageClientBridge.php (100%) rename src/SprykerEco/Yves/{CoreMedia => Coremedia}/Dependency/Client/CoremediaToCategoryStorageClientInterface.php (100%) rename src/SprykerEco/Yves/{CoreMedia => Coremedia}/Dependency/Client/CoremediaToMoneyClientBridge.php (100%) rename src/SprykerEco/Yves/{CoreMedia => Coremedia}/Dependency/Client/CoremediaToMoneyClientInterface.php (100%) rename src/SprykerEco/Yves/{CoreMedia => Coremedia}/Dependency/Client/CoremediaToPriceProductClientBridge.php (100%) rename src/SprykerEco/Yves/{CoreMedia => Coremedia}/Dependency/Client/CoremediaToPriceProductClientInterface.php (100%) rename src/SprykerEco/Yves/{CoreMedia => Coremedia}/Dependency/Client/CoremediaToPriceProductStorageClientBridge.php (100%) rename src/SprykerEco/Yves/{CoreMedia => Coremedia}/Dependency/Client/CoremediaToPriceProductStorageClientInterface.php (100%) rename src/SprykerEco/Yves/{CoreMedia => Coremedia}/Dependency/Client/CoremediaToProductStorageClientBridge.php (100%) rename src/SprykerEco/Yves/{CoreMedia => Coremedia}/Dependency/Client/CoremediaToProductStorageClientInterface.php (100%) rename src/SprykerEco/Yves/{CoreMedia => Coremedia}/Dependency/Service/CoremediaToUtilEncodingServiceBridge.php (100%) rename src/SprykerEco/Yves/{CoreMedia => Coremedia}/Dependency/Service/CoremediaToUtilEncodingServiceInterface.php (100%) rename src/SprykerEco/Yves/{CoreMedia => Coremedia}/Exception/InvalidPlaceholderDataException.php (100%) rename src/SprykerEco/Yves/{CoreMedia => Coremedia}/Exception/MissingRequestParameterException.php (100%) rename src/SprykerEco/Yves/{CoreMedia => Coremedia}/Formatter/ProductPriceFormatter.php (100%) rename src/SprykerEco/Yves/{CoreMedia => Coremedia}/Formatter/ProductPriceFormatterInterface.php (100%) rename src/SprykerEco/Yves/{CoreMedia => Coremedia}/Mapper/ApiContextMapper.php (100%) rename src/SprykerEco/Yves/{CoreMedia => Coremedia}/Mapper/ApiContextMapperInterface.php (100%) rename src/SprykerEco/Yves/{CoreMedia => Coremedia}/Plugin/ShopCmsSlot/CoremediaCmsSlotContentPlugin.php (100%) rename src/SprykerEco/Yves/{CoreMedia => Coremedia}/Reader/CmsSlotContent/CmsSlotContentReader.php (100%) rename src/SprykerEco/Yves/{CoreMedia => Coremedia}/Reader/CmsSlotContent/CmsSlotContentReaderInterface.php (100%) diff --git a/src/SprykerEco/Yves/CoreMedia/ApiResponse/ApiResponsePreparator.php b/src/SprykerEco/Yves/Coremedia/ApiResponse/ApiResponsePreparator.php similarity index 100% rename from src/SprykerEco/Yves/CoreMedia/ApiResponse/ApiResponsePreparator.php rename to src/SprykerEco/Yves/Coremedia/ApiResponse/ApiResponsePreparator.php diff --git a/src/SprykerEco/Yves/CoreMedia/ApiResponse/ApiResponsePreparatorInterface.php b/src/SprykerEco/Yves/Coremedia/ApiResponse/ApiResponsePreparatorInterface.php similarity index 100% rename from src/SprykerEco/Yves/CoreMedia/ApiResponse/ApiResponsePreparatorInterface.php rename to src/SprykerEco/Yves/Coremedia/ApiResponse/ApiResponsePreparatorInterface.php diff --git a/src/SprykerEco/Yves/CoreMedia/ApiResponse/Executor/IncorrectPlaceholderDataExecutor.php b/src/SprykerEco/Yves/Coremedia/ApiResponse/Executor/IncorrectPlaceholderDataExecutor.php similarity index 100% rename from src/SprykerEco/Yves/CoreMedia/ApiResponse/Executor/IncorrectPlaceholderDataExecutor.php rename to src/SprykerEco/Yves/Coremedia/ApiResponse/Executor/IncorrectPlaceholderDataExecutor.php diff --git a/src/SprykerEco/Yves/CoreMedia/ApiResponse/Executor/IncorrectPlaceholderDataExecutorInterface.php b/src/SprykerEco/Yves/Coremedia/ApiResponse/Executor/IncorrectPlaceholderDataExecutorInterface.php similarity index 100% rename from src/SprykerEco/Yves/CoreMedia/ApiResponse/Executor/IncorrectPlaceholderDataExecutorInterface.php rename to src/SprykerEco/Yves/Coremedia/ApiResponse/Executor/IncorrectPlaceholderDataExecutorInterface.php diff --git a/src/SprykerEco/Yves/CoreMedia/ApiResponse/Parser/PlaceholderParser.php b/src/SprykerEco/Yves/Coremedia/ApiResponse/Parser/PlaceholderParser.php similarity index 100% rename from src/SprykerEco/Yves/CoreMedia/ApiResponse/Parser/PlaceholderParser.php rename to src/SprykerEco/Yves/Coremedia/ApiResponse/Parser/PlaceholderParser.php diff --git a/src/SprykerEco/Yves/CoreMedia/ApiResponse/Parser/PlaceholderParserInterface.php b/src/SprykerEco/Yves/Coremedia/ApiResponse/Parser/PlaceholderParserInterface.php similarity index 100% rename from src/SprykerEco/Yves/CoreMedia/ApiResponse/Parser/PlaceholderParserInterface.php rename to src/SprykerEco/Yves/Coremedia/ApiResponse/Parser/PlaceholderParserInterface.php diff --git a/src/SprykerEco/Yves/CoreMedia/ApiResponse/PostProcessor/PlaceholderPostProcessor.php b/src/SprykerEco/Yves/Coremedia/ApiResponse/PostProcessor/PlaceholderPostProcessor.php similarity index 100% rename from src/SprykerEco/Yves/CoreMedia/ApiResponse/PostProcessor/PlaceholderPostProcessor.php rename to src/SprykerEco/Yves/Coremedia/ApiResponse/PostProcessor/PlaceholderPostProcessor.php diff --git a/src/SprykerEco/Yves/CoreMedia/ApiResponse/PostProcessor/PlaceholderPostProcessorInterface.php b/src/SprykerEco/Yves/Coremedia/ApiResponse/PostProcessor/PlaceholderPostProcessorInterface.php similarity index 100% rename from src/SprykerEco/Yves/CoreMedia/ApiResponse/PostProcessor/PlaceholderPostProcessorInterface.php rename to src/SprykerEco/Yves/Coremedia/ApiResponse/PostProcessor/PlaceholderPostProcessorInterface.php diff --git a/src/SprykerEco/Yves/CoreMedia/ApiResponse/Renderer/CategoryUrlPlaceholderReplacementRenderer.php b/src/SprykerEco/Yves/Coremedia/ApiResponse/Renderer/CategoryUrlPlaceholderReplacementRenderer.php similarity index 100% rename from src/SprykerEco/Yves/CoreMedia/ApiResponse/Renderer/CategoryUrlPlaceholderReplacementRenderer.php rename to src/SprykerEco/Yves/Coremedia/ApiResponse/Renderer/CategoryUrlPlaceholderReplacementRenderer.php diff --git a/src/SprykerEco/Yves/CoreMedia/ApiResponse/Renderer/CustomPageUrlPlaceholderReplacementRenderer.php b/src/SprykerEco/Yves/Coremedia/ApiResponse/Renderer/CustomPageUrlPlaceholderReplacementRenderer.php similarity index 100% rename from src/SprykerEco/Yves/CoreMedia/ApiResponse/Renderer/CustomPageUrlPlaceholderReplacementRenderer.php rename to src/SprykerEco/Yves/Coremedia/ApiResponse/Renderer/CustomPageUrlPlaceholderReplacementRenderer.php diff --git a/src/SprykerEco/Yves/CoreMedia/ApiResponse/Renderer/PageMetadataPlaceholderReplacementRenderer.php b/src/SprykerEco/Yves/Coremedia/ApiResponse/Renderer/PageMetadataPlaceholderReplacementRenderer.php similarity index 100% rename from src/SprykerEco/Yves/CoreMedia/ApiResponse/Renderer/PageMetadataPlaceholderReplacementRenderer.php rename to src/SprykerEco/Yves/Coremedia/ApiResponse/Renderer/PageMetadataPlaceholderReplacementRenderer.php diff --git a/src/SprykerEco/Yves/CoreMedia/ApiResponse/Renderer/PlaceholderReplacementRendererInterface.php b/src/SprykerEco/Yves/Coremedia/ApiResponse/Renderer/PlaceholderReplacementRendererInterface.php similarity index 100% rename from src/SprykerEco/Yves/CoreMedia/ApiResponse/Renderer/PlaceholderReplacementRendererInterface.php rename to src/SprykerEco/Yves/Coremedia/ApiResponse/Renderer/PlaceholderReplacementRendererInterface.php diff --git a/src/SprykerEco/Yves/CoreMedia/ApiResponse/Renderer/ProductPricePlaceholderReplacementRenderer.php b/src/SprykerEco/Yves/Coremedia/ApiResponse/Renderer/ProductPricePlaceholderReplacementRenderer.php similarity index 100% rename from src/SprykerEco/Yves/CoreMedia/ApiResponse/Renderer/ProductPricePlaceholderReplacementRenderer.php rename to src/SprykerEco/Yves/Coremedia/ApiResponse/Renderer/ProductPricePlaceholderReplacementRenderer.php diff --git a/src/SprykerEco/Yves/CoreMedia/ApiResponse/Renderer/ProductUrlPlaceholderReplacementRenderer.php b/src/SprykerEco/Yves/Coremedia/ApiResponse/Renderer/ProductUrlPlaceholderReplacementRenderer.php similarity index 100% rename from src/SprykerEco/Yves/CoreMedia/ApiResponse/Renderer/ProductUrlPlaceholderReplacementRenderer.php rename to src/SprykerEco/Yves/Coremedia/ApiResponse/Renderer/ProductUrlPlaceholderReplacementRenderer.php diff --git a/src/SprykerEco/Yves/CoreMedia/ApiResponse/Replacer/Metadata/DescriptionMetadataReplacer.php b/src/SprykerEco/Yves/Coremedia/ApiResponse/Replacer/Metadata/DescriptionMetadataReplacer.php similarity index 100% rename from src/SprykerEco/Yves/CoreMedia/ApiResponse/Replacer/Metadata/DescriptionMetadataReplacer.php rename to src/SprykerEco/Yves/Coremedia/ApiResponse/Replacer/Metadata/DescriptionMetadataReplacer.php diff --git a/src/SprykerEco/Yves/CoreMedia/ApiResponse/Replacer/Metadata/KeywordsMetadataReplacer.php b/src/SprykerEco/Yves/Coremedia/ApiResponse/Replacer/Metadata/KeywordsMetadataReplacer.php similarity index 100% rename from src/SprykerEco/Yves/CoreMedia/ApiResponse/Replacer/Metadata/KeywordsMetadataReplacer.php rename to src/SprykerEco/Yves/Coremedia/ApiResponse/Replacer/Metadata/KeywordsMetadataReplacer.php diff --git a/src/SprykerEco/Yves/CoreMedia/ApiResponse/Replacer/Metadata/MetadataReplacerInterface.php b/src/SprykerEco/Yves/Coremedia/ApiResponse/Replacer/Metadata/MetadataReplacerInterface.php similarity index 100% rename from src/SprykerEco/Yves/CoreMedia/ApiResponse/Replacer/Metadata/MetadataReplacerInterface.php rename to src/SprykerEco/Yves/Coremedia/ApiResponse/Replacer/Metadata/MetadataReplacerInterface.php diff --git a/src/SprykerEco/Yves/CoreMedia/ApiResponse/Replacer/Metadata/PageNameMetadataReplacer.php b/src/SprykerEco/Yves/Coremedia/ApiResponse/Replacer/Metadata/PageNameMetadataReplacer.php similarity index 100% rename from src/SprykerEco/Yves/CoreMedia/ApiResponse/Replacer/Metadata/PageNameMetadataReplacer.php rename to src/SprykerEco/Yves/Coremedia/ApiResponse/Replacer/Metadata/PageNameMetadataReplacer.php diff --git a/src/SprykerEco/Yves/CoreMedia/ApiResponse/Replacer/Metadata/TitleMetadataReplacer.php b/src/SprykerEco/Yves/Coremedia/ApiResponse/Replacer/Metadata/TitleMetadataReplacer.php similarity index 100% rename from src/SprykerEco/Yves/CoreMedia/ApiResponse/Replacer/Metadata/TitleMetadataReplacer.php rename to src/SprykerEco/Yves/Coremedia/ApiResponse/Replacer/Metadata/TitleMetadataReplacer.php diff --git a/src/SprykerEco/Yves/CoreMedia/ApiResponse/Replacer/PlaceholderReplacer.php b/src/SprykerEco/Yves/Coremedia/ApiResponse/Replacer/PlaceholderReplacer.php similarity index 100% rename from src/SprykerEco/Yves/CoreMedia/ApiResponse/Replacer/PlaceholderReplacer.php rename to src/SprykerEco/Yves/Coremedia/ApiResponse/Replacer/PlaceholderReplacer.php diff --git a/src/SprykerEco/Yves/CoreMedia/ApiResponse/Replacer/PlaceholderReplacerInterface.php b/src/SprykerEco/Yves/Coremedia/ApiResponse/Replacer/PlaceholderReplacerInterface.php similarity index 100% rename from src/SprykerEco/Yves/CoreMedia/ApiResponse/Replacer/PlaceholderReplacerInterface.php rename to src/SprykerEco/Yves/Coremedia/ApiResponse/Replacer/PlaceholderReplacerInterface.php diff --git a/src/SprykerEco/Yves/CoreMedia/ApiResponse/Resolver/ApiResponseResolverInterface.php b/src/SprykerEco/Yves/Coremedia/ApiResponse/Resolver/ApiResponseResolverInterface.php similarity index 100% rename from src/SprykerEco/Yves/CoreMedia/ApiResponse/Resolver/ApiResponseResolverInterface.php rename to src/SprykerEco/Yves/Coremedia/ApiResponse/Resolver/ApiResponseResolverInterface.php diff --git a/src/SprykerEco/Yves/CoreMedia/ApiResponse/Resolver/PlaceholderResolver.php b/src/SprykerEco/Yves/Coremedia/ApiResponse/Resolver/PlaceholderResolver.php similarity index 100% rename from src/SprykerEco/Yves/CoreMedia/ApiResponse/Resolver/PlaceholderResolver.php rename to src/SprykerEco/Yves/Coremedia/ApiResponse/Resolver/PlaceholderResolver.php diff --git a/src/SprykerEco/Yves/CoreMedia/CoremediaConfig.php b/src/SprykerEco/Yves/Coremedia/CoremediaConfig.php similarity index 100% rename from src/SprykerEco/Yves/CoreMedia/CoremediaConfig.php rename to src/SprykerEco/Yves/Coremedia/CoremediaConfig.php diff --git a/src/SprykerEco/Yves/CoreMedia/CoremediaDependencyProvider.php b/src/SprykerEco/Yves/Coremedia/CoremediaDependencyProvider.php similarity index 100% rename from src/SprykerEco/Yves/CoreMedia/CoremediaDependencyProvider.php rename to src/SprykerEco/Yves/Coremedia/CoremediaDependencyProvider.php diff --git a/src/SprykerEco/Yves/CoreMedia/CoremediaFactory.php b/src/SprykerEco/Yves/Coremedia/CoremediaFactory.php similarity index 100% rename from src/SprykerEco/Yves/CoreMedia/CoremediaFactory.php rename to src/SprykerEco/Yves/Coremedia/CoremediaFactory.php diff --git a/src/SprykerEco/Yves/CoreMedia/Dependency/Client/CoremediaToCategoryStorageClientBridge.php b/src/SprykerEco/Yves/Coremedia/Dependency/Client/CoremediaToCategoryStorageClientBridge.php similarity index 100% rename from src/SprykerEco/Yves/CoreMedia/Dependency/Client/CoremediaToCategoryStorageClientBridge.php rename to src/SprykerEco/Yves/Coremedia/Dependency/Client/CoremediaToCategoryStorageClientBridge.php diff --git a/src/SprykerEco/Yves/CoreMedia/Dependency/Client/CoremediaToCategoryStorageClientInterface.php b/src/SprykerEco/Yves/Coremedia/Dependency/Client/CoremediaToCategoryStorageClientInterface.php similarity index 100% rename from src/SprykerEco/Yves/CoreMedia/Dependency/Client/CoremediaToCategoryStorageClientInterface.php rename to src/SprykerEco/Yves/Coremedia/Dependency/Client/CoremediaToCategoryStorageClientInterface.php diff --git a/src/SprykerEco/Yves/CoreMedia/Dependency/Client/CoremediaToMoneyClientBridge.php b/src/SprykerEco/Yves/Coremedia/Dependency/Client/CoremediaToMoneyClientBridge.php similarity index 100% rename from src/SprykerEco/Yves/CoreMedia/Dependency/Client/CoremediaToMoneyClientBridge.php rename to src/SprykerEco/Yves/Coremedia/Dependency/Client/CoremediaToMoneyClientBridge.php diff --git a/src/SprykerEco/Yves/CoreMedia/Dependency/Client/CoremediaToMoneyClientInterface.php b/src/SprykerEco/Yves/Coremedia/Dependency/Client/CoremediaToMoneyClientInterface.php similarity index 100% rename from src/SprykerEco/Yves/CoreMedia/Dependency/Client/CoremediaToMoneyClientInterface.php rename to src/SprykerEco/Yves/Coremedia/Dependency/Client/CoremediaToMoneyClientInterface.php diff --git a/src/SprykerEco/Yves/CoreMedia/Dependency/Client/CoremediaToPriceProductClientBridge.php b/src/SprykerEco/Yves/Coremedia/Dependency/Client/CoremediaToPriceProductClientBridge.php similarity index 100% rename from src/SprykerEco/Yves/CoreMedia/Dependency/Client/CoremediaToPriceProductClientBridge.php rename to src/SprykerEco/Yves/Coremedia/Dependency/Client/CoremediaToPriceProductClientBridge.php diff --git a/src/SprykerEco/Yves/CoreMedia/Dependency/Client/CoremediaToPriceProductClientInterface.php b/src/SprykerEco/Yves/Coremedia/Dependency/Client/CoremediaToPriceProductClientInterface.php similarity index 100% rename from src/SprykerEco/Yves/CoreMedia/Dependency/Client/CoremediaToPriceProductClientInterface.php rename to src/SprykerEco/Yves/Coremedia/Dependency/Client/CoremediaToPriceProductClientInterface.php diff --git a/src/SprykerEco/Yves/CoreMedia/Dependency/Client/CoremediaToPriceProductStorageClientBridge.php b/src/SprykerEco/Yves/Coremedia/Dependency/Client/CoremediaToPriceProductStorageClientBridge.php similarity index 100% rename from src/SprykerEco/Yves/CoreMedia/Dependency/Client/CoremediaToPriceProductStorageClientBridge.php rename to src/SprykerEco/Yves/Coremedia/Dependency/Client/CoremediaToPriceProductStorageClientBridge.php diff --git a/src/SprykerEco/Yves/CoreMedia/Dependency/Client/CoremediaToPriceProductStorageClientInterface.php b/src/SprykerEco/Yves/Coremedia/Dependency/Client/CoremediaToPriceProductStorageClientInterface.php similarity index 100% rename from src/SprykerEco/Yves/CoreMedia/Dependency/Client/CoremediaToPriceProductStorageClientInterface.php rename to src/SprykerEco/Yves/Coremedia/Dependency/Client/CoremediaToPriceProductStorageClientInterface.php diff --git a/src/SprykerEco/Yves/CoreMedia/Dependency/Client/CoremediaToProductStorageClientBridge.php b/src/SprykerEco/Yves/Coremedia/Dependency/Client/CoremediaToProductStorageClientBridge.php similarity index 100% rename from src/SprykerEco/Yves/CoreMedia/Dependency/Client/CoremediaToProductStorageClientBridge.php rename to src/SprykerEco/Yves/Coremedia/Dependency/Client/CoremediaToProductStorageClientBridge.php diff --git a/src/SprykerEco/Yves/CoreMedia/Dependency/Client/CoremediaToProductStorageClientInterface.php b/src/SprykerEco/Yves/Coremedia/Dependency/Client/CoremediaToProductStorageClientInterface.php similarity index 100% rename from src/SprykerEco/Yves/CoreMedia/Dependency/Client/CoremediaToProductStorageClientInterface.php rename to src/SprykerEco/Yves/Coremedia/Dependency/Client/CoremediaToProductStorageClientInterface.php diff --git a/src/SprykerEco/Yves/CoreMedia/Dependency/Service/CoremediaToUtilEncodingServiceBridge.php b/src/SprykerEco/Yves/Coremedia/Dependency/Service/CoremediaToUtilEncodingServiceBridge.php similarity index 100% rename from src/SprykerEco/Yves/CoreMedia/Dependency/Service/CoremediaToUtilEncodingServiceBridge.php rename to src/SprykerEco/Yves/Coremedia/Dependency/Service/CoremediaToUtilEncodingServiceBridge.php diff --git a/src/SprykerEco/Yves/CoreMedia/Dependency/Service/CoremediaToUtilEncodingServiceInterface.php b/src/SprykerEco/Yves/Coremedia/Dependency/Service/CoremediaToUtilEncodingServiceInterface.php similarity index 100% rename from src/SprykerEco/Yves/CoreMedia/Dependency/Service/CoremediaToUtilEncodingServiceInterface.php rename to src/SprykerEco/Yves/Coremedia/Dependency/Service/CoremediaToUtilEncodingServiceInterface.php diff --git a/src/SprykerEco/Yves/CoreMedia/Exception/InvalidPlaceholderDataException.php b/src/SprykerEco/Yves/Coremedia/Exception/InvalidPlaceholderDataException.php similarity index 100% rename from src/SprykerEco/Yves/CoreMedia/Exception/InvalidPlaceholderDataException.php rename to src/SprykerEco/Yves/Coremedia/Exception/InvalidPlaceholderDataException.php diff --git a/src/SprykerEco/Yves/CoreMedia/Exception/MissingRequestParameterException.php b/src/SprykerEco/Yves/Coremedia/Exception/MissingRequestParameterException.php similarity index 100% rename from src/SprykerEco/Yves/CoreMedia/Exception/MissingRequestParameterException.php rename to src/SprykerEco/Yves/Coremedia/Exception/MissingRequestParameterException.php diff --git a/src/SprykerEco/Yves/CoreMedia/Formatter/ProductPriceFormatter.php b/src/SprykerEco/Yves/Coremedia/Formatter/ProductPriceFormatter.php similarity index 100% rename from src/SprykerEco/Yves/CoreMedia/Formatter/ProductPriceFormatter.php rename to src/SprykerEco/Yves/Coremedia/Formatter/ProductPriceFormatter.php diff --git a/src/SprykerEco/Yves/CoreMedia/Formatter/ProductPriceFormatterInterface.php b/src/SprykerEco/Yves/Coremedia/Formatter/ProductPriceFormatterInterface.php similarity index 100% rename from src/SprykerEco/Yves/CoreMedia/Formatter/ProductPriceFormatterInterface.php rename to src/SprykerEco/Yves/Coremedia/Formatter/ProductPriceFormatterInterface.php diff --git a/src/SprykerEco/Yves/CoreMedia/Mapper/ApiContextMapper.php b/src/SprykerEco/Yves/Coremedia/Mapper/ApiContextMapper.php similarity index 100% rename from src/SprykerEco/Yves/CoreMedia/Mapper/ApiContextMapper.php rename to src/SprykerEco/Yves/Coremedia/Mapper/ApiContextMapper.php diff --git a/src/SprykerEco/Yves/CoreMedia/Mapper/ApiContextMapperInterface.php b/src/SprykerEco/Yves/Coremedia/Mapper/ApiContextMapperInterface.php similarity index 100% rename from src/SprykerEco/Yves/CoreMedia/Mapper/ApiContextMapperInterface.php rename to src/SprykerEco/Yves/Coremedia/Mapper/ApiContextMapperInterface.php diff --git a/src/SprykerEco/Yves/CoreMedia/Plugin/ShopCmsSlot/CoremediaCmsSlotContentPlugin.php b/src/SprykerEco/Yves/Coremedia/Plugin/ShopCmsSlot/CoremediaCmsSlotContentPlugin.php similarity index 100% rename from src/SprykerEco/Yves/CoreMedia/Plugin/ShopCmsSlot/CoremediaCmsSlotContentPlugin.php rename to src/SprykerEco/Yves/Coremedia/Plugin/ShopCmsSlot/CoremediaCmsSlotContentPlugin.php diff --git a/src/SprykerEco/Yves/CoreMedia/Reader/CmsSlotContent/CmsSlotContentReader.php b/src/SprykerEco/Yves/Coremedia/Reader/CmsSlotContent/CmsSlotContentReader.php similarity index 100% rename from src/SprykerEco/Yves/CoreMedia/Reader/CmsSlotContent/CmsSlotContentReader.php rename to src/SprykerEco/Yves/Coremedia/Reader/CmsSlotContent/CmsSlotContentReader.php diff --git a/src/SprykerEco/Yves/CoreMedia/Reader/CmsSlotContent/CmsSlotContentReaderInterface.php b/src/SprykerEco/Yves/Coremedia/Reader/CmsSlotContent/CmsSlotContentReaderInterface.php similarity index 100% rename from src/SprykerEco/Yves/CoreMedia/Reader/CmsSlotContent/CmsSlotContentReaderInterface.php rename to src/SprykerEco/Yves/Coremedia/Reader/CmsSlotContent/CmsSlotContentReaderInterface.php From 13b65313ff227d6091e2a845b2312c793c41934e Mon Sep 17 00:00:00 2001 From: Anton Zubariev Date: Wed, 16 Oct 2019 16:51:54 +0300 Subject: [PATCH 3/3] [CMS-2969] Fixed transfer formatting --- .../Shared/Coremedia/Transfer/coremedia.transfer.xml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/SprykerEco/Shared/Coremedia/Transfer/coremedia.transfer.xml b/src/SprykerEco/Shared/Coremedia/Transfer/coremedia.transfer.xml index 13eb42b..e5e2238 100644 --- a/src/SprykerEco/Shared/Coremedia/Transfer/coremedia.transfer.xml +++ b/src/SprykerEco/Shared/Coremedia/Transfer/coremedia.transfer.xml @@ -50,12 +50,12 @@ - + - +