From f2eecf259a1dbc7cf9a662912ece6858e1fffb22 Mon Sep 17 00:00:00 2001 From: jkindly Date: Fri, 23 Aug 2024 12:33:20 +0200 Subject: [PATCH 01/71] OP-290: Bumped PHP version to ^8.1 --- composer.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/composer.json b/composer.json index 6f32f2416..9c7a5ae4b 100644 --- a/composer.json +++ b/composer.json @@ -9,7 +9,7 @@ "description": "CMS plugin for Sylius applications.", "license": "MIT", "require": { - "php": "^8.0", + "php": "^8.1", "sylius/sylius": "^1.12.0 || ^1.13.0", "league/csv": "^9.1", "friendsofsymfony/ckeditor-bundle": "^2.0", From 832fe8bcf0dfcb8538a0a0d218b9f5bc1634e304 Mon Sep 17 00:00:00 2001 From: jkindly Date: Fri, 23 Aug 2024 12:40:24 +0200 Subject: [PATCH 02/71] OP-290: Move instaclick/php-webdriver to require-dev --- composer.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/composer.json b/composer.json index 9c7a5ae4b..3b2dbd920 100644 --- a/composer.json +++ b/composer.json @@ -13,7 +13,6 @@ "sylius/sylius": "^1.12.0 || ^1.13.0", "league/csv": "^9.1", "friendsofsymfony/ckeditor-bundle": "^2.0", - "instaclick/php-webdriver": "^1.4", "symfony/webpack-encore-bundle": "^1.12" }, "require-dev": { @@ -31,6 +30,7 @@ "friends-of-behat/suite-settings-extension": "^1.0", "friends-of-behat/symfony-extension": "^2.1", "friends-of-behat/variadic-extension": "^1.3", + "instaclick/php-webdriver": "^1.4", "lchrusciel/api-test-case": "^4.1 || ^5.0", "matthiasnoback/symfony-config-test": "^5.1", "phpspec/phpspec": "^7.2", From edf0d9b2ec8d9642f61729ca07db5529f0c6942e Mon Sep 17 00:00:00 2001 From: jkindly Date: Fri, 23 Aug 2024 12:41:03 +0200 Subject: [PATCH 03/71] OP-290: Remove conflicts as there is no more support for Sf 4 --- composer.json | 7 ------- 1 file changed, 7 deletions(-) diff --git a/composer.json b/composer.json index 3b2dbd920..4162246d7 100644 --- a/composer.json +++ b/composer.json @@ -51,13 +51,6 @@ "symfony/runtime": "^5.4 || ^6.4", "symfony/web-profiler-bundle": "^5.4 || ^6.4" }, - "conflict": { - "symfony/symfony": "4.1.8", - "symfony/browser-kit": "4.1.8", - "symfony/dom-crawler": "4.1.8", - "symfony/routing": "4.1.8", - "symfony/doctrine-bridge": "4.4.16" - }, "suggest": { "stefandoorn/sitemap-plugin": "^2.0@alpha" }, From f700733d8fa1808dc173ce87091e9c7e53c828ae Mon Sep 17 00:00:00 2001 From: jkindly Date: Fri, 23 Aug 2024 13:17:06 +0200 Subject: [PATCH 04/71] OP-290: Improve performance in assigners --- src/Assigner/ChannelsAssigner.php | 7 +++---- src/Assigner/CollectionsAssigner.php | 7 +++---- src/Assigner/LocalesAssigner.php | 9 ++++----- src/Assigner/ProductsAssigner.php | 7 +++---- src/Assigner/ProductsInTaxonsAssigner.php | 7 +++---- src/Assigner/TaxonsAssigner.php | 7 +++---- 6 files changed, 19 insertions(+), 25 deletions(-) diff --git a/src/Assigner/ChannelsAssigner.php b/src/Assigner/ChannelsAssigner.php index ababfc15b..f6ac7ca4d 100644 --- a/src/Assigner/ChannelsAssigner.php +++ b/src/Assigner/ChannelsAssigner.php @@ -23,11 +23,10 @@ public function __construct(private ChannelRepositoryInterface $channelRepositor public function assign(ChannelsAwareInterface $channelsAware, array $channelsCodes): void { - foreach ($channelsCodes as $channelCode) { - /** @var ChannelInterface|null $channel */ - $channel = $this->channelRepository->findOneBy(['code' => $channelCode]); + $channels = $this->channelRepository->findBy(['code' => $channelsCodes]); + Assert::allIsInstanceOf($channels, ChannelInterface::class); - Assert::notNull($channel, sprintf('Channel with %s code not found.', $channelCode)); + foreach ($channels as $channel) { $channelsAware->addChannel($channel); } } diff --git a/src/Assigner/CollectionsAssigner.php b/src/Assigner/CollectionsAssigner.php index 808f4dd61..1c34e22c8 100644 --- a/src/Assigner/CollectionsAssigner.php +++ b/src/Assigner/CollectionsAssigner.php @@ -23,11 +23,10 @@ public function __construct(private CollectionRepositoryInterface $collectionRep public function assign(CollectibleInterface $collectionsAware, array $collectionsCodes): void { - foreach ($collectionsCodes as $collectionCode) { - /** @var CollectionInterface|null $collection */ - $collection = $this->collectionRepository->findOneBy(['code' => $collectionCode]); + $collections = $this->collectionRepository->findBy(['code' => $collectionsCodes]); + Assert::allIsInstanceOf($collections, CollectionInterface::class); - Assert::notNull($collection, sprintf('Collection with %s code not found.', $collectionCode)); + foreach ($collections as $collection) { $collectionsAware->addCollection($collection); } } diff --git a/src/Assigner/LocalesAssigner.php b/src/Assigner/LocalesAssigner.php index f90519143..757915486 100644 --- a/src/Assigner/LocalesAssigner.php +++ b/src/Assigner/LocalesAssigner.php @@ -13,6 +13,7 @@ use BitBag\SyliusCmsPlugin\Entity\LocaleAwareInterface; use Sylius\Component\Locale\Model\LocaleInterface; use Sylius\Component\Resource\Repository\RepositoryInterface; +use Webmozart\Assert\Assert; final class LocalesAssigner implements LocalesAssignerInterface { @@ -22,13 +23,11 @@ public function __construct(private RepositoryInterface $localeRepository) public function assign(LocaleAwareInterface $localesAware, array $localesCodes): void { - $locales = $this->localeRepository->findAll(); + $locales = $this->localeRepository->findBy(['code' => $localesCodes]); + Assert::allIsInstanceOf($locales, LocaleInterface::class); - /** @var LocaleInterface $locale */ foreach ($locales as $locale) { - if (in_array($locale->getCode(), $localesCodes, true)) { - $localesAware->addLocale($locale); - } + $localesAware->addLocale($locale); } } } diff --git a/src/Assigner/ProductsAssigner.php b/src/Assigner/ProductsAssigner.php index 7b9cacb56..c28157264 100644 --- a/src/Assigner/ProductsAssigner.php +++ b/src/Assigner/ProductsAssigner.php @@ -23,11 +23,10 @@ public function __construct(private ProductRepositoryInterface $productRepositor public function assign(ProductsAwareInterface $productsAware, array $productsCodes): void { - foreach ($productsCodes as $productCode) { - /** @var ProductInterface|null $product */ - $product = $this->productRepository->findOneBy(['code' => $productCode]); + $products = $this->productRepository->findBy(['code' => $productsCodes]); + Assert::allIsInstanceOf($products, ProductInterface::class); - Assert::notNull($product, sprintf('Product with %s code not found.', $productCode)); + foreach ($products as $product) { $productsAware->addProduct($product); } } diff --git a/src/Assigner/ProductsInTaxonsAssigner.php b/src/Assigner/ProductsInTaxonsAssigner.php index 4f9105ce6..4a6e7cfc7 100644 --- a/src/Assigner/ProductsInTaxonsAssigner.php +++ b/src/Assigner/ProductsInTaxonsAssigner.php @@ -23,11 +23,10 @@ public function __construct(private TaxonRepositoryInterface $taxonRepository) public function assign(ProductsInTaxonsAwareInterface $productsInTaxonsAware, array $taxonCodes): void { - foreach ($taxonCodes as $taxonCode) { - /** @var TaxonInterface|null $taxon */ - $taxon = $this->taxonRepository->findOneBy(['code' => $taxonCode]); + $taxons = $this->taxonRepository->findBy(['code' => $taxonCodes]); + Assert::allIsInstanceOf($taxons, TaxonInterface::class); - Assert::notNull($taxon, sprintf('Taxon with %s code not found.', $taxonCode)); + foreach ($taxons as $taxon) { $productsInTaxonsAware->addProductsInTaxon($taxon); } } diff --git a/src/Assigner/TaxonsAssigner.php b/src/Assigner/TaxonsAssigner.php index 021095cb8..20c85ea35 100644 --- a/src/Assigner/TaxonsAssigner.php +++ b/src/Assigner/TaxonsAssigner.php @@ -23,11 +23,10 @@ public function __construct(private TaxonRepositoryInterface $taxonRepository) public function assign(TaxonAwareInterface $taxonAware, array $taxonCodes): void { - foreach ($taxonCodes as $taxonCode) { - /** @var TaxonInterface|null $taxon */ - $taxon = $this->taxonRepository->findOneBy(['code' => $taxonCode]); + $taxons = $this->taxonRepository->findBy(['code' => $taxonCodes]); + Assert::allIsInstanceOf($taxons, TaxonInterface::class); - Assert::notNull($taxon, sprintf('Taxon with %s code not found.', $taxonCode)); + foreach ($taxons as $taxon) { $taxonAware->addTaxon($taxon); } } From 98b17dd3a448f0a8a1d831f2f938d3efb2e0850e Mon Sep 17 00:00:00 2001 From: jkindly Date: Mon, 26 Aug 2024 09:11:06 +0200 Subject: [PATCH 05/71] OP-290: Remove AuthenticationManagerPolyfillPass.php as equivalent exists in Sylius --- src/BitBagSyliusCmsPlugin.php | 2 -- .../AuthenticationManagerPolyfillPass.php | 21 ------------------- 2 files changed, 23 deletions(-) delete mode 100644 src/DependencyInjection/Compiler/AuthenticationManagerPolyfillPass.php diff --git a/src/BitBagSyliusCmsPlugin.php b/src/BitBagSyliusCmsPlugin.php index 5a789211a..6559d5302 100755 --- a/src/BitBagSyliusCmsPlugin.php +++ b/src/BitBagSyliusCmsPlugin.php @@ -10,7 +10,6 @@ namespace BitBag\SyliusCmsPlugin; -use BitBag\SyliusCmsPlugin\DependencyInjection\Compiler\AuthenticationManagerPolyfillPass; use BitBag\SyliusCmsPlugin\DependencyInjection\Compiler\ImporterCompilerPass; use BitBag\SyliusCmsPlugin\DependencyInjection\Compiler\MediaProviderPass; use Sylius\Bundle\CoreBundle\Application\SyliusPluginTrait; @@ -27,6 +26,5 @@ public function build(ContainerBuilder $container): void $container->addCompilerPass(new ImporterCompilerPass()); $container->addCompilerPass(new MediaProviderPass()); - $container->addCompilerPass(new AuthenticationManagerPolyfillPass()); } } diff --git a/src/DependencyInjection/Compiler/AuthenticationManagerPolyfillPass.php b/src/DependencyInjection/Compiler/AuthenticationManagerPolyfillPass.php deleted file mode 100644 index 239ad5fde..000000000 --- a/src/DependencyInjection/Compiler/AuthenticationManagerPolyfillPass.php +++ /dev/null @@ -1,21 +0,0 @@ -has('security.authentication_manager') && - true === $container->has('security.authentication.manager') - ) { - $container->setAlias('security.authentication_manager', 'security.authentication.manager'); - } - } -} From 61a449f1c73c65769696b6535e979f80cb4ebba8 Mon Sep 17 00:00:00 2001 From: jkindly Date: Mon, 26 Aug 2024 09:56:20 +0200 Subject: [PATCH 06/71] OP-290: Remove $ from scripts because it makes it difficult to copy and paste directly into the console --- doc/installation.md | 40 ++++++++++++++++++++-------------------- 1 file changed, 20 insertions(+), 20 deletions(-) diff --git a/doc/installation.md b/doc/installation.md index 69694055a..1624fa638 100644 --- a/doc/installation.md +++ b/doc/installation.md @@ -4,7 +4,7 @@ 1. *We work on stable, supported and up-to-date versions of packages. We recommend you to do the same.* ```bash -$ composer require bitbag/cms-plugin --no-scripts +composer require bitbag/cms-plugin --no-scripts ``` 2. Add plugin dependencies to your `config/bundles.php` file: @@ -22,13 +22,13 @@ The first line above (FOSCKEditorBundle) might have been already added during co Install WYSIWYG editor ([FOS CKEditor](https://symfony.com/doc/master/bundles/FOSCKEditorBundle/usage/ckeditor.html)) ```bash -$ bin/console ckeditor:install +bin/console ckeditor:install ``` **Note.** If you have an issue with the ckeditor not running, please try to install it using the `4.22.1` tag: ```bash -$ bin/console ckeditor:install --tag=4.22.1 +bin/console ckeditor:install --tag=4.22.1 ``` For more information regardin `4.22.1` tag please visit the #485 issue. @@ -96,15 +96,15 @@ you will probably need to change the extension of the imported file in 5. Finish the installation by updating the database schema and installing assets: ```bash -$ bin/console cache:clear +bin/console cache:clear # If you used migrations in your project... -$ bin/console doctrine:migrations:migrate +bin/console doctrine:migrations:migrate # ... or if you use doctrine schema tool. -$ bin/cosole doctrine:schema:update --dump-sql # and --force switch when you're ready :) +bin/cosole doctrine:schema:update --dump-sql # and --force switch when you're ready :) -$ bin/console assets:install --symlink -$ bin/console sylius:theme:assets:install --symlink +bin/console assets:install --symlink +bin/console sylius:theme:assets:install --symlink ``` Note. In some cases the `--symlink` option [may trow some errors](https://github.com/Sylius/SyliusThemeBundle/issues/91). If you consider running the commands without `--symlink` option, please keep in mind to run them on every potential plugin update. @@ -139,23 +139,23 @@ Any other approach, that will allow cms pages to read this value in js, under "r ## Testing & running the plugin ```bash -$ composer install -$ cd tests/Application +composer install +cd tests/Application ``` Copy file `package.json.~1.XX.0.dist` to `package.json` where `~1.XX.0` is the Sylius version you are using. ```bash -$ cp package.json.~1.12.0.dist package.json +cp package.json.~1.12.0.dist package.json ``` ```bash -$ yarn install -$ yarn encore dev -$ APP_ENV=test bin/console assets:install -$ APP_ENV=test bin/console doctrine:schema:create -$ APP_ENV=test symfony server:start --port=8080 -d -$ cd ../.. -$ open http://localhost:8080 -$ vendor/bin/behat -$ vendor/bin/phpspec run +yarn install +yarn encore dev +APP_ENV=test bin/console assets:install +APP_ENV=test bin/console doctrine:schema:create +APP_ENV=test symfony server:start --port=8080 -d +cd ../.. +open http://localhost:8080 +vendor/bin/behat +vendor/bin/phpspec run ``` From 5799d5e1c8491c1850347c0e032109c4f464e8d5 Mon Sep 17 00:00:00 2001 From: jkindly Date: Mon, 26 Aug 2024 12:24:32 +0200 Subject: [PATCH 07/71] OP-290: Update installation.md and sitemap.md. Also change suggested version of sitemap in composer.json --- composer.json | 2 +- doc/installation.md | 32 ++++++-------------------------- doc/sitemap.md | 2 +- 3 files changed, 8 insertions(+), 28 deletions(-) diff --git a/composer.json b/composer.json index 4162246d7..aae662219 100644 --- a/composer.json +++ b/composer.json @@ -52,7 +52,7 @@ "symfony/web-profiler-bundle": "^5.4 || ^6.4" }, "suggest": { - "stefandoorn/sitemap-plugin": "^2.0@alpha" + "stefandoorn/sitemap-plugin": "^2.2" }, "prefer-stable": true, "autoload": { diff --git a/doc/installation.md b/doc/installation.md index 1624fa638..515dcfb38 100644 --- a/doc/installation.md +++ b/doc/installation.md @@ -19,7 +19,7 @@ return [ ``` The first line above (FOSCKEditorBundle) might have been already added during composer require command. -Install WYSIWYG editor ([FOS CKEditor](https://symfony.com/doc/master/bundles/FOSCKEditorBundle/usage/ckeditor.html)) +3. Install WYSIWYG editor ([FOS CKEditor](https://symfony.com/doc/master/bundles/FOSCKEditorBundle/usage/ckeditor.html)) ```bash bin/console ckeditor:install @@ -45,7 +45,7 @@ twig: - '@BitBagSyliusCmsPlugin/Form/ckeditor_widget.html.twig' ``` -3. Import required config in your `config/packages/_sylius.yaml` file: +4. Import required config in your `config/packages/_sylius.yaml` file: ```yaml # config/packages/_sylius.yaml @@ -55,7 +55,7 @@ imports: - { resource: "@BitBagSyliusCmsPlugin/Resources/config/config.yml" } ``` -4. Import routing in your `config/routes.yaml` file: +5. Import routing in your `config/routes.yaml` file: ```yaml @@ -93,7 +93,7 @@ you will probably need to change the extension of the imported file in - { resource: "@SitemapPlugin/Resources/config/config.yaml" } ``` -5. Finish the installation by updating the database schema and installing assets: +6. Finish the installation by updating the database schema and installing assets: ```bash bin/console cache:clear @@ -109,7 +109,7 @@ bin/console sylius:theme:assets:install --symlink Note. In some cases the `--symlink` option [may trow some errors](https://github.com/Sylius/SyliusThemeBundle/issues/91). If you consider running the commands without `--symlink` option, please keep in mind to run them on every potential plugin update. -6. Add plugin assets to your project +7. Add plugin assets to your project We recommend you to use Webpack (Encore), for which we have prepared four different instructions on how to add this plugin's assets to your project: @@ -123,32 +123,12 @@ We recommend you to use Webpack (Encore), for which we have prepared four differ However, if you are not using Webpack, here are instructions on how to add optimized and compressed assets directly to your project templates: -- [Non webpack solution](./01.5-non-webpack.md) - -7. Passing required "backend" values to "frontend" - -In order to make plugin finally work you need to declare "route", in admin _scripts.html.twig you can pass: - -``` - -``` - -Any other approach, that will allow cms pages to read this value in js, under "route" key, will work. +- [Non webpack solution](./01.5-non-webpack.md) ## Testing & running the plugin ```bash composer install cd tests/Application -``` -Copy file `package.json.~1.XX.0.dist` to `package.json` where `~1.XX.0` is the Sylius version you are using. - -```bash -cp package.json.~1.12.0.dist package.json -``` - -```bash yarn install yarn encore dev APP_ENV=test bin/console assets:install diff --git a/doc/sitemap.md b/doc/sitemap.md index c3c90f812..e217ae236 100644 --- a/doc/sitemap.md +++ b/doc/sitemap.md @@ -3,7 +3,7 @@ This plugin suggests to install the Sylius sitemap plugin. The plugin is not installed automatically, but to install run: ```bash - $ composer require stefandoorn/sitemap-plugin ^2.0@alpha + $ composer require stefandoorn/sitemap-plugin ^2.2 ``` It's already configured after installation and contains a page & section provider. From ded6ce366e663e7836071fc6f70a5fa92841d713 Mon Sep 17 00:00:00 2001 From: jkindly Date: Mon, 26 Aug 2024 13:01:59 +0200 Subject: [PATCH 08/71] OP-290: Change namespace from BitBag\SyliusCmsPlugin\ to Sylius\CmsPlugin\ --- UPGRADE.md | 2 +- behat.yml.dist | 2 +- composer.json | 6 +- doc/content_elements.md | 4 +- doc/importing-resources.md | 8 +- doc/installation.md | 2 +- doc/media.md | 2 +- phpspec.yml.dist | 4 +- phpunit.xml.dist | 2 +- spec/Assigner/ChannelsAssignerSpec.php | 6 +- spec/Assigner/CollectionsAssignerSpec.php | 12 +-- spec/Assigner/LocalesAssignerSpec.php | 8 +- spec/Assigner/ProductsAssignerSpec.php | 8 +- .../Assigner/ProductsInTaxonsAssignerSpec.php | 8 +- spec/Assigner/TaxonsAssignerSpec.php | 8 +- .../Admin/UploadEditorImageActionSpec.php | 12 +-- spec/Entity/BlockSpec.php | 8 +- spec/Entity/CollectionSpec.php | 6 +- spec/Entity/MediaSpec.php | 8 +- spec/Entity/MediaTranslationSpec.php | 6 +- spec/Entity/PageSpec.php | 8 +- spec/Entity/PageTranslationSpec.php | 8 +- .../EventListener/MediaUploadListenerSpec.php | 10 +-- spec/Exception/ImportFailedExceptionSpec.php | 4 +- .../MultipleMediaToCodesTransformerSpec.php | 8 +- spec/Importer/BlockImporterSpec.php | 24 +++--- spec/Importer/MediaImporterSpec.php | 14 ++-- spec/Importer/PageImporterSpec.php | 14 ++-- spec/MediaProvider/FilenameHelperSpec.php | 4 +- spec/MediaProvider/GenericProviderSpec.php | 10 +-- .../remotes/origin/master | 10 +-- .../Menu/ContentManagementMenuBuilderSpec.php | 6 +- spec/Menu/MenuReorderSpec.php | 6 +- spec/Processor/ImportProcessorSpec.php | 12 +-- .../CollectionBlocksRendererSpec.php | 12 +-- .../CollectionMediaRendererSpec.php | 12 +-- .../CollectionPagesRendererSpec.php | 12 +-- .../CollectionRendererStrategySpec.php | 10 +-- .../HeadingContentElementRendererSpec.php | 10 +-- ...ultipleMediaContentElementRendererSpec.php | 16 ++-- ...esCollectionContentElementRendererSpec.php | 14 ++-- ...ouselByTaxonContentElementRendererSpec.php | 10 +-- ...uctsCarouselContentElementRendererSpec.php | 10 +-- ...sGridByTaxonContentElementRendererSpec.php | 10 +-- ...ProductsGridContentElementRendererSpec.php | 10 +-- .../SingleMediaContentElementRendererSpec.php | 16 ++-- .../SpacerContentElementRendererSpec.php | 10 +-- .../TaxonsListContentElementRendererSpec.php | 10 +-- .../TextareaContentElementRendererSpec.php | 10 +-- .../ContentElementRendererStrategySpec.php | 18 ++--- spec/Renderer/PageLinkRendererSpec.php | 8 +- spec/Resolver/BlockResourceResolverSpec.php | 10 +-- .../Importer/ImporterChannelsResolverSpec.php | 6 +- .../ImporterCollectionsResolverSpec.php | 8 +- .../Importer/ImporterLocalesResolverSpec.php | 8 +- .../ImporterProductsInTaxonsResolverSpec.php | 8 +- .../Importer/ImporterProductsResolverSpec.php | 8 +- .../Importer/ImporterTaxonsResolverSpec.php | 8 +- spec/Resolver/MediaProviderResolverSpec.php | 10 +-- spec/Resolver/MediaResourceResolverSpec.php | 10 +-- spec/Resolver/PageResourceResolverSpec.php | 10 +-- spec/Resolver/ResourceResolverSpec.php | 4 +- spec/Sorter/CollectionsSorterSpec.php | 10 +-- spec/Twig/Parser/ContentParserSpec.php | 8 +- spec/Twig/Runtime/RenderBlockRuntimeSpec.php | 12 +-- .../RenderContentElementsRuntimeSpec.php | 10 +-- .../Twig/Runtime/RenderContentRuntimeSpec.php | 10 +-- spec/Twig/Runtime/RenderMediaRuntimeSpec.php | 16 ++-- .../Runtime/RenderPageLinkRuntimeSpec.php | 10 +-- src/Assigner/ChannelsAssigner.php | 2 +- src/Assigner/ChannelsAssignerInterface.php | 2 +- src/Assigner/CollectionsAssigner.php | 8 +- src/Assigner/CollectionsAssignerInterface.php | 4 +- src/Assigner/LocalesAssigner.php | 4 +- src/Assigner/LocalesAssignerInterface.php | 4 +- src/Assigner/ProductsAssigner.php | 4 +- src/Assigner/ProductsAssignerInterface.php | 4 +- src/Assigner/ProductsInTaxonsAssigner.php | 4 +- .../ProductsInTaxonsAssignerInterface.php | 4 +- src/Assigner/TaxonsAssigner.php | 4 +- src/Assigner/TaxonsAssignerInterface.php | 4 +- src/BitBagSyliusCmsPlugin.php | 6 +- src/Command/ImportFromCsvCommand.php | 4 +- .../Action/Admin/ImportDataAction.php | 10 +-- .../Action/Admin/ProductSearchAction.php | 2 +- .../Admin/RetrievePackageInfoAction.php | 2 +- .../Action/Admin/TaxonSearchAction.php | 2 +- .../Action/Admin/UploadEditorImageAction.php | 8 +- src/Controller/BlockController.php | 6 +- .../Helper/FormErrorsFlashHelper.php | 2 +- .../Helper/FormErrorsFlashHelperInterface.php | 2 +- src/Controller/MediaController.php | 8 +- ...rollersCommonDependencyInjectionsTrait.php | 4 +- src/Controller/PageController.php | 6 +- src/Controller/PageSlugController.php | 2 +- .../ResourceDataProcessingTrait.php | 4 +- src/Controller/TemplateController.php | 4 +- .../BitBagSyliusCmsExtension.php | 4 +- .../Compiler/ImporterCompilerPass.php | 4 +- .../Compiler/MediaProviderPass.php | 2 +- src/Entity/Block.php | 16 ++-- src/Entity/BlockInterface.php | 2 +- src/Entity/BlockProductAwareInterface.php | 2 +- src/Entity/BlockTaxonAwareInterface.php | 2 +- src/Entity/BlockTranslationInterface.php | 2 +- src/Entity/BlocksCollectionInterface.php | 2 +- src/Entity/CollectibleInterface.php | 2 +- src/Entity/Collection.php | 8 +- src/Entity/CollectionInterface.php | 2 +- src/Entity/ContentConfiguration.php | 2 +- src/Entity/ContentConfigurationInterface.php | 2 +- src/Entity/ContentElementsAwareInterface.php | 2 +- src/Entity/ContentableInterface.php | 2 +- src/Entity/LocaleAwareInterface.php | 2 +- src/Entity/Media.php | 10 +-- src/Entity/MediaCollectionInterface.php | 2 +- src/Entity/MediaInterface.php | 2 +- src/Entity/MediaTranslation.php | 2 +- src/Entity/MediaTranslationInterface.php | 2 +- src/Entity/Page.php | 10 +-- src/Entity/PageInterface.php | 2 +- src/Entity/PageTranslation.php | 2 +- src/Entity/PageTranslationInterface.php | 2 +- src/Entity/PagesCollectionInterface.php | 2 +- src/Entity/ProductsAwareInterface.php | 2 +- src/Entity/ProductsInTaxonsAwareInterface.php | 2 +- src/Entity/TaxonAwareInterface.php | 2 +- src/Entity/TeaserInterface.php | 2 +- src/Entity/Template.php | 2 +- src/Entity/TemplateInterface.php | 2 +- src/Entity/Trait/BlocksCollectionTrait.php | 4 +- src/Entity/Trait/ChannelsAwareTrait.php | 2 +- src/Entity/Trait/CollectibleTrait.php | 16 ++-- .../Trait/ContentElementsAwareTrait.php | 8 +- src/Entity/Trait/LocaleAwareTrait.php | 2 +- src/Entity/Trait/MediaCollectionTrait.php | 4 +- src/Entity/Trait/PagesCollectionTrait.php | 4 +- src/Entity/Trait/ProductsAwareTrait.php | 2 +- .../Trait/ProductsInTaxonsAwareTrait.php | 2 +- src/Entity/Trait/TaxonAwareTrait.php | 2 +- src/Entity/Trait/TeaserTrait.php | 4 +- src/EventListener/MediaUploadListener.php | 6 +- .../ResourceDeleteSubscriber.php | 2 +- src/Exception/ImportFailedException.php | 2 +- src/Fixture/BlockFixture.php | 4 +- src/Fixture/CollectionFixture.php | 4 +- src/Fixture/Factory/BlockFixtureFactory.php | 20 ++--- .../Factory/CollectionFixtureFactory.php | 10 +-- .../Factory/FixtureFactoryInterface.php | 2 +- src/Fixture/Factory/MediaFixtureFactory.php | 14 ++-- src/Fixture/Factory/PageFixtureFactory.php | 20 ++--- .../Factory/TemplateFixtureFactory.php | 4 +- src/Fixture/MediaFixture.php | 4 +- src/Fixture/PageFixture.php | 4 +- src/Fixture/TemplateFixture.php | 4 +- .../MultipleMediaToCodesTransformer.php | 6 +- ...AbstractTemplateAutocompleteChoiceType.php | 2 +- src/Form/Type/BlockAutocompleteChoiceType.php | 2 +- src/Form/Type/BlockType.php | 4 +- .../Type/CollectionAutocompleteChoiceType.php | 2 +- src/Form/Type/CollectionType.php | 2 +- src/Form/Type/ContentConfigurationType.php | 4 +- src/Form/Type/ContentElementType.php | 2 +- .../HeadingContentElementType.php | 2 +- .../MultipleMediaContentElementType.php | 4 +- .../PagesCollectionContentElementType.php | 4 +- ...ductsCarouselByTaxonContentElementType.php | 2 +- .../ProductsCarouselContentElementType.php | 2 +- .../ProductsGridByTaxonContentElementType.php | 2 +- .../ProductsGridContentElementType.php | 2 +- .../SingleMediaContentElementType.php | 4 +- .../SpacerContentElementType.php | 2 +- .../TaxonsListContentElementType.php | 2 +- .../TextareaContentElementType.php | 4 +- src/Form/Type/ImportType.php | 2 +- src/Form/Type/MediaAutocompleteChoiceType.php | 4 +- .../Type/MediaImageAutocompleteChoiceType.php | 4 +- src/Form/Type/MediaType.php | 4 +- src/Form/Type/PageAutocompleteChoiceType.php | 2 +- .../PageCollectionAutocompleteChoiceType.php | 2 +- src/Form/Type/PageType.php | 4 +- .../TemplateBlockAutocompleteChoiceType.php | 2 +- .../TemplatePageAutocompleteChoiceType.php | 2 +- src/Form/Type/TemplateType.php | 2 +- .../Type/Translation/MediaTranslationType.php | 4 +- .../Type/Translation/PageTranslationType.php | 2 +- src/Form/Type/WysiwygType.php | 2 +- src/Importer/AbstractImporter.php | 2 +- src/Importer/BlockImporter.php | 20 ++--- src/Importer/BlockImporterInterface.php | 2 +- src/Importer/ImporterChain.php | 2 +- src/Importer/ImporterChainInterface.php | 2 +- src/Importer/ImporterInterface.php | 2 +- src/Importer/MediaImporter.php | 10 +-- src/Importer/MediaImporterInterface.php | 2 +- src/Importer/PageImporter.php | 10 +-- src/Importer/PageImporterInterface.php | 2 +- src/MediaProvider/FilenameHelper.php | 2 +- src/MediaProvider/GenericProvider.php | 6 +- src/MediaProvider/ProviderInterface.php | 4 +- src/Menu/ContentManagementMenuBuilder.php | 2 +- src/Menu/MenuReorder.php | 2 +- src/Menu/MenuReorderInterface.php | 2 +- src/Migrations/Version20230524102024.php | 2 +- src/Migrations/Version20240618091634.php | 2 +- src/Migrations/Version20240701100702.php | 2 +- src/Migrations/Version20240701104206.php | 2 +- src/Migrations/Version20240703083513.php | 2 +- src/Migrations/Version20240715083336.php | 2 +- src/Migrations/Version20240719070318.php | 2 +- src/Migrations/Version20240725064430.php | 2 +- src/Migrations/Version20240730084203.php | 2 +- src/Migrations/Version20240808102216.php | 2 +- src/Migrations/Version20240809091751.php | 2 +- src/Processor/ImportProcessor.php | 8 +- src/Processor/ImportProcessorInterface.php | 2 +- src/Reader/CsvReader.php | 2 +- src/Reader/ReaderInterface.php | 2 +- .../Collection/CollectionBlocksRenderer.php | 10 +-- .../Collection/CollectionMediaRenderer.php | 10 +-- .../Collection/CollectionPagesRenderer.php | 10 +-- .../CollectionRendererInterface.php | 4 +- src/Renderer/CollectionRendererStrategy.php | 6 +- .../CollectionRendererStrategyInterface.php | 4 +- .../ContentElementRendererInterface.php | 4 +- .../HeadingContentElementRenderer.php | 6 +- .../MultipleMediaContentElementRenderer.php | 12 +-- .../PagesCollectionContentElementRenderer.php | 10 +-- ...sCarouselByTaxonContentElementRenderer.php | 6 +- ...ProductsCarouselContentElementRenderer.php | 6 +- ...ductsGridByTaxonContentElementRenderer.php | 6 +- .../ProductsGridContentElementRenderer.php | 6 +- .../SingleMediaContentElementRenderer.php | 10 +-- .../SpacerContentElementRenderer.php | 6 +- .../TaxonsListContentElementRenderer.php | 6 +- .../TextareaContentElementRenderer.php | 6 +- .../ContentElementRendererStrategy.php | 10 +-- ...ontentElementRendererStrategyInterface.php | 6 +- src/Renderer/PageLinkRenderer.php | 4 +- src/Renderer/PageLinkRendererInterface.php | 4 +- src/Repository/BlockRepository.php | 4 +- src/Repository/BlockRepositoryInterface.php | 4 +- src/Repository/CollectionRepository.php | 4 +- .../CollectionRepositoryInterface.php | 4 +- .../ContentConfigurationRepository.php | 2 +- src/Repository/MediaRepository.php | 4 +- src/Repository/MediaRepositoryInterface.php | 4 +- src/Repository/PageRepository.php | 4 +- src/Repository/PageRepositoryInterface.php | 4 +- src/Repository/TemplateRepository.php | 2 +- .../TemplateRepositoryInterface.php | 2 +- src/Repository/TranslationBasedAwareTrait.php | 2 +- src/Resolver/BlockResourceResolver.php | 6 +- .../BlockResourceResolverInterface.php | 4 +- src/Resolver/CollectionResourceResolver.php | 6 +- .../CollectionResourceResolverInterface.php | 4 +- .../Importer/ImporterChannelsResolver.php | 4 +- .../ImporterChannelsResolverInterface.php | 2 +- .../Importer/ImporterCollectionsResolver.php | 6 +- .../ImporterCollectionsResolverInterface.php | 4 +- .../Importer/ImporterLocalesResolver.php | 6 +- .../ImporterLocalesResolverInterface.php | 4 +- .../ImporterProductsInTaxonsResolver.php | 6 +- ...orterProductsInTaxonsResolverInterface.php | 4 +- .../Importer/ImporterProductsResolver.php | 6 +- .../ImporterProductsResolverInterface.php | 4 +- .../Importer/ImporterTaxonsResolver.php | 6 +- .../ImporterTaxonsResolverInterface.php | 4 +- src/Resolver/MediaProviderResolver.php | 6 +- .../MediaProviderResolverInterface.php | 6 +- src/Resolver/MediaResourceResolver.php | 6 +- .../MediaResourceResolverInterface.php | 4 +- src/Resolver/PageResourceResolver.php | 6 +- .../PageResourceResolverInterface.php | 4 +- src/Resolver/ResourceResolver.php | 2 +- src/Resolver/ResourceResolverInterface.php | 2 +- src/Resources/config/config.yml | 2 +- src/Resources/config/doctrine/Block.orm.xml | 6 +- .../config/doctrine/Collection.orm.xml | 8 +- .../doctrine/ContentConfiguration.orm.xml | 6 +- src/Resources/config/doctrine/Media.orm.xml | 6 +- .../config/doctrine/MediaTranslation.orm.xml | 2 +- src/Resources/config/doctrine/Page.orm.xml | 8 +- .../config/doctrine/PageTranslation.orm.xml | 2 +- .../config/doctrine/Template.orm.xml | 2 +- src/Resources/config/grids/admin/media.yml | 6 +- src/Resources/config/resources/block.yml | 10 +-- src/Resources/config/resources/collection.yml | 8 +- .../resources/content_configuration.yml | 8 +- src/Resources/config/resources/media.yml | 14 ++-- src/Resources/config/resources/page.yml | 14 ++-- src/Resources/config/resources/template.yml | 10 +-- src/Resources/config/serialization/Block.xml | 2 +- .../config/serialization/Collection.xml | 2 +- src/Resources/config/serialization/Media.xml | 2 +- .../config/serialization/MediaTranslation.xml | 2 +- src/Resources/config/serialization/Page.xml | 2 +- .../config/serialization/PageTranslation.xml | 2 +- .../config/serialization/Template.xml | 2 +- .../config/serializer/Entity.Block.yml | 2 +- .../config/serializer/Entity.Collection.yml | 2 +- .../config/serializer/Entity.Media.yml | 2 +- .../config/serializer/Entity.Page.yml | 2 +- .../config/serializer/Entity.Template.yml | 2 +- src/Resources/config/services.xml | 12 +-- src/Resources/config/services/assigner.xml | 12 +-- src/Resources/config/services/controller.xml | 18 ++--- .../config/services/event_listener.xml | 6 +- src/Resources/config/services/fixture.xml | 20 ++--- src/Resources/config/services/form.xml | 74 +++++++++---------- src/Resources/config/services/importer.xml | 8 +- .../config/services/media_provider.xml | 6 +- src/Resources/config/services/menu.xml | 2 +- src/Resources/config/services/renderer.xml | 34 ++++----- src/Resources/config/services/resolver.xml | 30 ++++---- src/Resources/config/services/twig.xml | 26 +++---- src/Resources/config/validation/Block.xml | 2 +- .../config/validation/Collection.xml | 2 +- src/Resources/config/validation/Media.xml | 4 +- .../config/validation/MediaTranslation.xml | 2 +- src/Resources/config/validation/Page.xml | 2 +- .../config/validation/PageTranslation.xml | 2 +- src/Resources/config/validation/Template.xml | 2 +- src/Sorter/CollectionsSorter.php | 4 +- src/Sorter/CollectionsSorterInterface.php | 2 +- src/Sorter/SorterById.php | 2 +- src/Twig/Extension/RenderBlockExtension.php | 4 +- .../Extension/RenderCollectionExtension.php | 4 +- .../RenderContentElementsExtension.php | 4 +- src/Twig/Extension/RenderContentExtension.php | 4 +- src/Twig/Extension/RenderMediaExtension.php | 4 +- .../Extension/RenderPageLinkExtension.php | 4 +- src/Twig/Parser/ContentParser.php | 2 +- src/Twig/Parser/ContentParserInterface.php | 2 +- src/Twig/Runtime/RenderBlockRuntime.php | 6 +- .../Runtime/RenderBlockRuntimeInterface.php | 2 +- src/Twig/Runtime/RenderCollectionRuntime.php | 6 +- .../RenderCollectionRuntimeInterface.php | 2 +- .../Runtime/RenderContentElementsRuntime.php | 8 +- .../RenderContentElementsRuntimeInterface.php | 6 +- src/Twig/Runtime/RenderContentRuntime.php | 6 +- .../Runtime/RenderContentRuntimeInterface.php | 4 +- src/Twig/Runtime/RenderMediaRuntime.php | 6 +- .../Runtime/RenderMediaRuntimeInterface.php | 2 +- src/Twig/Runtime/RenderPageLinkRuntime.php | 6 +- .../RenderPageLinkRuntimeInterface.php | 2 +- src/Uploader/MediaUploader.php | 4 +- src/Uploader/MediaUploaderInterface.php | 4 +- src/Validator/Constraint/FileMatchesType.php | 4 +- src/Validator/FileMatchesTypeValidator.php | 6 +- tests/Application/Kernel.php | 2 +- tests/Application/bin/console | 2 +- tests/Application/config/bundles.php | 2 +- tests/Application/public/index.php | 2 +- .../ChecksCodeImmutabilityInterface.php | 2 +- .../Behaviour/ChecksCodeImmutabilityTrait.php | 2 +- .../ContainsContentElementInterface.php | 2 +- .../Behaviour/ContainsContentElementTrait.php | 2 +- .../Behaviour/ContainsEmptyListInterface.php | 2 +- .../Behaviour/ContainsEmptyListTrait.php | 2 +- .../Behaviour/ContainsErrorInterface.php | 2 +- tests/Behat/Behaviour/ContainsErrorTrait.php | 2 +- tests/Behat/Context/Api/BlockContext.php | 4 +- tests/Behat/Context/Api/CollectionContext.php | 6 +- tests/Behat/Context/Api/MediaContext.php | 6 +- tests/Behat/Context/Api/PageContext.php | 6 +- tests/Behat/Context/Setup/BlockContext.php | 14 ++-- .../Behat/Context/Setup/CollectionContext.php | 8 +- tests/Behat/Context/Setup/MediaContext.php | 10 +-- tests/Behat/Context/Setup/PageContext.php | 22 +++--- tests/Behat/Context/Setup/TemplateContext.php | 8 +- .../Behat/Context/Transform/BlockContext.php | 6 +- .../Context/Transform/CollectionContext.php | 6 +- .../Behat/Context/Transform/MediaContext.php | 6 +- tests/Behat/Context/Transform/PageContext.php | 6 +- tests/Behat/Context/Ui/Admin/BlockContext.php | 12 +-- .../Context/Ui/Admin/CollectionContext.php | 10 +-- tests/Behat/Context/Ui/Admin/MediaContext.php | 10 +-- tests/Behat/Context/Ui/Admin/PageContext.php | 12 +-- .../Context/Ui/Admin/TemplateContext.php | 12 +-- .../Context/Ui/Shop/HomepageBlocksContext.php | 4 +- tests/Behat/Context/Ui/Shop/MediaContext.php | 4 +- tests/Behat/Context/Ui/Shop/PageContext.php | 6 +- tests/Behat/Helpers/ContentElementHelper.php | 2 +- tests/Behat/Page/Admin/Block/CreatePage.php | 6 +- .../Page/Admin/Block/CreatePageInterface.php | 4 +- tests/Behat/Page/Admin/Block/IndexPage.php | 4 +- .../Page/Admin/Block/IndexPageInterface.php | 4 +- tests/Behat/Page/Admin/Block/UpdatePage.php | 6 +- .../Page/Admin/Block/UpdatePageInterface.php | 6 +- .../Page/Admin/Collection/CreatePage.php | 4 +- .../Admin/Collection/CreatePageInterface.php | 4 +- .../Behat/Page/Admin/Collection/IndexPage.php | 4 +- .../Admin/Collection/IndexPageInterface.php | 4 +- .../Page/Admin/Collection/UpdatePage.php | 4 +- .../Admin/Collection/UpdatePageInterface.php | 4 +- tests/Behat/Page/Admin/Media/CreatePage.php | 4 +- .../Page/Admin/Media/CreatePageInterface.php | 4 +- tests/Behat/Page/Admin/Media/IndexPage.php | 4 +- .../Page/Admin/Media/IndexPageInterface.php | 4 +- tests/Behat/Page/Admin/Media/UpdatePage.php | 4 +- .../Page/Admin/Media/UpdatePageInterface.php | 4 +- tests/Behat/Page/Admin/Page/CreatePage.php | 8 +- .../Page/Admin/Page/CreatePageInterface.php | 4 +- tests/Behat/Page/Admin/Page/IndexPage.php | 4 +- .../Page/Admin/Page/IndexPageInterface.php | 4 +- tests/Behat/Page/Admin/Page/UpdatePage.php | 8 +- .../Page/Admin/Page/UpdatePageInterface.php | 6 +- .../Behat/Page/Admin/Template/CreatePage.php | 6 +- .../Admin/Template/CreatePageInterface.php | 2 +- tests/Behat/Page/Admin/Template/IndexPage.php | 6 +- .../Admin/Template/IndexPageInterface.php | 4 +- .../Behat/Page/Admin/Template/UpdatePage.php | 2 +- .../Admin/Template/UpdatePageInterface.php | 2 +- tests/Behat/Page/Shop/HomePage.php | 2 +- tests/Behat/Page/Shop/HomePageInterface.php | 2 +- tests/Behat/Page/Shop/Page/IndexPage.php | 2 +- .../Page/Shop/Page/IndexPageInterface.php | 2 +- tests/Behat/Page/Shop/Page/ShowPage.php | 2 +- .../Page/Shop/Page/ShowPageInterface.php | 2 +- tests/Behat/Resources.php | 2 +- tests/Behat/Resources/services.xml | 2 +- .../Behat/Resources/services/contexts/api.xml | 8 +- .../Resources/services/contexts/setup.xml | 10 +-- .../Resources/services/contexts/transform.xml | 8 +- .../Behat/Resources/services/contexts/ui.xml | 16 ++-- .../Resources/services/pages/admin/block.xml | 6 +- .../services/pages/admin/collection.xml | 6 +- .../Resources/services/pages/admin/media.xml | 6 +- .../Resources/services/pages/admin/page.xml | 6 +- .../services/pages/admin/template.xml | 6 +- tests/Behat/Resources/services/pages/shop.xml | 6 +- tests/Behat/Service/FormHelper.php | 2 +- tests/Behat/Service/RandomStringGenerator.php | 2 +- .../RandomStringGeneratorInterface.php | 2 +- tests/Behat/Service/WysiwygHelper.php | 2 +- tests/Functional/Api/BlockTest.php | 8 +- tests/Functional/Api/CollectionTest.php | 8 +- tests/Functional/Api/MediaTest.php | 8 +- tests/Functional/Api/PageTest.php | 8 +- .../DataFixtures/ORM/Api/BlockTest/block.yml | 4 +- .../ORM/Api/CollectionTest/collection.yml | 2 +- .../DataFixtures/ORM/Api/MediaTest/media.yml | 6 +- .../DataFixtures/ORM/Api/PageTest/page.yml | 6 +- tests/Functional/FunctionalTestCase.php | 2 +- .../test_it_finds_block_by_code.yml | 2 +- ...test_it_finds_block_by_collection_code.yml | 4 +- .../test_it_finds_block_by_product_code.yml | 4 +- .../test_it_finds_collection_by_code.yml | 2 +- ...t_finds_collection_by_codes_and_locale.yml | 2 +- .../test_it_finds_collection_by_name.yml | 2 +- .../test_it_finds_media_by_code.yml | 4 +- ...test_it_finds_media_by_collection_code.yml | 6 +- .../test_it_finds_media_by_name.yml | 4 +- .../test_it_finds_media_by_product_code.yml | 6 +- .../test_it_finds_page_by_code.yml | 4 +- .../test_it_finds_page_by_collection_code.yml | 6 +- .../test_it_finds_page_by_product.yml | 4 +- ...ds_page_by_product_and_collection_code.yml | 6 +- .../test_it_finds_template_by_name.yml | 2 +- .../Repository/BlockRepositoryTest.php | 6 +- .../Repository/CollectionRepositoryTest.php | 6 +- .../Repository/MediaRepositoryTest.php | 6 +- .../Repository/PageRepositoryTest.php | 6 +- .../Repository/TemplateRepositoryTest.php | 6 +- 465 files changed, 1296 insertions(+), 1296 deletions(-) diff --git a/UPGRADE.md b/UPGRADE.md index 0e3db3428..b04679a0c 100644 --- a/UPGRADE.md +++ b/UPGRADE.md @@ -19,7 +19,7 @@ structure using `bin/console doctrine:migrations:diff && bin/console doctrine:mi use raw content in [WYSIWYG editor](doc/wysiwyg.md) * Chanel awareness has been added to pages, blocks, FAQs, sections and media. That being said, many repository methods changed their signatures. In case you customized them in your src, check -new signatures in interfaces under [BitBag\SyliusCmsPlugin\Repository](src/Repository) namespace +new signatures in interfaces under [Sylius\CmsPlugin\Repository](src/Repository) namespace * WYSIWYG editor has been introduced. You will need to import it in your AppKernel and install its assets. For more, check the [installation guide](doc/installation.md) * Sitemap support was added, you will need to enable extra bundle in your AppKernel. Read more diff --git a/behat.yml.dist b/behat.yml.dist index 6c02a541e..b3bfe96cc 100755 --- a/behat.yml.dist +++ b/behat.yml.dist @@ -47,7 +47,7 @@ default: FriendsOfBehat\SymfonyExtension: bootstrap: tests/Application/config/bootstrap.php kernel: - class: Tests\BitBag\SyliusCmsPlugin\Application\Kernel + class: Tests\Sylius\CmsPlugin\Application\Kernel FriendsOfBehat\VariadicExtension: ~ diff --git a/composer.json b/composer.json index aae662219..4d334066f 100644 --- a/composer.json +++ b/composer.json @@ -57,13 +57,13 @@ "prefer-stable": true, "autoload": { "psr-4": { - "BitBag\\SyliusCmsPlugin\\": "src/", - "Tests\\BitBag\\SyliusCmsPlugin\\": "tests/" + "Sylius\\CmsPlugin\\": "src/", + "Tests\\Sylius\\CmsPlugin\\": "tests/" } }, "autoload-dev": { "psr-4": { - "spec\\BitBag\\SyliusCmsPlugin\\": "spec/" + "spec\\Sylius\\CmsPlugin\\": "spec/" }, "classmap": ["tests/Application/Kernel.php"] }, diff --git a/doc/content_elements.md b/doc/content_elements.md index 6d31c8842..bae5d274a 100644 --- a/doc/content_elements.md +++ b/doc/content_elements.md @@ -18,7 +18,7 @@ Currently, there are 11 predefined content elements available: - **[Spacer](content_elements/spacer.md)** - a simple spacer with a defined height in pixels Instead of rendering block or page, you can render just content elements in your twig templates using `bitbag_cms_render_content_elements([page|block])` helper extension, -where `page` or `block` is an instance of `BitBag\SyliusCmsPlugin\Entity\PageInterface` or `BitBag\SyliusCmsPlugin\Entity\BlockInterface`. +where `page` or `block` is an instance of `Sylius\CmsPlugin\Entity\PageInterface` or `Sylius\CmsPlugin\Entity\BlockInterface`. ## Customization @@ -73,7 +73,7 @@ services: - { name: 'form.type' } ``` -4. Create a new renderer class under `src/Renderer/ContentElement` location. Implement `BitBag\SyliusCmsPlugin\Renderer\ContentElement\ContentElementRendererInterface` interface. +4. Create a new renderer class under `src/Renderer/ContentElement` location. Implement `Sylius\CmsPlugin\Renderer\ContentElement\ContentElementRendererInterface` interface. For example, you can create a new renderer called `TextContentElementRenderer`: ```php diff --git a/doc/importing-resources.md b/doc/importing-resources.md index 3e80977e5..9cad8c97a 100644 --- a/doc/importing-resources.md +++ b/doc/importing-resources.md @@ -63,7 +63,7 @@ the resolver needs to create a new resource or update an existing one: ```yaml app.resolver.resource.product: - class: BitBag\SyliusCmsPlugin\Resolver\ResourceResolver + class: Sylius\CmsPlugin\Resolver\ResourceResolver arguments: - "@sylius.repository.product" - "@sylius.factory.product" @@ -79,7 +79,7 @@ declare(strict_types=1); namespace AppBundle\Importer; -use BitBag\SyliusCmsPlugin\Importer\ImporterInterface; +use Sylius\CmsPlugin\Importer\ImporterInterface; interface ProductImporterInterface extends ImporterInterface { @@ -99,8 +99,8 @@ declare(strict_types=1); namespace AppBundle\Importer; -use BitBag\SyliusCmsPlugin\Importer\AbstractImporter; -use BitBag\SyliusCmsPlugin\Resolver\ResourceResolverInterface; +use Sylius\CmsPlugin\Importer\AbstractImporter; +use Sylius\CmsPlugin\Resolver\ResourceResolverInterface; use Doctrine\ORM\EntityManagerInterface; use Sylius\Component\Locale\Context\LocaleContextInterface; use Symfony\Component\Validator\Validator\ValidatorInterface; diff --git a/doc/installation.md b/doc/installation.md index 515dcfb38..ea75cce05 100644 --- a/doc/installation.md +++ b/doc/installation.md @@ -14,7 +14,7 @@ return [ ... FOS\CKEditorBundle\FOSCKEditorBundle::class => ['all' => true], // WYSIWYG editor - BitBag\SyliusCmsPlugin\BitBagSyliusCmsPlugin::class => ['all' => true], + Sylius\CmsPlugin\BitBagSyliusCmsPlugin::class => ['all' => true], ]; ``` The first line above (FOSCKEditorBundle) might have been already added during composer require command. diff --git a/doc/media.md b/doc/media.md index afd4696ad..2f392559b 100644 --- a/doc/media.md +++ b/doc/media.md @@ -35,7 +35,7 @@ You can add your own media provider by adding a service with a tag named `bitbag ```twig app.media_provider.audio: - class: BitBag\SyliusCmsPlugin\MediaProvider\GenericProvider + class: Sylius\CmsPlugin\MediaProvider\GenericProvider arguments: - "@bitbag_sylius_cms_plugin.media_uploader" - "@templating.engine.twig" diff --git a/phpspec.yml.dist b/phpspec.yml.dist index 510348697..767848352 100755 --- a/phpspec.yml.dist +++ b/phpspec.yml.dist @@ -1,4 +1,4 @@ suites: main: - namespace: BitBag\SyliusCmsPlugin - psr4_prefix: BitBag\SyliusCmsPlugin + namespace: Sylius\CmsPlugin + psr4_prefix: Sylius\CmsPlugin diff --git a/phpunit.xml.dist b/phpunit.xml.dist index aa1bc1a44..99235c856 100644 --- a/phpunit.xml.dist +++ b/phpunit.xml.dist @@ -12,7 +12,7 @@ - + diff --git a/spec/Assigner/ChannelsAssignerSpec.php b/spec/Assigner/ChannelsAssignerSpec.php index f1bf42b79..c11119c2f 100644 --- a/spec/Assigner/ChannelsAssignerSpec.php +++ b/spec/Assigner/ChannelsAssignerSpec.php @@ -2,11 +2,11 @@ declare(strict_types=1); -namespace spec\BitBag\SyliusCmsPlugin\Assigner; +namespace spec\Sylius\CmsPlugin\Assigner; -use BitBag\SyliusCmsPlugin\Assigner\ChannelsAssigner; -use BitBag\SyliusCmsPlugin\Assigner\ChannelsAssignerInterface; use PhpSpec\ObjectBehavior; +use Sylius\CmsPlugin\Assigner\ChannelsAssigner; +use Sylius\CmsPlugin\Assigner\ChannelsAssignerInterface; use Sylius\Component\Channel\Model\ChannelsAwareInterface; use Sylius\Component\Channel\Repository\ChannelRepositoryInterface; use Sylius\Component\Core\Model\ChannelInterface; diff --git a/spec/Assigner/CollectionsAssignerSpec.php b/spec/Assigner/CollectionsAssignerSpec.php index 90e74df3c..a16431479 100644 --- a/spec/Assigner/CollectionsAssignerSpec.php +++ b/spec/Assigner/CollectionsAssignerSpec.php @@ -8,14 +8,14 @@ declare(strict_types=1); -namespace spec\BitBag\SyliusCmsPlugin\Assigner; +namespace spec\Sylius\CmsPlugin\Assigner; -use BitBag\SyliusCmsPlugin\Assigner\CollectionsAssigner; -use BitBag\SyliusCmsPlugin\Assigner\CollectionsAssignerInterface; -use BitBag\SyliusCmsPlugin\Entity\CollectibleInterface; -use BitBag\SyliusCmsPlugin\Entity\CollectionInterface; -use BitBag\SyliusCmsPlugin\Repository\CollectionRepositoryInterface; use PhpSpec\ObjectBehavior; +use Sylius\CmsPlugin\Assigner\CollectionsAssigner; +use Sylius\CmsPlugin\Assigner\CollectionsAssignerInterface; +use Sylius\CmsPlugin\Entity\CollectibleInterface; +use Sylius\CmsPlugin\Entity\CollectionInterface; +use Sylius\CmsPlugin\Repository\CollectionRepositoryInterface; final class CollectionsAssignerSpec extends ObjectBehavior { diff --git a/spec/Assigner/LocalesAssignerSpec.php b/spec/Assigner/LocalesAssignerSpec.php index db38072b3..85ce8f337 100644 --- a/spec/Assigner/LocalesAssignerSpec.php +++ b/spec/Assigner/LocalesAssignerSpec.php @@ -8,12 +8,12 @@ declare(strict_types=1); -namespace spec\BitBag\SyliusCmsPlugin\Assigner; +namespace spec\Sylius\CmsPlugin\Assigner; -use BitBag\SyliusCmsPlugin\Assigner\LocalesAssigner; -use BitBag\SyliusCmsPlugin\Assigner\LocalesAssignerInterface; -use BitBag\SyliusCmsPlugin\Entity\LocaleAwareInterface; use PhpSpec\ObjectBehavior; +use Sylius\CmsPlugin\Assigner\LocalesAssigner; +use Sylius\CmsPlugin\Assigner\LocalesAssignerInterface; +use Sylius\CmsPlugin\Entity\LocaleAwareInterface; use Sylius\Component\Locale\Model\LocaleInterface; use Sylius\Component\Resource\Repository\RepositoryInterface; diff --git a/spec/Assigner/ProductsAssignerSpec.php b/spec/Assigner/ProductsAssignerSpec.php index 0e50991ef..25394a93e 100644 --- a/spec/Assigner/ProductsAssignerSpec.php +++ b/spec/Assigner/ProductsAssignerSpec.php @@ -2,12 +2,12 @@ declare(strict_types=1); -namespace spec\BitBag\SyliusCmsPlugin\Assigner; +namespace spec\Sylius\CmsPlugin\Assigner; -use BitBag\SyliusCmsPlugin\Assigner\ProductsAssigner; -use BitBag\SyliusCmsPlugin\Assigner\ProductsAssignerInterface; -use BitBag\SyliusCmsPlugin\Entity\ProductsAwareInterface; use PhpSpec\ObjectBehavior; +use Sylius\CmsPlugin\Assigner\ProductsAssigner; +use Sylius\CmsPlugin\Assigner\ProductsAssignerInterface; +use Sylius\CmsPlugin\Entity\ProductsAwareInterface; use Sylius\Component\Core\Model\ProductInterface; use Sylius\Component\Core\Repository\ProductRepositoryInterface; diff --git a/spec/Assigner/ProductsInTaxonsAssignerSpec.php b/spec/Assigner/ProductsInTaxonsAssignerSpec.php index 6b59106d6..5b63e1f77 100644 --- a/spec/Assigner/ProductsInTaxonsAssignerSpec.php +++ b/spec/Assigner/ProductsInTaxonsAssignerSpec.php @@ -8,12 +8,12 @@ declare(strict_types=1); -namespace spec\BitBag\SyliusCmsPlugin\Assigner; +namespace spec\Sylius\CmsPlugin\Assigner; -use BitBag\SyliusCmsPlugin\Assigner\ProductsInTaxonsAssigner; -use BitBag\SyliusCmsPlugin\Assigner\ProductsInTaxonsAssignerInterface; -use BitBag\SyliusCmsPlugin\Entity\ProductsInTaxonsAwareInterface; use PhpSpec\ObjectBehavior; +use Sylius\CmsPlugin\Assigner\ProductsInTaxonsAssigner; +use Sylius\CmsPlugin\Assigner\ProductsInTaxonsAssignerInterface; +use Sylius\CmsPlugin\Entity\ProductsInTaxonsAwareInterface; use Sylius\Component\Core\Model\TaxonInterface; use Sylius\Component\Taxonomy\Repository\TaxonRepositoryInterface; diff --git a/spec/Assigner/TaxonsAssignerSpec.php b/spec/Assigner/TaxonsAssignerSpec.php index 092ab8818..8992b1aec 100644 --- a/spec/Assigner/TaxonsAssignerSpec.php +++ b/spec/Assigner/TaxonsAssignerSpec.php @@ -2,12 +2,12 @@ declare(strict_types=1); -namespace spec\BitBag\SyliusCmsPlugin\Assigner; +namespace spec\Sylius\CmsPlugin\Assigner; -use BitBag\SyliusCmsPlugin\Assigner\TaxonsAssigner; -use BitBag\SyliusCmsPlugin\Assigner\TaxonsAssignerInterface; -use BitBag\SyliusCmsPlugin\Entity\TaxonAwareInterface; use PhpSpec\ObjectBehavior; +use Sylius\CmsPlugin\Assigner\TaxonsAssigner; +use Sylius\CmsPlugin\Assigner\TaxonsAssignerInterface; +use Sylius\CmsPlugin\Entity\TaxonAwareInterface; use Sylius\Component\Core\Model\TaxonInterface; use Sylius\Component\Taxonomy\Repository\TaxonRepositoryInterface; diff --git a/spec/Controller/Action/Admin/UploadEditorImageActionSpec.php b/spec/Controller/Action/Admin/UploadEditorImageActionSpec.php index 8eb4b8088..cb6862ba4 100644 --- a/spec/Controller/Action/Admin/UploadEditorImageActionSpec.php +++ b/spec/Controller/Action/Admin/UploadEditorImageActionSpec.php @@ -8,14 +8,14 @@ declare(strict_types=1); -namespace spec\BitBag\SyliusCmsPlugin\Controller\Action\Admin; +namespace spec\Sylius\CmsPlugin\Controller\Action\Admin; -use BitBag\SyliusCmsPlugin\Controller\Action\Admin\UploadEditorImageAction; -use BitBag\SyliusCmsPlugin\Entity\MediaInterface; -use BitBag\SyliusCmsPlugin\MediaProvider\ProviderInterface; -use BitBag\SyliusCmsPlugin\Repository\MediaRepositoryInterface; -use BitBag\SyliusCmsPlugin\Resolver\MediaProviderResolverInterface; use PhpSpec\ObjectBehavior; +use Sylius\CmsPlugin\Controller\Action\Admin\UploadEditorImageAction; +use Sylius\CmsPlugin\Entity\MediaInterface; +use Sylius\CmsPlugin\MediaProvider\ProviderInterface; +use Sylius\CmsPlugin\Repository\MediaRepositoryInterface; +use Sylius\CmsPlugin\Resolver\MediaProviderResolverInterface; use Sylius\Component\Resource\Factory\FactoryInterface; use Symfony\Component\HttpFoundation\File\UploadedFile; use Symfony\Component\HttpFoundation\FileBag; diff --git a/spec/Entity/BlockSpec.php b/spec/Entity/BlockSpec.php index 2a9085ead..6d9c4f14d 100755 --- a/spec/Entity/BlockSpec.php +++ b/spec/Entity/BlockSpec.php @@ -8,12 +8,12 @@ declare(strict_types=1); -namespace spec\BitBag\SyliusCmsPlugin\Entity; +namespace spec\Sylius\CmsPlugin\Entity; -use BitBag\SyliusCmsPlugin\Entity\Block; -use BitBag\SyliusCmsPlugin\Entity\BlockInterface; -use BitBag\SyliusCmsPlugin\Entity\CollectionInterface; use PhpSpec\ObjectBehavior; +use Sylius\CmsPlugin\Entity\Block; +use Sylius\CmsPlugin\Entity\BlockInterface; +use Sylius\CmsPlugin\Entity\CollectionInterface; use Sylius\Component\Core\Model\ChannelInterface; use Sylius\Component\Resource\Model\ResourceInterface; diff --git a/spec/Entity/CollectionSpec.php b/spec/Entity/CollectionSpec.php index fff615fe4..482bb9238 100755 --- a/spec/Entity/CollectionSpec.php +++ b/spec/Entity/CollectionSpec.php @@ -8,11 +8,11 @@ declare(strict_types=1); -namespace spec\BitBag\SyliusCmsPlugin\Entity; +namespace spec\Sylius\CmsPlugin\Entity; -use BitBag\SyliusCmsPlugin\Entity\Collection; -use BitBag\SyliusCmsPlugin\Entity\CollectionInterface; use PhpSpec\ObjectBehavior; +use Sylius\CmsPlugin\Entity\Collection; +use Sylius\CmsPlugin\Entity\CollectionInterface; use Sylius\Component\Resource\Model\ResourceInterface; final class CollectionSpec extends ObjectBehavior diff --git a/spec/Entity/MediaSpec.php b/spec/Entity/MediaSpec.php index 354e84e12..f66f7c560 100755 --- a/spec/Entity/MediaSpec.php +++ b/spec/Entity/MediaSpec.php @@ -8,12 +8,12 @@ declare(strict_types=1); -namespace spec\BitBag\SyliusCmsPlugin\Entity; +namespace spec\Sylius\CmsPlugin\Entity; -use BitBag\SyliusCmsPlugin\Entity\CollectionInterface; -use BitBag\SyliusCmsPlugin\Entity\Media; -use BitBag\SyliusCmsPlugin\Entity\MediaInterface; use PhpSpec\ObjectBehavior; +use Sylius\CmsPlugin\Entity\CollectionInterface; +use Sylius\CmsPlugin\Entity\Media; +use Sylius\CmsPlugin\Entity\MediaInterface; use Sylius\Component\Core\Model\ChannelInterface; use Sylius\Component\Resource\Model\ResourceInterface; use Symfony\Component\HttpFoundation\File\UploadedFile; diff --git a/spec/Entity/MediaTranslationSpec.php b/spec/Entity/MediaTranslationSpec.php index 5252aaa18..548a5d548 100755 --- a/spec/Entity/MediaTranslationSpec.php +++ b/spec/Entity/MediaTranslationSpec.php @@ -8,11 +8,11 @@ declare(strict_types=1); -namespace spec\BitBag\SyliusCmsPlugin\Entity; +namespace spec\Sylius\CmsPlugin\Entity; -use BitBag\SyliusCmsPlugin\Entity\MediaTranslation; -use BitBag\SyliusCmsPlugin\Entity\MediaTranslationInterface; use PhpSpec\ObjectBehavior; +use Sylius\CmsPlugin\Entity\MediaTranslation; +use Sylius\CmsPlugin\Entity\MediaTranslationInterface; use Sylius\Component\Resource\Model\ResourceInterface; use Sylius\Component\Resource\Model\TranslationInterface; diff --git a/spec/Entity/PageSpec.php b/spec/Entity/PageSpec.php index bbc21792b..ef6878962 100755 --- a/spec/Entity/PageSpec.php +++ b/spec/Entity/PageSpec.php @@ -8,12 +8,12 @@ declare(strict_types=1); -namespace spec\BitBag\SyliusCmsPlugin\Entity; +namespace spec\Sylius\CmsPlugin\Entity; -use BitBag\SyliusCmsPlugin\Entity\CollectionInterface; -use BitBag\SyliusCmsPlugin\Entity\Page; -use BitBag\SyliusCmsPlugin\Entity\PageInterface; use PhpSpec\ObjectBehavior; +use Sylius\CmsPlugin\Entity\CollectionInterface; +use Sylius\CmsPlugin\Entity\Page; +use Sylius\CmsPlugin\Entity\PageInterface; use Sylius\Component\Core\Model\ChannelInterface; use Sylius\Component\Resource\Model\ResourceInterface; diff --git a/spec/Entity/PageTranslationSpec.php b/spec/Entity/PageTranslationSpec.php index bcc7fbe1f..37f8555fa 100755 --- a/spec/Entity/PageTranslationSpec.php +++ b/spec/Entity/PageTranslationSpec.php @@ -8,12 +8,12 @@ declare(strict_types=1); -namespace spec\BitBag\SyliusCmsPlugin\Entity; +namespace spec\Sylius\CmsPlugin\Entity; -use BitBag\SyliusCmsPlugin\Entity\MediaInterface; -use BitBag\SyliusCmsPlugin\Entity\PageTranslation; -use BitBag\SyliusCmsPlugin\Entity\PageTranslationInterface; use PhpSpec\ObjectBehavior; +use Sylius\CmsPlugin\Entity\MediaInterface; +use Sylius\CmsPlugin\Entity\PageTranslation; +use Sylius\CmsPlugin\Entity\PageTranslationInterface; use Sylius\Component\Resource\Model\ResourceInterface; use Sylius\Component\Resource\Model\TranslationInterface; diff --git a/spec/EventListener/MediaUploadListenerSpec.php b/spec/EventListener/MediaUploadListenerSpec.php index 1b0a33ae2..e7792ef5b 100755 --- a/spec/EventListener/MediaUploadListenerSpec.php +++ b/spec/EventListener/MediaUploadListenerSpec.php @@ -8,15 +8,15 @@ declare(strict_types=1); -namespace spec\BitBag\SyliusCmsPlugin\EventListener; +namespace spec\Sylius\CmsPlugin\EventListener; -use BitBag\SyliusCmsPlugin\Entity\MediaInterface; -use BitBag\SyliusCmsPlugin\EventListener\MediaUploadListener; -use BitBag\SyliusCmsPlugin\MediaProvider\ProviderInterface; -use BitBag\SyliusCmsPlugin\Resolver\MediaProviderResolverInterface; use PhpSpec\ObjectBehavior; use Prophecy\Argument; use Sylius\Bundle\ResourceBundle\Event\ResourceControllerEvent; +use Sylius\CmsPlugin\Entity\MediaInterface; +use Sylius\CmsPlugin\EventListener\MediaUploadListener; +use Sylius\CmsPlugin\MediaProvider\ProviderInterface; +use Sylius\CmsPlugin\Resolver\MediaProviderResolverInterface; final class MediaUploadListenerSpec extends ObjectBehavior { diff --git a/spec/Exception/ImportFailedExceptionSpec.php b/spec/Exception/ImportFailedExceptionSpec.php index 15597534d..720f1df84 100755 --- a/spec/Exception/ImportFailedExceptionSpec.php +++ b/spec/Exception/ImportFailedExceptionSpec.php @@ -8,10 +8,10 @@ declare(strict_types=1); -namespace spec\BitBag\SyliusCmsPlugin\Exception; +namespace spec\Sylius\CmsPlugin\Exception; -use BitBag\SyliusCmsPlugin\Exception\ImportFailedException; use PhpSpec\ObjectBehavior; +use Sylius\CmsPlugin\Exception\ImportFailedException; final class ImportFailedExceptionSpec extends ObjectBehavior { diff --git a/spec/Form/DataTransformer/MultipleMediaToCodesTransformerSpec.php b/spec/Form/DataTransformer/MultipleMediaToCodesTransformerSpec.php index 0d21b0e8a..85e312868 100644 --- a/spec/Form/DataTransformer/MultipleMediaToCodesTransformerSpec.php +++ b/spec/Form/DataTransformer/MultipleMediaToCodesTransformerSpec.php @@ -8,13 +8,13 @@ declare(strict_types=1); -namespace spec\BitBag\SyliusCmsPlugin\Form\DataTransformer; +namespace spec\Sylius\CmsPlugin\Form\DataTransformer; -use BitBag\SyliusCmsPlugin\Entity\MediaInterface; -use BitBag\SyliusCmsPlugin\Form\DataTransformer\MultipleMediaToCodesTransformer; -use BitBag\SyliusCmsPlugin\Repository\MediaRepositoryInterface; use Doctrine\Common\Collections\ArrayCollection; use PhpSpec\ObjectBehavior; +use Sylius\CmsPlugin\Entity\MediaInterface; +use Sylius\CmsPlugin\Form\DataTransformer\MultipleMediaToCodesTransformer; +use Sylius\CmsPlugin\Repository\MediaRepositoryInterface; final class MultipleMediaToCodesTransformerSpec extends ObjectBehavior { diff --git a/spec/Importer/BlockImporterSpec.php b/spec/Importer/BlockImporterSpec.php index 098ac6bc3..7c3cd2d14 100644 --- a/spec/Importer/BlockImporterSpec.php +++ b/spec/Importer/BlockImporterSpec.php @@ -8,20 +8,20 @@ declare(strict_types=1); -namespace spec\BitBag\SyliusCmsPlugin\Importer; +namespace spec\Sylius\CmsPlugin\Importer; -use BitBag\SyliusCmsPlugin\Entity\BlockInterface; -use BitBag\SyliusCmsPlugin\Importer\BlockImporter; -use BitBag\SyliusCmsPlugin\Importer\BlockImporterInterface; -use BitBag\SyliusCmsPlugin\Repository\BlockRepositoryInterface; -use BitBag\SyliusCmsPlugin\Resolver\Importer\ImporterChannelsResolverInterface; -use BitBag\SyliusCmsPlugin\Resolver\Importer\ImporterCollectionsResolverInterface; -use BitBag\SyliusCmsPlugin\Resolver\Importer\ImporterLocalesResolverInterface; -use BitBag\SyliusCmsPlugin\Resolver\Importer\ImporterProductsInTaxonsResolverInterface; -use BitBag\SyliusCmsPlugin\Resolver\Importer\ImporterProductsResolverInterface; -use BitBag\SyliusCmsPlugin\Resolver\Importer\ImporterTaxonsResolverInterface; -use BitBag\SyliusCmsPlugin\Resolver\ResourceResolverInterface; use PhpSpec\ObjectBehavior; +use Sylius\CmsPlugin\Entity\BlockInterface; +use Sylius\CmsPlugin\Importer\BlockImporter; +use Sylius\CmsPlugin\Importer\BlockImporterInterface; +use Sylius\CmsPlugin\Repository\BlockRepositoryInterface; +use Sylius\CmsPlugin\Resolver\Importer\ImporterChannelsResolverInterface; +use Sylius\CmsPlugin\Resolver\Importer\ImporterCollectionsResolverInterface; +use Sylius\CmsPlugin\Resolver\Importer\ImporterLocalesResolverInterface; +use Sylius\CmsPlugin\Resolver\Importer\ImporterProductsInTaxonsResolverInterface; +use Sylius\CmsPlugin\Resolver\Importer\ImporterProductsResolverInterface; +use Sylius\CmsPlugin\Resolver\Importer\ImporterTaxonsResolverInterface; +use Sylius\CmsPlugin\Resolver\ResourceResolverInterface; use Symfony\Component\Validator\ConstraintViolationList; use Symfony\Component\Validator\Validator\ValidatorInterface; diff --git a/spec/Importer/MediaImporterSpec.php b/spec/Importer/MediaImporterSpec.php index cb47011dd..98f36e86b 100644 --- a/spec/Importer/MediaImporterSpec.php +++ b/spec/Importer/MediaImporterSpec.php @@ -8,13 +8,13 @@ declare(strict_types=1); -namespace spec\BitBag\SyliusCmsPlugin\Importer; +namespace spec\Sylius\CmsPlugin\Importer; -use BitBag\SyliusCmsPlugin\Entity\MediaInterface; -use BitBag\SyliusCmsPlugin\Repository\MediaRepositoryInterface; -use BitBag\SyliusCmsPlugin\Resolver\Importer\ImporterCollectionsResolverInterface; -use BitBag\SyliusCmsPlugin\Resolver\ResourceResolverInterface; use PhpSpec\ObjectBehavior; +use Sylius\CmsPlugin\Entity\MediaInterface; +use Sylius\CmsPlugin\Repository\MediaRepositoryInterface; +use Sylius\CmsPlugin\Resolver\Importer\ImporterCollectionsResolverInterface; +use Sylius\CmsPlugin\Resolver\ResourceResolverInterface; use Sylius\Component\Locale\Context\LocaleContextInterface; use Symfony\Component\Validator\ConstraintViolationList; use Symfony\Component\Validator\Validator\ValidatorInterface; @@ -39,8 +39,8 @@ public function let( public function it_is_initializable() { - $this->shouldHaveType(\BitBag\SyliusCmsPlugin\Importer\MediaImporter::class); - $this->shouldImplement(\BitBag\SyliusCmsPlugin\Importer\MediaImporterInterface::class); + $this->shouldHaveType(\Sylius\CmsPlugin\Importer\MediaImporter::class); + $this->shouldImplement(\Sylius\CmsPlugin\Importer\MediaImporterInterface::class); } public function it_imports_media( diff --git a/spec/Importer/PageImporterSpec.php b/spec/Importer/PageImporterSpec.php index f7a583d8a..7ddf38e5c 100644 --- a/spec/Importer/PageImporterSpec.php +++ b/spec/Importer/PageImporterSpec.php @@ -8,14 +8,14 @@ declare(strict_types=1); -namespace spec\BitBag\SyliusCmsPlugin\Importer; +namespace spec\Sylius\CmsPlugin\Importer; -use BitBag\SyliusCmsPlugin\Entity\PageInterface; -use BitBag\SyliusCmsPlugin\Resolver\Importer\ImporterChannelsResolverInterface; -use BitBag\SyliusCmsPlugin\Resolver\Importer\ImporterCollectionsResolverInterface; -use BitBag\SyliusCmsPlugin\Resolver\ResourceResolverInterface; use Doctrine\ORM\EntityManagerInterface; use PhpSpec\ObjectBehavior; +use Sylius\CmsPlugin\Entity\PageInterface; +use Sylius\CmsPlugin\Resolver\Importer\ImporterChannelsResolverInterface; +use Sylius\CmsPlugin\Resolver\Importer\ImporterCollectionsResolverInterface; +use Sylius\CmsPlugin\Resolver\ResourceResolverInterface; use Sylius\Component\Locale\Context\LocaleContextInterface; use Symfony\Component\Validator\ConstraintViolationList; use Symfony\Component\Validator\Validator\ValidatorInterface; @@ -42,8 +42,8 @@ public function let( public function it_is_initializable() { - $this->shouldHaveType(\BitBag\SyliusCmsPlugin\Importer\PageImporter::class); - $this->shouldImplement(\BitBag\SyliusCmsPlugin\Importer\PageImporterInterface::class); + $this->shouldHaveType(\Sylius\CmsPlugin\Importer\PageImporter::class); + $this->shouldImplement(\Sylius\CmsPlugin\Importer\PageImporterInterface::class); } public function it_imports_page_no_url( diff --git a/spec/MediaProvider/FilenameHelperSpec.php b/spec/MediaProvider/FilenameHelperSpec.php index dd9312bbe..58558f59c 100644 --- a/spec/MediaProvider/FilenameHelperSpec.php +++ b/spec/MediaProvider/FilenameHelperSpec.php @@ -9,10 +9,10 @@ declare(strict_types=1); -namespace spec\BitBag\SyliusCmsPlugin\MediaProvider; +namespace spec\Sylius\CmsPlugin\MediaProvider; -use BitBag\SyliusCmsPlugin\MediaProvider\FilenameHelper; use PhpSpec\ObjectBehavior; +use Sylius\CmsPlugin\MediaProvider\FilenameHelper; class FilenameHelperSpec extends ObjectBehavior { diff --git a/spec/MediaProvider/GenericProviderSpec.php b/spec/MediaProvider/GenericProviderSpec.php index 987c61b03..270137daf 100644 --- a/spec/MediaProvider/GenericProviderSpec.php +++ b/spec/MediaProvider/GenericProviderSpec.php @@ -8,13 +8,13 @@ declare(strict_types=1); -namespace spec\BitBag\SyliusCmsPlugin\MediaProvider; +namespace spec\Sylius\CmsPlugin\MediaProvider; -use BitBag\SyliusCmsPlugin\Entity\MediaInterface; -use BitBag\SyliusCmsPlugin\MediaProvider\GenericProvider; -use BitBag\SyliusCmsPlugin\MediaProvider\ProviderInterface; -use BitBag\SyliusCmsPlugin\Uploader\MediaUploaderInterface; use PhpSpec\ObjectBehavior; +use Sylius\CmsPlugin\Entity\MediaInterface; +use Sylius\CmsPlugin\MediaProvider\GenericProvider; +use Sylius\CmsPlugin\MediaProvider\ProviderInterface; +use Sylius\CmsPlugin\Uploader\MediaUploaderInterface; use Twig\Environment; final class GenericProviderSpec extends ObjectBehavior diff --git a/spec/MediaProvider/GenericProviderSpec.php~refs/remotes/origin/master b/spec/MediaProvider/GenericProviderSpec.php~refs/remotes/origin/master index 098d51d65..101fd08c2 100644 --- a/spec/MediaProvider/GenericProviderSpec.php~refs/remotes/origin/master +++ b/spec/MediaProvider/GenericProviderSpec.php~refs/remotes/origin/master @@ -8,12 +8,12 @@ declare(strict_types=1); -namespace spec\BitBag\SyliusCmsPlugin\MediaProvider; +namespace spec\Sylius\CmsPlugin\MediaProvider; -use BitBag\SyliusCmsPlugin\Entity\MediaInterface; -use BitBag\SyliusCmsPlugin\MediaProvider\GenericProvider; -use BitBag\SyliusCmsPlugin\MediaProvider\ProviderInterface; -use BitBag\SyliusCmsPlugin\Uploader\MediaUploaderInterface; +use Sylius\CmsPlugin\Entity\MediaInterface; +use Sylius\CmsPlugin\MediaProvider\GenericProvider; +use Sylius\CmsPlugin\MediaProvider\ProviderInterface; +use Sylius\CmsPlugin\Uploader\MediaUploaderInterface; use PhpSpec\ObjectBehavior; use Twig\Environment; diff --git a/spec/Menu/ContentManagementMenuBuilderSpec.php b/spec/Menu/ContentManagementMenuBuilderSpec.php index 51ca834c8..5de380b3f 100755 --- a/spec/Menu/ContentManagementMenuBuilderSpec.php +++ b/spec/Menu/ContentManagementMenuBuilderSpec.php @@ -8,13 +8,13 @@ declare(strict_types=1); -namespace spec\BitBag\SyliusCmsPlugin\Menu; +namespace spec\Sylius\CmsPlugin\Menu; -use BitBag\SyliusCmsPlugin\Menu\ContentManagementMenuBuilder; -use BitBag\SyliusCmsPlugin\Menu\MenuReorderInterface; use Knp\Menu\ItemInterface; use PhpSpec\ObjectBehavior; use Sylius\Bundle\UiBundle\Menu\Event\MenuBuilderEvent; +use Sylius\CmsPlugin\Menu\ContentManagementMenuBuilder; +use Sylius\CmsPlugin\Menu\MenuReorderInterface; final class ContentManagementMenuBuilderSpec extends ObjectBehavior { diff --git a/spec/Menu/MenuReorderSpec.php b/spec/Menu/MenuReorderSpec.php index 6dc38e50b..573934101 100644 --- a/spec/Menu/MenuReorderSpec.php +++ b/spec/Menu/MenuReorderSpec.php @@ -8,13 +8,13 @@ declare(strict_types=1); -namespace spec\BitBag\SyliusCmsPlugin\Menu; +namespace spec\Sylius\CmsPlugin\Menu; -use BitBag\SyliusCmsPlugin\Menu\MenuReorder; -use BitBag\SyliusCmsPlugin\Menu\MenuReorderInterface; use Knp\Menu\ItemInterface; use PhpSpec\ObjectBehavior; use Prophecy\Argument; +use Sylius\CmsPlugin\Menu\MenuReorder; +use Sylius\CmsPlugin\Menu\MenuReorderInterface; final class MenuReorderSpec extends ObjectBehavior { diff --git a/spec/Processor/ImportProcessorSpec.php b/spec/Processor/ImportProcessorSpec.php index 69bb443b8..f7085235e 100644 --- a/spec/Processor/ImportProcessorSpec.php +++ b/spec/Processor/ImportProcessorSpec.php @@ -9,15 +9,15 @@ declare(strict_types=1); -namespace spec\BitBag\SyliusCmsPlugin\Processor; +namespace spec\Sylius\CmsPlugin\Processor; -use BitBag\SyliusCmsPlugin\Exception\ImportFailedException; -use BitBag\SyliusCmsPlugin\Importer\ImporterChainInterface; -use BitBag\SyliusCmsPlugin\Importer\ImporterInterface; -use BitBag\SyliusCmsPlugin\Processor\ImportProcessor; -use BitBag\SyliusCmsPlugin\Reader\ReaderInterface; use Doctrine\ORM\EntityManagerInterface; use PhpSpec\ObjectBehavior; +use Sylius\CmsPlugin\Exception\ImportFailedException; +use Sylius\CmsPlugin\Importer\ImporterChainInterface; +use Sylius\CmsPlugin\Importer\ImporterInterface; +use Sylius\CmsPlugin\Processor\ImportProcessor; +use Sylius\CmsPlugin\Reader\ReaderInterface; class ImportProcessorSpec extends ObjectBehavior { diff --git a/spec/Renderer/Collection/CollectionBlocksRendererSpec.php b/spec/Renderer/Collection/CollectionBlocksRendererSpec.php index 3ed27a690..4274dd18f 100644 --- a/spec/Renderer/Collection/CollectionBlocksRendererSpec.php +++ b/spec/Renderer/Collection/CollectionBlocksRendererSpec.php @@ -8,15 +8,15 @@ declare(strict_types=1); -namespace spec\BitBag\SyliusCmsPlugin\Renderer\Collection; +namespace spec\Sylius\CmsPlugin\Renderer\Collection; -use BitBag\SyliusCmsPlugin\Entity\BlockInterface; -use BitBag\SyliusCmsPlugin\Entity\CollectionInterface; -use BitBag\SyliusCmsPlugin\Renderer\Collection\CollectionBlocksRenderer; -use BitBag\SyliusCmsPlugin\Renderer\Collection\CollectionRendererInterface; -use BitBag\SyliusCmsPlugin\Renderer\ContentElementRendererStrategyInterface; use Doctrine\Common\Collections\ArrayCollection; use PhpSpec\ObjectBehavior; +use Sylius\CmsPlugin\Entity\BlockInterface; +use Sylius\CmsPlugin\Entity\CollectionInterface; +use Sylius\CmsPlugin\Renderer\Collection\CollectionBlocksRenderer; +use Sylius\CmsPlugin\Renderer\Collection\CollectionRendererInterface; +use Sylius\CmsPlugin\Renderer\ContentElementRendererStrategyInterface; final class CollectionBlocksRendererSpec extends ObjectBehavior { diff --git a/spec/Renderer/Collection/CollectionMediaRendererSpec.php b/spec/Renderer/Collection/CollectionMediaRendererSpec.php index d04537038..be9ef9b40 100644 --- a/spec/Renderer/Collection/CollectionMediaRendererSpec.php +++ b/spec/Renderer/Collection/CollectionMediaRendererSpec.php @@ -8,15 +8,15 @@ declare(strict_types=1); -namespace spec\BitBag\SyliusCmsPlugin\Renderer\Collection; +namespace spec\Sylius\CmsPlugin\Renderer\Collection; -use BitBag\SyliusCmsPlugin\Entity\CollectionInterface; -use BitBag\SyliusCmsPlugin\Entity\MediaInterface; -use BitBag\SyliusCmsPlugin\Renderer\Collection\CollectionMediaRenderer; -use BitBag\SyliusCmsPlugin\Renderer\Collection\CollectionRendererInterface; -use BitBag\SyliusCmsPlugin\Twig\Runtime\RenderMediaRuntimeInterface; use Doctrine\Common\Collections\ArrayCollection; use PhpSpec\ObjectBehavior; +use Sylius\CmsPlugin\Entity\CollectionInterface; +use Sylius\CmsPlugin\Entity\MediaInterface; +use Sylius\CmsPlugin\Renderer\Collection\CollectionMediaRenderer; +use Sylius\CmsPlugin\Renderer\Collection\CollectionRendererInterface; +use Sylius\CmsPlugin\Twig\Runtime\RenderMediaRuntimeInterface; final class CollectionMediaRendererSpec extends ObjectBehavior { diff --git a/spec/Renderer/Collection/CollectionPagesRendererSpec.php b/spec/Renderer/Collection/CollectionPagesRendererSpec.php index a62da0651..affba2662 100644 --- a/spec/Renderer/Collection/CollectionPagesRendererSpec.php +++ b/spec/Renderer/Collection/CollectionPagesRendererSpec.php @@ -8,15 +8,15 @@ declare(strict_types=1); -namespace spec\BitBag\SyliusCmsPlugin\Renderer\Collection; +namespace spec\Sylius\CmsPlugin\Renderer\Collection; -use BitBag\SyliusCmsPlugin\Entity\CollectionInterface; -use BitBag\SyliusCmsPlugin\Entity\PageInterface; -use BitBag\SyliusCmsPlugin\Renderer\Collection\CollectionPagesRenderer; -use BitBag\SyliusCmsPlugin\Renderer\Collection\CollectionRendererInterface; -use BitBag\SyliusCmsPlugin\Renderer\PageLinkRendererInterface; use Doctrine\Common\Collections\ArrayCollection; use PhpSpec\ObjectBehavior; +use Sylius\CmsPlugin\Entity\CollectionInterface; +use Sylius\CmsPlugin\Entity\PageInterface; +use Sylius\CmsPlugin\Renderer\Collection\CollectionPagesRenderer; +use Sylius\CmsPlugin\Renderer\Collection\CollectionRendererInterface; +use Sylius\CmsPlugin\Renderer\PageLinkRendererInterface; final class CollectionPagesRendererSpec extends ObjectBehavior { diff --git a/spec/Renderer/CollectionRendererStrategySpec.php b/spec/Renderer/CollectionRendererStrategySpec.php index c36b781a9..fdda116b6 100644 --- a/spec/Renderer/CollectionRendererStrategySpec.php +++ b/spec/Renderer/CollectionRendererStrategySpec.php @@ -8,13 +8,13 @@ declare(strict_types=1); -namespace spec\BitBag\SyliusCmsPlugin\Renderer; +namespace spec\Sylius\CmsPlugin\Renderer; -use BitBag\SyliusCmsPlugin\Entity\CollectionInterface; -use BitBag\SyliusCmsPlugin\Renderer\Collection\CollectionRendererInterface; -use BitBag\SyliusCmsPlugin\Renderer\CollectionRendererStrategy; -use BitBag\SyliusCmsPlugin\Renderer\CollectionRendererStrategyInterface; use PhpSpec\ObjectBehavior; +use Sylius\CmsPlugin\Entity\CollectionInterface; +use Sylius\CmsPlugin\Renderer\Collection\CollectionRendererInterface; +use Sylius\CmsPlugin\Renderer\CollectionRendererStrategy; +use Sylius\CmsPlugin\Renderer\CollectionRendererStrategyInterface; final class CollectionRendererStrategySpec extends ObjectBehavior { diff --git a/spec/Renderer/ContentElement/HeadingContentElementRendererSpec.php b/spec/Renderer/ContentElement/HeadingContentElementRendererSpec.php index d312f8cba..a730ede3b 100644 --- a/spec/Renderer/ContentElement/HeadingContentElementRendererSpec.php +++ b/spec/Renderer/ContentElement/HeadingContentElementRendererSpec.php @@ -8,13 +8,13 @@ declare(strict_types=1); -namespace spec\BitBag\SyliusCmsPlugin\Renderer\ContentElement; +namespace spec\Sylius\CmsPlugin\Renderer\ContentElement; -use BitBag\SyliusCmsPlugin\Entity\ContentConfigurationInterface; -use BitBag\SyliusCmsPlugin\Form\Type\ContentElements\HeadingContentElementType; -use BitBag\SyliusCmsPlugin\Renderer\ContentElement\ContentElementRendererInterface; -use BitBag\SyliusCmsPlugin\Renderer\ContentElement\HeadingContentElementRenderer; use PhpSpec\ObjectBehavior; +use Sylius\CmsPlugin\Entity\ContentConfigurationInterface; +use Sylius\CmsPlugin\Form\Type\ContentElements\HeadingContentElementType; +use Sylius\CmsPlugin\Renderer\ContentElement\ContentElementRendererInterface; +use Sylius\CmsPlugin\Renderer\ContentElement\HeadingContentElementRenderer; use Twig\Environment; final class HeadingContentElementRendererSpec extends ObjectBehavior diff --git a/spec/Renderer/ContentElement/MultipleMediaContentElementRendererSpec.php b/spec/Renderer/ContentElement/MultipleMediaContentElementRendererSpec.php index eb5950d34..851a3f32d 100644 --- a/spec/Renderer/ContentElement/MultipleMediaContentElementRendererSpec.php +++ b/spec/Renderer/ContentElement/MultipleMediaContentElementRendererSpec.php @@ -8,16 +8,16 @@ declare(strict_types=1); -namespace spec\BitBag\SyliusCmsPlugin\Renderer\ContentElement; +namespace spec\Sylius\CmsPlugin\Renderer\ContentElement; -use BitBag\SyliusCmsPlugin\Entity\ContentConfigurationInterface; -use BitBag\SyliusCmsPlugin\Entity\MediaInterface; -use BitBag\SyliusCmsPlugin\Form\Type\ContentElements\MultipleMediaContentElementType; -use BitBag\SyliusCmsPlugin\Renderer\ContentElement\ContentElementRendererInterface; -use BitBag\SyliusCmsPlugin\Renderer\ContentElement\MultipleMediaContentElementRenderer; -use BitBag\SyliusCmsPlugin\Repository\MediaRepositoryInterface; -use BitBag\SyliusCmsPlugin\Twig\Runtime\RenderMediaRuntimeInterface; use PhpSpec\ObjectBehavior; +use Sylius\CmsPlugin\Entity\ContentConfigurationInterface; +use Sylius\CmsPlugin\Entity\MediaInterface; +use Sylius\CmsPlugin\Form\Type\ContentElements\MultipleMediaContentElementType; +use Sylius\CmsPlugin\Renderer\ContentElement\ContentElementRendererInterface; +use Sylius\CmsPlugin\Renderer\ContentElement\MultipleMediaContentElementRenderer; +use Sylius\CmsPlugin\Repository\MediaRepositoryInterface; +use Sylius\CmsPlugin\Twig\Runtime\RenderMediaRuntimeInterface; use Twig\Environment; final class MultipleMediaContentElementRendererSpec extends ObjectBehavior diff --git a/spec/Renderer/ContentElement/PagesCollectionContentElementRendererSpec.php b/spec/Renderer/ContentElement/PagesCollectionContentElementRendererSpec.php index 96bca9fea..aac590e02 100644 --- a/spec/Renderer/ContentElement/PagesCollectionContentElementRendererSpec.php +++ b/spec/Renderer/ContentElement/PagesCollectionContentElementRendererSpec.php @@ -8,16 +8,16 @@ declare(strict_types=1); -namespace spec\BitBag\SyliusCmsPlugin\Renderer\ContentElement; +namespace spec\Sylius\CmsPlugin\Renderer\ContentElement; -use BitBag\SyliusCmsPlugin\Entity\CollectionInterface; -use BitBag\SyliusCmsPlugin\Entity\ContentConfigurationInterface; -use BitBag\SyliusCmsPlugin\Form\Type\ContentElements\PagesCollectionContentElementType; -use BitBag\SyliusCmsPlugin\Renderer\ContentElement\ContentElementRendererInterface; -use BitBag\SyliusCmsPlugin\Renderer\ContentElement\PagesCollectionContentElementRenderer; -use BitBag\SyliusCmsPlugin\Repository\CollectionRepositoryInterface; use Doctrine\Common\Collections\ArrayCollection; use PhpSpec\ObjectBehavior; +use Sylius\CmsPlugin\Entity\CollectionInterface; +use Sylius\CmsPlugin\Entity\ContentConfigurationInterface; +use Sylius\CmsPlugin\Form\Type\ContentElements\PagesCollectionContentElementType; +use Sylius\CmsPlugin\Renderer\ContentElement\ContentElementRendererInterface; +use Sylius\CmsPlugin\Renderer\ContentElement\PagesCollectionContentElementRenderer; +use Sylius\CmsPlugin\Repository\CollectionRepositoryInterface; use Twig\Environment; final class PagesCollectionContentElementRendererSpec extends ObjectBehavior diff --git a/spec/Renderer/ContentElement/ProductsCarouselByTaxonContentElementRendererSpec.php b/spec/Renderer/ContentElement/ProductsCarouselByTaxonContentElementRendererSpec.php index 04f5e98ba..bccc9f817 100644 --- a/spec/Renderer/ContentElement/ProductsCarouselByTaxonContentElementRendererSpec.php +++ b/spec/Renderer/ContentElement/ProductsCarouselByTaxonContentElementRendererSpec.php @@ -8,13 +8,13 @@ declare(strict_types=1); -namespace spec\BitBag\SyliusCmsPlugin\Renderer\ContentElement; +namespace spec\Sylius\CmsPlugin\Renderer\ContentElement; -use BitBag\SyliusCmsPlugin\Entity\ContentConfigurationInterface; -use BitBag\SyliusCmsPlugin\Form\Type\ContentElements\ProductsCarouselByTaxonContentElementType; -use BitBag\SyliusCmsPlugin\Renderer\ContentElement\ContentElementRendererInterface; -use BitBag\SyliusCmsPlugin\Renderer\ContentElement\ProductsCarouselByTaxonContentElementRenderer; use PhpSpec\ObjectBehavior; +use Sylius\CmsPlugin\Entity\ContentConfigurationInterface; +use Sylius\CmsPlugin\Form\Type\ContentElements\ProductsCarouselByTaxonContentElementType; +use Sylius\CmsPlugin\Renderer\ContentElement\ContentElementRendererInterface; +use Sylius\CmsPlugin\Renderer\ContentElement\ProductsCarouselByTaxonContentElementRenderer; use Sylius\Component\Core\Model\Product; use Sylius\Component\Core\Model\TaxonInterface; use Sylius\Component\Core\Repository\ProductRepositoryInterface; diff --git a/spec/Renderer/ContentElement/ProductsCarouselContentElementRendererSpec.php b/spec/Renderer/ContentElement/ProductsCarouselContentElementRendererSpec.php index b9081653d..031d0dbc6 100644 --- a/spec/Renderer/ContentElement/ProductsCarouselContentElementRendererSpec.php +++ b/spec/Renderer/ContentElement/ProductsCarouselContentElementRendererSpec.php @@ -8,13 +8,13 @@ declare(strict_types=1); -namespace spec\BitBag\SyliusCmsPlugin\Renderer\ContentElement; +namespace spec\Sylius\CmsPlugin\Renderer\ContentElement; -use BitBag\SyliusCmsPlugin\Entity\ContentConfigurationInterface; -use BitBag\SyliusCmsPlugin\Form\Type\ContentElements\ProductsCarouselContentElementType; -use BitBag\SyliusCmsPlugin\Renderer\ContentElement\ContentElementRendererInterface; -use BitBag\SyliusCmsPlugin\Renderer\ContentElement\ProductsCarouselContentElementRenderer; use PhpSpec\ObjectBehavior; +use Sylius\CmsPlugin\Entity\ContentConfigurationInterface; +use Sylius\CmsPlugin\Form\Type\ContentElements\ProductsCarouselContentElementType; +use Sylius\CmsPlugin\Renderer\ContentElement\ContentElementRendererInterface; +use Sylius\CmsPlugin\Renderer\ContentElement\ProductsCarouselContentElementRenderer; use Sylius\Component\Core\Model\Product; use Sylius\Component\Core\Repository\ProductRepositoryInterface; use Twig\Environment; diff --git a/spec/Renderer/ContentElement/ProductsGridByTaxonContentElementRendererSpec.php b/spec/Renderer/ContentElement/ProductsGridByTaxonContentElementRendererSpec.php index 55575bb87..85a074a4e 100644 --- a/spec/Renderer/ContentElement/ProductsGridByTaxonContentElementRendererSpec.php +++ b/spec/Renderer/ContentElement/ProductsGridByTaxonContentElementRendererSpec.php @@ -8,13 +8,13 @@ declare(strict_types=1); -namespace spec\BitBag\SyliusCmsPlugin\Renderer\ContentElement; +namespace spec\Sylius\CmsPlugin\Renderer\ContentElement; -use BitBag\SyliusCmsPlugin\Entity\ContentConfigurationInterface; -use BitBag\SyliusCmsPlugin\Form\Type\ContentElements\ProductsGridByTaxonContentElementType; -use BitBag\SyliusCmsPlugin\Renderer\ContentElement\ContentElementRendererInterface; -use BitBag\SyliusCmsPlugin\Renderer\ContentElement\ProductsGridByTaxonContentElementRenderer; use PhpSpec\ObjectBehavior; +use Sylius\CmsPlugin\Entity\ContentConfigurationInterface; +use Sylius\CmsPlugin\Form\Type\ContentElements\ProductsGridByTaxonContentElementType; +use Sylius\CmsPlugin\Renderer\ContentElement\ContentElementRendererInterface; +use Sylius\CmsPlugin\Renderer\ContentElement\ProductsGridByTaxonContentElementRenderer; use Sylius\Component\Core\Model\Product; use Sylius\Component\Core\Model\TaxonInterface; use Sylius\Component\Core\Repository\ProductRepositoryInterface; diff --git a/spec/Renderer/ContentElement/ProductsGridContentElementRendererSpec.php b/spec/Renderer/ContentElement/ProductsGridContentElementRendererSpec.php index 049cc2269..243a5da68 100644 --- a/spec/Renderer/ContentElement/ProductsGridContentElementRendererSpec.php +++ b/spec/Renderer/ContentElement/ProductsGridContentElementRendererSpec.php @@ -8,13 +8,13 @@ declare(strict_types=1); -namespace spec\BitBag\SyliusCmsPlugin\Renderer\ContentElement; +namespace spec\Sylius\CmsPlugin\Renderer\ContentElement; -use BitBag\SyliusCmsPlugin\Entity\ContentConfigurationInterface; -use BitBag\SyliusCmsPlugin\Form\Type\ContentElements\ProductsGridContentElementType; -use BitBag\SyliusCmsPlugin\Renderer\ContentElement\ContentElementRendererInterface; -use BitBag\SyliusCmsPlugin\Renderer\ContentElement\ProductsGridContentElementRenderer; use PhpSpec\ObjectBehavior; +use Sylius\CmsPlugin\Entity\ContentConfigurationInterface; +use Sylius\CmsPlugin\Form\Type\ContentElements\ProductsGridContentElementType; +use Sylius\CmsPlugin\Renderer\ContentElement\ContentElementRendererInterface; +use Sylius\CmsPlugin\Renderer\ContentElement\ProductsGridContentElementRenderer; use Sylius\Component\Core\Model\Product; use Sylius\Component\Core\Repository\ProductRepositoryInterface; use Twig\Environment; diff --git a/spec/Renderer/ContentElement/SingleMediaContentElementRendererSpec.php b/spec/Renderer/ContentElement/SingleMediaContentElementRendererSpec.php index 896feffea..13d49ce62 100644 --- a/spec/Renderer/ContentElement/SingleMediaContentElementRendererSpec.php +++ b/spec/Renderer/ContentElement/SingleMediaContentElementRendererSpec.php @@ -8,16 +8,16 @@ declare(strict_types=1); -namespace spec\BitBag\SyliusCmsPlugin\Renderer\ContentElement; +namespace spec\Sylius\CmsPlugin\Renderer\ContentElement; -use BitBag\SyliusCmsPlugin\Entity\ContentConfigurationInterface; -use BitBag\SyliusCmsPlugin\Entity\MediaInterface; -use BitBag\SyliusCmsPlugin\Form\Type\ContentElements\SingleMediaContentElementType; -use BitBag\SyliusCmsPlugin\Renderer\ContentElement\ContentElementRendererInterface; -use BitBag\SyliusCmsPlugin\Renderer\ContentElement\SingleMediaContentElementRenderer; -use BitBag\SyliusCmsPlugin\Repository\MediaRepositoryInterface; -use BitBag\SyliusCmsPlugin\Twig\Runtime\RenderMediaRuntimeInterface; use PhpSpec\ObjectBehavior; +use Sylius\CmsPlugin\Entity\ContentConfigurationInterface; +use Sylius\CmsPlugin\Entity\MediaInterface; +use Sylius\CmsPlugin\Form\Type\ContentElements\SingleMediaContentElementType; +use Sylius\CmsPlugin\Renderer\ContentElement\ContentElementRendererInterface; +use Sylius\CmsPlugin\Renderer\ContentElement\SingleMediaContentElementRenderer; +use Sylius\CmsPlugin\Repository\MediaRepositoryInterface; +use Sylius\CmsPlugin\Twig\Runtime\RenderMediaRuntimeInterface; use Twig\Environment; final class SingleMediaContentElementRendererSpec extends ObjectBehavior diff --git a/spec/Renderer/ContentElement/SpacerContentElementRendererSpec.php b/spec/Renderer/ContentElement/SpacerContentElementRendererSpec.php index 435378ec8..b41e82747 100644 --- a/spec/Renderer/ContentElement/SpacerContentElementRendererSpec.php +++ b/spec/Renderer/ContentElement/SpacerContentElementRendererSpec.php @@ -8,13 +8,13 @@ declare(strict_types=1); -namespace spec\BitBag\SyliusCmsPlugin\Renderer\ContentElement; +namespace spec\Sylius\CmsPlugin\Renderer\ContentElement; -use BitBag\SyliusCmsPlugin\Entity\ContentConfigurationInterface; -use BitBag\SyliusCmsPlugin\Form\Type\ContentElements\SpacerContentElementType; -use BitBag\SyliusCmsPlugin\Renderer\ContentElement\ContentElementRendererInterface; -use BitBag\SyliusCmsPlugin\Renderer\ContentElement\SpacerContentElementRenderer; use PhpSpec\ObjectBehavior; +use Sylius\CmsPlugin\Entity\ContentConfigurationInterface; +use Sylius\CmsPlugin\Form\Type\ContentElements\SpacerContentElementType; +use Sylius\CmsPlugin\Renderer\ContentElement\ContentElementRendererInterface; +use Sylius\CmsPlugin\Renderer\ContentElement\SpacerContentElementRenderer; use Twig\Environment; final class SpacerContentElementRendererSpec extends ObjectBehavior diff --git a/spec/Renderer/ContentElement/TaxonsListContentElementRendererSpec.php b/spec/Renderer/ContentElement/TaxonsListContentElementRendererSpec.php index 2f6d2dcc1..cd0f2e617 100644 --- a/spec/Renderer/ContentElement/TaxonsListContentElementRendererSpec.php +++ b/spec/Renderer/ContentElement/TaxonsListContentElementRendererSpec.php @@ -8,13 +8,13 @@ declare(strict_types=1); -namespace spec\BitBag\SyliusCmsPlugin\Renderer\ContentElement; +namespace spec\Sylius\CmsPlugin\Renderer\ContentElement; -use BitBag\SyliusCmsPlugin\Entity\ContentConfigurationInterface; -use BitBag\SyliusCmsPlugin\Form\Type\ContentElements\TaxonsListContentElementType; -use BitBag\SyliusCmsPlugin\Renderer\ContentElement\ContentElementRendererInterface; -use BitBag\SyliusCmsPlugin\Renderer\ContentElement\TaxonsListContentElementRenderer; use PhpSpec\ObjectBehavior; +use Sylius\CmsPlugin\Entity\ContentConfigurationInterface; +use Sylius\CmsPlugin\Form\Type\ContentElements\TaxonsListContentElementType; +use Sylius\CmsPlugin\Renderer\ContentElement\ContentElementRendererInterface; +use Sylius\CmsPlugin\Renderer\ContentElement\TaxonsListContentElementRenderer; use Sylius\Component\Core\Model\Taxon; use Sylius\Component\Taxonomy\Repository\TaxonRepositoryInterface; use Twig\Environment; diff --git a/spec/Renderer/ContentElement/TextareaContentElementRendererSpec.php b/spec/Renderer/ContentElement/TextareaContentElementRendererSpec.php index c0ae8f376..f53351531 100644 --- a/spec/Renderer/ContentElement/TextareaContentElementRendererSpec.php +++ b/spec/Renderer/ContentElement/TextareaContentElementRendererSpec.php @@ -8,13 +8,13 @@ declare(strict_types=1); -namespace spec\BitBag\SyliusCmsPlugin\Renderer\ContentElement; +namespace spec\Sylius\CmsPlugin\Renderer\ContentElement; -use BitBag\SyliusCmsPlugin\Entity\ContentConfigurationInterface; -use BitBag\SyliusCmsPlugin\Form\Type\ContentElements\TextareaContentElementType; -use BitBag\SyliusCmsPlugin\Renderer\ContentElement\ContentElementRendererInterface; -use BitBag\SyliusCmsPlugin\Renderer\ContentElement\TextareaContentElementRenderer; use PhpSpec\ObjectBehavior; +use Sylius\CmsPlugin\Entity\ContentConfigurationInterface; +use Sylius\CmsPlugin\Form\Type\ContentElements\TextareaContentElementType; +use Sylius\CmsPlugin\Renderer\ContentElement\ContentElementRendererInterface; +use Sylius\CmsPlugin\Renderer\ContentElement\TextareaContentElementRenderer; use Twig\Environment; final class TextareaContentElementRendererSpec extends ObjectBehavior diff --git a/spec/Renderer/ContentElementRendererStrategySpec.php b/spec/Renderer/ContentElementRendererStrategySpec.php index 8b9d93de1..274bdd15d 100644 --- a/spec/Renderer/ContentElementRendererStrategySpec.php +++ b/spec/Renderer/ContentElementRendererStrategySpec.php @@ -8,17 +8,17 @@ declare(strict_types=1); -namespace spec\BitBag\SyliusCmsPlugin\Renderer; - -use BitBag\SyliusCmsPlugin\Entity\BlockInterface; -use BitBag\SyliusCmsPlugin\Entity\ContentConfigurationInterface; -use BitBag\SyliusCmsPlugin\Entity\PageInterface; -use BitBag\SyliusCmsPlugin\Renderer\ContentElement\ContentElementRendererInterface; -use BitBag\SyliusCmsPlugin\Renderer\ContentElementRendererStrategy; -use BitBag\SyliusCmsPlugin\Renderer\ContentElementRendererStrategyInterface; -use BitBag\SyliusCmsPlugin\Twig\Parser\ContentParserInterface; +namespace spec\Sylius\CmsPlugin\Renderer; + use Doctrine\Common\Collections\ArrayCollection; use PhpSpec\ObjectBehavior; +use Sylius\CmsPlugin\Entity\BlockInterface; +use Sylius\CmsPlugin\Entity\ContentConfigurationInterface; +use Sylius\CmsPlugin\Entity\PageInterface; +use Sylius\CmsPlugin\Renderer\ContentElement\ContentElementRendererInterface; +use Sylius\CmsPlugin\Renderer\ContentElementRendererStrategy; +use Sylius\CmsPlugin\Renderer\ContentElementRendererStrategyInterface; +use Sylius\CmsPlugin\Twig\Parser\ContentParserInterface; final class ContentElementRendererStrategySpec extends ObjectBehavior { diff --git a/spec/Renderer/PageLinkRendererSpec.php b/spec/Renderer/PageLinkRendererSpec.php index 0998dcdf8..2f904ab3e 100644 --- a/spec/Renderer/PageLinkRendererSpec.php +++ b/spec/Renderer/PageLinkRendererSpec.php @@ -8,12 +8,12 @@ declare(strict_types=1); -namespace spec\BitBag\SyliusCmsPlugin\Renderer; +namespace spec\Sylius\CmsPlugin\Renderer; -use BitBag\SyliusCmsPlugin\Entity\PageInterface; -use BitBag\SyliusCmsPlugin\Renderer\PageLinkRenderer; -use BitBag\SyliusCmsPlugin\Renderer\PageLinkRendererInterface; use PhpSpec\ObjectBehavior; +use Sylius\CmsPlugin\Entity\PageInterface; +use Sylius\CmsPlugin\Renderer\PageLinkRenderer; +use Sylius\CmsPlugin\Renderer\PageLinkRendererInterface; use Symfony\Component\Routing\Generator\UrlGeneratorInterface; use Twig\Environment; diff --git a/spec/Resolver/BlockResourceResolverSpec.php b/spec/Resolver/BlockResourceResolverSpec.php index b70282c39..cda332650 100755 --- a/spec/Resolver/BlockResourceResolverSpec.php +++ b/spec/Resolver/BlockResourceResolverSpec.php @@ -8,15 +8,15 @@ declare(strict_types=1); -namespace spec\BitBag\SyliusCmsPlugin\Resolver; +namespace spec\Sylius\CmsPlugin\Resolver; -use BitBag\SyliusCmsPlugin\Entity\BlockInterface; -use BitBag\SyliusCmsPlugin\Repository\BlockRepositoryInterface; -use BitBag\SyliusCmsPlugin\Resolver\BlockResourceResolver; -use BitBag\SyliusCmsPlugin\Resolver\BlockResourceResolverInterface; use Doctrine\Common\Collections\ArrayCollection; use PhpSpec\ObjectBehavior; use Psr\Log\LoggerInterface; +use Sylius\CmsPlugin\Entity\BlockInterface; +use Sylius\CmsPlugin\Repository\BlockRepositoryInterface; +use Sylius\CmsPlugin\Resolver\BlockResourceResolver; +use Sylius\CmsPlugin\Resolver\BlockResourceResolverInterface; use Sylius\Component\Channel\Context\ChannelContextInterface; use Sylius\Component\Core\Model\ChannelInterface; use Sylius\Component\Locale\Context\LocaleContextInterface; diff --git a/spec/Resolver/Importer/ImporterChannelsResolverSpec.php b/spec/Resolver/Importer/ImporterChannelsResolverSpec.php index 4607c7bd6..f3ecc0b88 100644 --- a/spec/Resolver/Importer/ImporterChannelsResolverSpec.php +++ b/spec/Resolver/Importer/ImporterChannelsResolverSpec.php @@ -8,12 +8,12 @@ declare(strict_types=1); -namespace spec\BitBag\SyliusCmsPlugin\Resolver\Importer; +namespace spec\Sylius\CmsPlugin\Resolver\Importer; -use BitBag\SyliusCmsPlugin\Assigner\ChannelsAssignerInterface; -use BitBag\SyliusCmsPlugin\Resolver\Importer\ImporterChannelsResolver; use PhpSpec\ObjectBehavior; use Prophecy\Argument; +use Sylius\CmsPlugin\Assigner\ChannelsAssignerInterface; +use Sylius\CmsPlugin\Resolver\Importer\ImporterChannelsResolver; use Sylius\Component\Channel\Model\ChannelsAwareInterface; final class ImporterChannelsResolverSpec extends ObjectBehavior diff --git a/spec/Resolver/Importer/ImporterCollectionsResolverSpec.php b/spec/Resolver/Importer/ImporterCollectionsResolverSpec.php index 19032d1da..430ead8c0 100644 --- a/spec/Resolver/Importer/ImporterCollectionsResolverSpec.php +++ b/spec/Resolver/Importer/ImporterCollectionsResolverSpec.php @@ -8,13 +8,13 @@ declare(strict_types=1); -namespace spec\BitBag\SyliusCmsPlugin\Resolver\Importer; +namespace spec\Sylius\CmsPlugin\Resolver\Importer; -use BitBag\SyliusCmsPlugin\Assigner\CollectionsAssignerInterface; -use BitBag\SyliusCmsPlugin\Entity\CollectibleInterface; -use BitBag\SyliusCmsPlugin\Resolver\Importer\ImporterCollectionsResolver; use PhpSpec\ObjectBehavior; use Prophecy\Argument; +use Sylius\CmsPlugin\Assigner\CollectionsAssignerInterface; +use Sylius\CmsPlugin\Entity\CollectibleInterface; +use Sylius\CmsPlugin\Resolver\Importer\ImporterCollectionsResolver; final class ImporterCollectionsResolverSpec extends ObjectBehavior { diff --git a/spec/Resolver/Importer/ImporterLocalesResolverSpec.php b/spec/Resolver/Importer/ImporterLocalesResolverSpec.php index 818e97ffb..50f18af4a 100644 --- a/spec/Resolver/Importer/ImporterLocalesResolverSpec.php +++ b/spec/Resolver/Importer/ImporterLocalesResolverSpec.php @@ -8,12 +8,12 @@ declare(strict_types=1); -namespace spec\BitBag\SyliusCmsPlugin\Resolver\Importer; +namespace spec\Sylius\CmsPlugin\Resolver\Importer; -use BitBag\SyliusCmsPlugin\Assigner\LocalesAssignerInterface; -use BitBag\SyliusCmsPlugin\Entity\LocaleAwareInterface; -use BitBag\SyliusCmsPlugin\Resolver\Importer\ImporterLocalesResolver; use PhpSpec\ObjectBehavior; +use Sylius\CmsPlugin\Assigner\LocalesAssignerInterface; +use Sylius\CmsPlugin\Entity\LocaleAwareInterface; +use Sylius\CmsPlugin\Resolver\Importer\ImporterLocalesResolver; final class ImporterLocalesResolverSpec extends ObjectBehavior { diff --git a/spec/Resolver/Importer/ImporterProductsInTaxonsResolverSpec.php b/spec/Resolver/Importer/ImporterProductsInTaxonsResolverSpec.php index 83f751f36..9557a0e4a 100644 --- a/spec/Resolver/Importer/ImporterProductsInTaxonsResolverSpec.php +++ b/spec/Resolver/Importer/ImporterProductsInTaxonsResolverSpec.php @@ -8,12 +8,12 @@ declare(strict_types=1); -namespace spec\BitBag\SyliusCmsPlugin\Resolver\Importer; +namespace spec\Sylius\CmsPlugin\Resolver\Importer; -use BitBag\SyliusCmsPlugin\Assigner\ProductsInTaxonsAssignerInterface; -use BitBag\SyliusCmsPlugin\Entity\ProductsInTaxonsAwareInterface; -use BitBag\SyliusCmsPlugin\Resolver\Importer\ImporterProductsInTaxonsResolver; use PhpSpec\ObjectBehavior; +use Sylius\CmsPlugin\Assigner\ProductsInTaxonsAssignerInterface; +use Sylius\CmsPlugin\Entity\ProductsInTaxonsAwareInterface; +use Sylius\CmsPlugin\Resolver\Importer\ImporterProductsInTaxonsResolver; final class ImporterProductsInTaxonsResolverSpec extends ObjectBehavior { diff --git a/spec/Resolver/Importer/ImporterProductsResolverSpec.php b/spec/Resolver/Importer/ImporterProductsResolverSpec.php index 414fa1753..d3988513c 100644 --- a/spec/Resolver/Importer/ImporterProductsResolverSpec.php +++ b/spec/Resolver/Importer/ImporterProductsResolverSpec.php @@ -8,13 +8,13 @@ declare(strict_types=1); -namespace spec\BitBag\SyliusCmsPlugin\Resolver\Importer; +namespace spec\Sylius\CmsPlugin\Resolver\Importer; -use BitBag\SyliusCmsPlugin\Assigner\ProductsAssignerInterface; -use BitBag\SyliusCmsPlugin\Entity\ProductsAwareInterface; -use BitBag\SyliusCmsPlugin\Resolver\Importer\ImporterProductsResolver; use PhpSpec\ObjectBehavior; use Prophecy\Argument; +use Sylius\CmsPlugin\Assigner\ProductsAssignerInterface; +use Sylius\CmsPlugin\Entity\ProductsAwareInterface; +use Sylius\CmsPlugin\Resolver\Importer\ImporterProductsResolver; final class ImporterProductsResolverSpec extends ObjectBehavior { diff --git a/spec/Resolver/Importer/ImporterTaxonsResolverSpec.php b/spec/Resolver/Importer/ImporterTaxonsResolverSpec.php index 03480e847..ec7260fca 100644 --- a/spec/Resolver/Importer/ImporterTaxonsResolverSpec.php +++ b/spec/Resolver/Importer/ImporterTaxonsResolverSpec.php @@ -8,12 +8,12 @@ declare(strict_types=1); -namespace spec\BitBag\SyliusCmsPlugin\Resolver\Importer; +namespace spec\Sylius\CmsPlugin\Resolver\Importer; -use BitBag\SyliusCmsPlugin\Assigner\TaxonsAssignerInterface; -use BitBag\SyliusCmsPlugin\Entity\TaxonAwareInterface; -use BitBag\SyliusCmsPlugin\Resolver\Importer\ImporterTaxonsResolver; use PhpSpec\ObjectBehavior; +use Sylius\CmsPlugin\Assigner\TaxonsAssignerInterface; +use Sylius\CmsPlugin\Entity\TaxonAwareInterface; +use Sylius\CmsPlugin\Resolver\Importer\ImporterTaxonsResolver; final class ImporterTaxonsResolverSpec extends ObjectBehavior { diff --git a/spec/Resolver/MediaProviderResolverSpec.php b/spec/Resolver/MediaProviderResolverSpec.php index 7546e0136..ebbf45977 100644 --- a/spec/Resolver/MediaProviderResolverSpec.php +++ b/spec/Resolver/MediaProviderResolverSpec.php @@ -8,13 +8,13 @@ declare(strict_types=1); -namespace spec\BitBag\SyliusCmsPlugin\Resolver; +namespace spec\Sylius\CmsPlugin\Resolver; -use BitBag\SyliusCmsPlugin\Entity\MediaInterface; -use BitBag\SyliusCmsPlugin\MediaProvider\ProviderInterface; -use BitBag\SyliusCmsPlugin\Resolver\MediaProviderResolver; -use BitBag\SyliusCmsPlugin\Resolver\MediaProviderResolverInterface; use PhpSpec\ObjectBehavior; +use Sylius\CmsPlugin\Entity\MediaInterface; +use Sylius\CmsPlugin\MediaProvider\ProviderInterface; +use Sylius\CmsPlugin\Resolver\MediaProviderResolver; +use Sylius\CmsPlugin\Resolver\MediaProviderResolverInterface; use Sylius\Component\Registry\ServiceRegistryInterface; use Webmozart\Assert\InvalidArgumentException; diff --git a/spec/Resolver/MediaResourceResolverSpec.php b/spec/Resolver/MediaResourceResolverSpec.php index 46871e08b..c01e28fdb 100644 --- a/spec/Resolver/MediaResourceResolverSpec.php +++ b/spec/Resolver/MediaResourceResolverSpec.php @@ -8,14 +8,14 @@ declare(strict_types=1); -namespace spec\BitBag\SyliusCmsPlugin\Resolver; +namespace spec\Sylius\CmsPlugin\Resolver; -use BitBag\SyliusCmsPlugin\Entity\MediaInterface; -use BitBag\SyliusCmsPlugin\Repository\MediaRepositoryInterface; -use BitBag\SyliusCmsPlugin\Resolver\MediaResourceResolver; -use BitBag\SyliusCmsPlugin\Resolver\MediaResourceResolverInterface; use PhpSpec\ObjectBehavior; use Psr\Log\LoggerInterface; +use Sylius\CmsPlugin\Entity\MediaInterface; +use Sylius\CmsPlugin\Repository\MediaRepositoryInterface; +use Sylius\CmsPlugin\Resolver\MediaResourceResolver; +use Sylius\CmsPlugin\Resolver\MediaResourceResolverInterface; use Sylius\Component\Channel\Context\ChannelContextInterface; use Sylius\Component\Core\Model\ChannelInterface; use Sylius\Component\Locale\Context\LocaleContextInterface; diff --git a/spec/Resolver/PageResourceResolverSpec.php b/spec/Resolver/PageResourceResolverSpec.php index 22342f17c..b9b4f2124 100755 --- a/spec/Resolver/PageResourceResolverSpec.php +++ b/spec/Resolver/PageResourceResolverSpec.php @@ -8,14 +8,14 @@ declare(strict_types=1); -namespace spec\BitBag\SyliusCmsPlugin\Resolver; +namespace spec\Sylius\CmsPlugin\Resolver; -use BitBag\SyliusCmsPlugin\Entity\PageInterface; -use BitBag\SyliusCmsPlugin\Repository\PageRepositoryInterface; -use BitBag\SyliusCmsPlugin\Resolver\PageResourceResolver; -use BitBag\SyliusCmsPlugin\Resolver\PageResourceResolverInterface; use PhpSpec\ObjectBehavior; use Psr\Log\LoggerInterface; +use Sylius\CmsPlugin\Entity\PageInterface; +use Sylius\CmsPlugin\Repository\PageRepositoryInterface; +use Sylius\CmsPlugin\Resolver\PageResourceResolver; +use Sylius\CmsPlugin\Resolver\PageResourceResolverInterface; final class PageResourceResolverSpec extends ObjectBehavior { diff --git a/spec/Resolver/ResourceResolverSpec.php b/spec/Resolver/ResourceResolverSpec.php index 419db3554..15eda7910 100644 --- a/spec/Resolver/ResourceResolverSpec.php +++ b/spec/Resolver/ResourceResolverSpec.php @@ -8,10 +8,10 @@ declare(strict_types=1); -namespace spec\BitBag\SyliusCmsPlugin\Resolver; +namespace spec\Sylius\CmsPlugin\Resolver; -use BitBag\SyliusCmsPlugin\Resolver\ResourceResolver; use PhpSpec\ObjectBehavior; +use Sylius\CmsPlugin\Resolver\ResourceResolver; use Sylius\Component\Resource\Factory\FactoryInterface; use Sylius\Component\Resource\Model\ResourceInterface; use Sylius\Component\Resource\Repository\RepositoryInterface; diff --git a/spec/Sorter/CollectionsSorterSpec.php b/spec/Sorter/CollectionsSorterSpec.php index 90db83a2b..1f2644365 100644 --- a/spec/Sorter/CollectionsSorterSpec.php +++ b/spec/Sorter/CollectionsSorterSpec.php @@ -10,14 +10,14 @@ declare(strict_types=1); -namespace spec\BitBag\SyliusCmsPlugin\Sorter; +namespace spec\Sylius\CmsPlugin\Sorter; -use BitBag\SyliusCmsPlugin\Entity\CollectionInterface; -use BitBag\SyliusCmsPlugin\Entity\PageInterface; -use BitBag\SyliusCmsPlugin\Sorter\CollectionsSorter; -use BitBag\SyliusCmsPlugin\Sorter\CollectionsSorterInterface; use Doctrine\Common\Collections\ArrayCollection; use PhpSpec\ObjectBehavior; +use Sylius\CmsPlugin\Entity\CollectionInterface; +use Sylius\CmsPlugin\Entity\PageInterface; +use Sylius\CmsPlugin\Sorter\CollectionsSorter; +use Sylius\CmsPlugin\Sorter\CollectionsSorterInterface; final class CollectionsSorterSpec extends ObjectBehavior { diff --git a/spec/Twig/Parser/ContentParserSpec.php b/spec/Twig/Parser/ContentParserSpec.php index bacd69ed2..16ce02170 100644 --- a/spec/Twig/Parser/ContentParserSpec.php +++ b/spec/Twig/Parser/ContentParserSpec.php @@ -2,12 +2,12 @@ declare(strict_types=1); -namespace spec\BitBag\SyliusCmsPlugin\Twig\Parser; +namespace spec\Sylius\CmsPlugin\Twig\Parser; -use BitBag\SyliusCmsPlugin\Twig\Parser\ContentParser; -use BitBag\SyliusCmsPlugin\Twig\Parser\ContentParserInterface; -use BitBag\SyliusCmsPlugin\Twig\Runtime\RenderBlockRuntimeInterface; use PhpSpec\ObjectBehavior; +use Sylius\CmsPlugin\Twig\Parser\ContentParser; +use Sylius\CmsPlugin\Twig\Parser\ContentParserInterface; +use Sylius\CmsPlugin\Twig\Runtime\RenderBlockRuntimeInterface; use Twig\Environment; use Twig\TwigFunction; diff --git a/spec/Twig/Runtime/RenderBlockRuntimeSpec.php b/spec/Twig/Runtime/RenderBlockRuntimeSpec.php index 6440085d2..fda8c23dc 100644 --- a/spec/Twig/Runtime/RenderBlockRuntimeSpec.php +++ b/spec/Twig/Runtime/RenderBlockRuntimeSpec.php @@ -10,14 +10,14 @@ declare(strict_types=1); -namespace spec\BitBag\SyliusCmsPlugin\Twig\Runtime; +namespace spec\Sylius\CmsPlugin\Twig\Runtime; -use BitBag\SyliusCmsPlugin\Entity\BlockInterface; -use BitBag\SyliusCmsPlugin\Renderer\ContentElementRendererStrategyInterface; -use BitBag\SyliusCmsPlugin\Resolver\BlockResourceResolverInterface; -use BitBag\SyliusCmsPlugin\Twig\Runtime\RenderBlockRuntime; -use BitBag\SyliusCmsPlugin\Twig\Runtime\RenderBlockRuntimeInterface; use PhpSpec\ObjectBehavior; +use Sylius\CmsPlugin\Entity\BlockInterface; +use Sylius\CmsPlugin\Renderer\ContentElementRendererStrategyInterface; +use Sylius\CmsPlugin\Resolver\BlockResourceResolverInterface; +use Sylius\CmsPlugin\Twig\Runtime\RenderBlockRuntime; +use Sylius\CmsPlugin\Twig\Runtime\RenderBlockRuntimeInterface; use Sylius\Component\Core\Model\ProductInterface; use Sylius\Component\Core\Model\TaxonInterface; use Twig\Environment; diff --git a/spec/Twig/Runtime/RenderContentElementsRuntimeSpec.php b/spec/Twig/Runtime/RenderContentElementsRuntimeSpec.php index 483bb47cb..48398e6ed 100644 --- a/spec/Twig/Runtime/RenderContentElementsRuntimeSpec.php +++ b/spec/Twig/Runtime/RenderContentElementsRuntimeSpec.php @@ -10,13 +10,13 @@ declare(strict_types=1); -namespace spec\BitBag\SyliusCmsPlugin\Twig\Runtime; +namespace spec\Sylius\CmsPlugin\Twig\Runtime; -use BitBag\SyliusCmsPlugin\Entity\BlockInterface; -use BitBag\SyliusCmsPlugin\Entity\PageInterface; -use BitBag\SyliusCmsPlugin\Renderer\ContentElementRendererStrategyInterface; -use BitBag\SyliusCmsPlugin\Twig\Runtime\RenderContentElementsRuntime; use PhpSpec\ObjectBehavior; +use Sylius\CmsPlugin\Entity\BlockInterface; +use Sylius\CmsPlugin\Entity\PageInterface; +use Sylius\CmsPlugin\Renderer\ContentElementRendererStrategyInterface; +use Sylius\CmsPlugin\Twig\Runtime\RenderContentElementsRuntime; final class RenderContentElementsRuntimeSpec extends ObjectBehavior { diff --git a/spec/Twig/Runtime/RenderContentRuntimeSpec.php b/spec/Twig/Runtime/RenderContentRuntimeSpec.php index 34e187b5a..aab23e955 100644 --- a/spec/Twig/Runtime/RenderContentRuntimeSpec.php +++ b/spec/Twig/Runtime/RenderContentRuntimeSpec.php @@ -10,13 +10,13 @@ declare(strict_types=1); -namespace spec\BitBag\SyliusCmsPlugin\Twig\Runtime; +namespace spec\Sylius\CmsPlugin\Twig\Runtime; -use BitBag\SyliusCmsPlugin\Entity\ContentableInterface; -use BitBag\SyliusCmsPlugin\Twig\Parser\ContentParserInterface; -use BitBag\SyliusCmsPlugin\Twig\Runtime\RenderContentRuntime; -use BitBag\SyliusCmsPlugin\Twig\Runtime\RenderContentRuntimeInterface; use PhpSpec\ObjectBehavior; +use Sylius\CmsPlugin\Entity\ContentableInterface; +use Sylius\CmsPlugin\Twig\Parser\ContentParserInterface; +use Sylius\CmsPlugin\Twig\Runtime\RenderContentRuntime; +use Sylius\CmsPlugin\Twig\Runtime\RenderContentRuntimeInterface; final class RenderContentRuntimeSpec extends ObjectBehavior { diff --git a/spec/Twig/Runtime/RenderMediaRuntimeSpec.php b/spec/Twig/Runtime/RenderMediaRuntimeSpec.php index 59f75c457..2a335acad 100644 --- a/spec/Twig/Runtime/RenderMediaRuntimeSpec.php +++ b/spec/Twig/Runtime/RenderMediaRuntimeSpec.php @@ -10,15 +10,15 @@ declare(strict_types=1); -namespace spec\BitBag\SyliusCmsPlugin\Twig\Runtime; - -use BitBag\SyliusCmsPlugin\Entity\MediaInterface; -use BitBag\SyliusCmsPlugin\MediaProvider\ProviderInterface; -use BitBag\SyliusCmsPlugin\Resolver\MediaProviderResolverInterface; -use BitBag\SyliusCmsPlugin\Resolver\MediaResourceResolverInterface; -use BitBag\SyliusCmsPlugin\Twig\Runtime\RenderMediaRuntime; -use BitBag\SyliusCmsPlugin\Twig\Runtime\RenderMediaRuntimeInterface; +namespace spec\Sylius\CmsPlugin\Twig\Runtime; + use PhpSpec\ObjectBehavior; +use Sylius\CmsPlugin\Entity\MediaInterface; +use Sylius\CmsPlugin\MediaProvider\ProviderInterface; +use Sylius\CmsPlugin\Resolver\MediaProviderResolverInterface; +use Sylius\CmsPlugin\Resolver\MediaResourceResolverInterface; +use Sylius\CmsPlugin\Twig\Runtime\RenderMediaRuntime; +use Sylius\CmsPlugin\Twig\Runtime\RenderMediaRuntimeInterface; final class RenderMediaRuntimeSpec extends ObjectBehavior { diff --git a/spec/Twig/Runtime/RenderPageLinkRuntimeSpec.php b/spec/Twig/Runtime/RenderPageLinkRuntimeSpec.php index 40b1b4100..9f9e2207f 100644 --- a/spec/Twig/Runtime/RenderPageLinkRuntimeSpec.php +++ b/spec/Twig/Runtime/RenderPageLinkRuntimeSpec.php @@ -10,13 +10,13 @@ declare(strict_types=1); -namespace spec\BitBag\SyliusCmsPlugin\Twig\Runtime; +namespace spec\Sylius\CmsPlugin\Twig\Runtime; -use BitBag\SyliusCmsPlugin\Entity\PageInterface; -use BitBag\SyliusCmsPlugin\Repository\PageRepositoryInterface; -use BitBag\SyliusCmsPlugin\Twig\Runtime\RenderPageLinkRuntime; -use BitBag\SyliusCmsPlugin\Twig\Runtime\RenderPageLinkRuntimeInterface; use PhpSpec\ObjectBehavior; +use Sylius\CmsPlugin\Entity\PageInterface; +use Sylius\CmsPlugin\Repository\PageRepositoryInterface; +use Sylius\CmsPlugin\Twig\Runtime\RenderPageLinkRuntime; +use Sylius\CmsPlugin\Twig\Runtime\RenderPageLinkRuntimeInterface; use Sylius\Component\Locale\Context\LocaleContextInterface; use Symfony\Component\HttpKernel\Exception\NotFoundHttpException; use Symfony\Component\Routing\RouterInterface; diff --git a/src/Assigner/ChannelsAssigner.php b/src/Assigner/ChannelsAssigner.php index f6ac7ca4d..9d4264854 100644 --- a/src/Assigner/ChannelsAssigner.php +++ b/src/Assigner/ChannelsAssigner.php @@ -8,7 +8,7 @@ declare(strict_types=1); -namespace BitBag\SyliusCmsPlugin\Assigner; +namespace Sylius\CmsPlugin\Assigner; use Sylius\Component\Channel\Model\ChannelsAwareInterface; use Sylius\Component\Channel\Repository\ChannelRepositoryInterface; diff --git a/src/Assigner/ChannelsAssignerInterface.php b/src/Assigner/ChannelsAssignerInterface.php index 4bc3c7731..2c9e75697 100644 --- a/src/Assigner/ChannelsAssignerInterface.php +++ b/src/Assigner/ChannelsAssignerInterface.php @@ -8,7 +8,7 @@ declare(strict_types=1); -namespace BitBag\SyliusCmsPlugin\Assigner; +namespace Sylius\CmsPlugin\Assigner; use Sylius\Component\Channel\Model\ChannelsAwareInterface; diff --git a/src/Assigner/CollectionsAssigner.php b/src/Assigner/CollectionsAssigner.php index 1c34e22c8..1bca70b23 100644 --- a/src/Assigner/CollectionsAssigner.php +++ b/src/Assigner/CollectionsAssigner.php @@ -8,11 +8,11 @@ declare(strict_types=1); -namespace BitBag\SyliusCmsPlugin\Assigner; +namespace Sylius\CmsPlugin\Assigner; -use BitBag\SyliusCmsPlugin\Entity\CollectibleInterface; -use BitBag\SyliusCmsPlugin\Entity\CollectionInterface; -use BitBag\SyliusCmsPlugin\Repository\CollectionRepositoryInterface; +use Sylius\CmsPlugin\Entity\CollectibleInterface; +use Sylius\CmsPlugin\Entity\CollectionInterface; +use Sylius\CmsPlugin\Repository\CollectionRepositoryInterface; use Webmozart\Assert\Assert; final class CollectionsAssigner implements CollectionsAssignerInterface diff --git a/src/Assigner/CollectionsAssignerInterface.php b/src/Assigner/CollectionsAssignerInterface.php index 7ad276981..c6703fe7f 100644 --- a/src/Assigner/CollectionsAssignerInterface.php +++ b/src/Assigner/CollectionsAssignerInterface.php @@ -8,9 +8,9 @@ declare(strict_types=1); -namespace BitBag\SyliusCmsPlugin\Assigner; +namespace Sylius\CmsPlugin\Assigner; -use BitBag\SyliusCmsPlugin\Entity\CollectibleInterface; +use Sylius\CmsPlugin\Entity\CollectibleInterface; interface CollectionsAssignerInterface { diff --git a/src/Assigner/LocalesAssigner.php b/src/Assigner/LocalesAssigner.php index 757915486..a9563088c 100644 --- a/src/Assigner/LocalesAssigner.php +++ b/src/Assigner/LocalesAssigner.php @@ -8,9 +8,9 @@ declare(strict_types=1); -namespace BitBag\SyliusCmsPlugin\Assigner; +namespace Sylius\CmsPlugin\Assigner; -use BitBag\SyliusCmsPlugin\Entity\LocaleAwareInterface; +use Sylius\CmsPlugin\Entity\LocaleAwareInterface; use Sylius\Component\Locale\Model\LocaleInterface; use Sylius\Component\Resource\Repository\RepositoryInterface; use Webmozart\Assert\Assert; diff --git a/src/Assigner/LocalesAssignerInterface.php b/src/Assigner/LocalesAssignerInterface.php index a189e7776..8bdb8ce07 100644 --- a/src/Assigner/LocalesAssignerInterface.php +++ b/src/Assigner/LocalesAssignerInterface.php @@ -8,9 +8,9 @@ declare(strict_types=1); -namespace BitBag\SyliusCmsPlugin\Assigner; +namespace Sylius\CmsPlugin\Assigner; -use BitBag\SyliusCmsPlugin\Entity\LocaleAwareInterface; +use Sylius\CmsPlugin\Entity\LocaleAwareInterface; interface LocalesAssignerInterface { diff --git a/src/Assigner/ProductsAssigner.php b/src/Assigner/ProductsAssigner.php index c28157264..395642592 100644 --- a/src/Assigner/ProductsAssigner.php +++ b/src/Assigner/ProductsAssigner.php @@ -8,9 +8,9 @@ declare(strict_types=1); -namespace BitBag\SyliusCmsPlugin\Assigner; +namespace Sylius\CmsPlugin\Assigner; -use BitBag\SyliusCmsPlugin\Entity\ProductsAwareInterface; +use Sylius\CmsPlugin\Entity\ProductsAwareInterface; use Sylius\Component\Core\Model\ProductInterface; use Sylius\Component\Core\Repository\ProductRepositoryInterface; use Webmozart\Assert\Assert; diff --git a/src/Assigner/ProductsAssignerInterface.php b/src/Assigner/ProductsAssignerInterface.php index b3fb31b89..6df744853 100644 --- a/src/Assigner/ProductsAssignerInterface.php +++ b/src/Assigner/ProductsAssignerInterface.php @@ -8,9 +8,9 @@ declare(strict_types=1); -namespace BitBag\SyliusCmsPlugin\Assigner; +namespace Sylius\CmsPlugin\Assigner; -use BitBag\SyliusCmsPlugin\Entity\ProductsAwareInterface; +use Sylius\CmsPlugin\Entity\ProductsAwareInterface; interface ProductsAssignerInterface { diff --git a/src/Assigner/ProductsInTaxonsAssigner.php b/src/Assigner/ProductsInTaxonsAssigner.php index 4a6e7cfc7..6bfceae4f 100644 --- a/src/Assigner/ProductsInTaxonsAssigner.php +++ b/src/Assigner/ProductsInTaxonsAssigner.php @@ -8,9 +8,9 @@ declare(strict_types=1); -namespace BitBag\SyliusCmsPlugin\Assigner; +namespace Sylius\CmsPlugin\Assigner; -use BitBag\SyliusCmsPlugin\Entity\ProductsInTaxonsAwareInterface; +use Sylius\CmsPlugin\Entity\ProductsInTaxonsAwareInterface; use Sylius\Component\Core\Model\TaxonInterface; use Sylius\Component\Taxonomy\Repository\TaxonRepositoryInterface; use Webmozart\Assert\Assert; diff --git a/src/Assigner/ProductsInTaxonsAssignerInterface.php b/src/Assigner/ProductsInTaxonsAssignerInterface.php index 569fc3833..b84627977 100644 --- a/src/Assigner/ProductsInTaxonsAssignerInterface.php +++ b/src/Assigner/ProductsInTaxonsAssignerInterface.php @@ -8,9 +8,9 @@ declare(strict_types=1); -namespace BitBag\SyliusCmsPlugin\Assigner; +namespace Sylius\CmsPlugin\Assigner; -use BitBag\SyliusCmsPlugin\Entity\ProductsInTaxonsAwareInterface; +use Sylius\CmsPlugin\Entity\ProductsInTaxonsAwareInterface; interface ProductsInTaxonsAssignerInterface { diff --git a/src/Assigner/TaxonsAssigner.php b/src/Assigner/TaxonsAssigner.php index 20c85ea35..406ad8bad 100644 --- a/src/Assigner/TaxonsAssigner.php +++ b/src/Assigner/TaxonsAssigner.php @@ -8,9 +8,9 @@ declare(strict_types=1); -namespace BitBag\SyliusCmsPlugin\Assigner; +namespace Sylius\CmsPlugin\Assigner; -use BitBag\SyliusCmsPlugin\Entity\TaxonAwareInterface; +use Sylius\CmsPlugin\Entity\TaxonAwareInterface; use Sylius\Component\Core\Model\TaxonInterface; use Sylius\Component\Taxonomy\Repository\TaxonRepositoryInterface; use Webmozart\Assert\Assert; diff --git a/src/Assigner/TaxonsAssignerInterface.php b/src/Assigner/TaxonsAssignerInterface.php index 3a903587a..e9504c1b7 100644 --- a/src/Assigner/TaxonsAssignerInterface.php +++ b/src/Assigner/TaxonsAssignerInterface.php @@ -8,9 +8,9 @@ declare(strict_types=1); -namespace BitBag\SyliusCmsPlugin\Assigner; +namespace Sylius\CmsPlugin\Assigner; -use BitBag\SyliusCmsPlugin\Entity\TaxonAwareInterface; +use Sylius\CmsPlugin\Entity\TaxonAwareInterface; interface TaxonsAssignerInterface { diff --git a/src/BitBagSyliusCmsPlugin.php b/src/BitBagSyliusCmsPlugin.php index 6559d5302..f2a023f1b 100755 --- a/src/BitBagSyliusCmsPlugin.php +++ b/src/BitBagSyliusCmsPlugin.php @@ -8,11 +8,11 @@ declare(strict_types=1); -namespace BitBag\SyliusCmsPlugin; +namespace Sylius\CmsPlugin; -use BitBag\SyliusCmsPlugin\DependencyInjection\Compiler\ImporterCompilerPass; -use BitBag\SyliusCmsPlugin\DependencyInjection\Compiler\MediaProviderPass; use Sylius\Bundle\CoreBundle\Application\SyliusPluginTrait; +use Sylius\CmsPlugin\DependencyInjection\Compiler\ImporterCompilerPass; +use Sylius\CmsPlugin\DependencyInjection\Compiler\MediaProviderPass; use Symfony\Component\DependencyInjection\ContainerBuilder; use Symfony\Component\HttpKernel\Bundle\Bundle; diff --git a/src/Command/ImportFromCsvCommand.php b/src/Command/ImportFromCsvCommand.php index b4008fa28..61f4d37dd 100644 --- a/src/Command/ImportFromCsvCommand.php +++ b/src/Command/ImportFromCsvCommand.php @@ -8,9 +8,9 @@ declare(strict_types=1); -namespace BitBag\SyliusCmsPlugin\Command; +namespace Sylius\CmsPlugin\Command; -use BitBag\SyliusCmsPlugin\Processor\ImportProcessorInterface; +use Sylius\CmsPlugin\Processor\ImportProcessorInterface; use Symfony\Component\Console\Command\Command; use Symfony\Component\Console\Input\InputArgument; use Symfony\Component\Console\Input\InputInterface; diff --git a/src/Controller/Action/Admin/ImportDataAction.php b/src/Controller/Action/Admin/ImportDataAction.php index e9164a177..ff28f1645 100644 --- a/src/Controller/Action/Admin/ImportDataAction.php +++ b/src/Controller/Action/Admin/ImportDataAction.php @@ -8,12 +8,12 @@ declare(strict_types=1); -namespace BitBag\SyliusCmsPlugin\Controller\Action\Admin; +namespace Sylius\CmsPlugin\Controller\Action\Admin; -use BitBag\SyliusCmsPlugin\Controller\Helper\FormErrorsFlashHelperInterface; -use BitBag\SyliusCmsPlugin\Exception\ImportFailedException; -use BitBag\SyliusCmsPlugin\Form\Type\ImportType; -use BitBag\SyliusCmsPlugin\Processor\ImportProcessorInterface; +use Sylius\CmsPlugin\Controller\Helper\FormErrorsFlashHelperInterface; +use Sylius\CmsPlugin\Exception\ImportFailedException; +use Sylius\CmsPlugin\Form\Type\ImportType; +use Sylius\CmsPlugin\Processor\ImportProcessorInterface; use Symfony\Component\Form\FormFactoryInterface; use Symfony\Component\HttpFoundation\File\UploadedFile; use Symfony\Component\HttpFoundation\RedirectResponse; diff --git a/src/Controller/Action/Admin/ProductSearchAction.php b/src/Controller/Action/Admin/ProductSearchAction.php index feb882ef6..f1c14be5e 100644 --- a/src/Controller/Action/Admin/ProductSearchAction.php +++ b/src/Controller/Action/Admin/ProductSearchAction.php @@ -8,7 +8,7 @@ declare(strict_types=1); -namespace BitBag\SyliusCmsPlugin\Controller\Action\Admin; +namespace Sylius\CmsPlugin\Controller\Action\Admin; use FOS\RestBundle\View\View; use FOS\RestBundle\View\ViewHandler; diff --git a/src/Controller/Action/Admin/RetrievePackageInfoAction.php b/src/Controller/Action/Admin/RetrievePackageInfoAction.php index 918370d2d..35cd1b1b4 100644 --- a/src/Controller/Action/Admin/RetrievePackageInfoAction.php +++ b/src/Controller/Action/Admin/RetrievePackageInfoAction.php @@ -2,7 +2,7 @@ declare(strict_types=1); -namespace BitBag\SyliusCmsPlugin\Controller\Action\Admin; +namespace Sylius\CmsPlugin\Controller\Action\Admin; use Symfony\Component\HttpFoundation\Request; use Symfony\Component\HttpFoundation\Response; diff --git a/src/Controller/Action/Admin/TaxonSearchAction.php b/src/Controller/Action/Admin/TaxonSearchAction.php index 8e8883700..10f208a62 100644 --- a/src/Controller/Action/Admin/TaxonSearchAction.php +++ b/src/Controller/Action/Admin/TaxonSearchAction.php @@ -8,7 +8,7 @@ declare(strict_types=1); -namespace BitBag\SyliusCmsPlugin\Controller\Action\Admin; +namespace Sylius\CmsPlugin\Controller\Action\Admin; use FOS\RestBundle\View\View; use FOS\RestBundle\View\ViewHandler; diff --git a/src/Controller/Action/Admin/UploadEditorImageAction.php b/src/Controller/Action/Admin/UploadEditorImageAction.php index 462fe130a..7a70d9548 100644 --- a/src/Controller/Action/Admin/UploadEditorImageAction.php +++ b/src/Controller/Action/Admin/UploadEditorImageAction.php @@ -8,11 +8,11 @@ declare(strict_types=1); -namespace BitBag\SyliusCmsPlugin\Controller\Action\Admin; +namespace Sylius\CmsPlugin\Controller\Action\Admin; -use BitBag\SyliusCmsPlugin\Entity\MediaInterface; -use BitBag\SyliusCmsPlugin\Repository\MediaRepositoryInterface; -use BitBag\SyliusCmsPlugin\Resolver\MediaProviderResolverInterface; +use Sylius\CmsPlugin\Entity\MediaInterface; +use Sylius\CmsPlugin\Repository\MediaRepositoryInterface; +use Sylius\CmsPlugin\Resolver\MediaProviderResolverInterface; use Sylius\Component\Core\Formatter\StringInflector; use Sylius\Component\Resource\Factory\FactoryInterface; use Symfony\Component\HttpFoundation\File\UploadedFile; diff --git a/src/Controller/BlockController.php b/src/Controller/BlockController.php index a7c1937b4..ef4906479 100755 --- a/src/Controller/BlockController.php +++ b/src/Controller/BlockController.php @@ -8,12 +8,12 @@ declare(strict_types=1); -namespace BitBag\SyliusCmsPlugin\Controller; +namespace Sylius\CmsPlugin\Controller; -use BitBag\SyliusCmsPlugin\Entity\BlockInterface; -use BitBag\SyliusCmsPlugin\Resolver\BlockResourceResolverInterface; use FOS\RestBundle\View\View; use Sylius\Bundle\ResourceBundle\Controller\ResourceController; +use Sylius\CmsPlugin\Entity\BlockInterface; +use Sylius\CmsPlugin\Resolver\BlockResourceResolverInterface; use Sylius\Component\Resource\ResourceActions; use Symfony\Component\HttpFoundation\Request; use Symfony\Component\HttpFoundation\Response; diff --git a/src/Controller/Helper/FormErrorsFlashHelper.php b/src/Controller/Helper/FormErrorsFlashHelper.php index ab03bedc8..ba03427ac 100644 --- a/src/Controller/Helper/FormErrorsFlashHelper.php +++ b/src/Controller/Helper/FormErrorsFlashHelper.php @@ -8,7 +8,7 @@ declare(strict_types=1); -namespace BitBag\SyliusCmsPlugin\Controller\Helper; +namespace Sylius\CmsPlugin\Controller\Helper; use Symfony\Component\Form\FormError; use Symfony\Component\Form\FormInterface; diff --git a/src/Controller/Helper/FormErrorsFlashHelperInterface.php b/src/Controller/Helper/FormErrorsFlashHelperInterface.php index 99aa53283..be4a796b4 100644 --- a/src/Controller/Helper/FormErrorsFlashHelperInterface.php +++ b/src/Controller/Helper/FormErrorsFlashHelperInterface.php @@ -8,7 +8,7 @@ declare(strict_types=1); -namespace BitBag\SyliusCmsPlugin\Controller\Helper; +namespace Sylius\CmsPlugin\Controller\Helper; use Symfony\Component\Form\FormInterface; diff --git a/src/Controller/MediaController.php b/src/Controller/MediaController.php index ae460f48b..9a2acac4b 100755 --- a/src/Controller/MediaController.php +++ b/src/Controller/MediaController.php @@ -8,13 +8,13 @@ declare(strict_types=1); -namespace BitBag\SyliusCmsPlugin\Controller; +namespace Sylius\CmsPlugin\Controller; -use BitBag\SyliusCmsPlugin\Entity\MediaInterface; -use BitBag\SyliusCmsPlugin\Resolver\MediaProviderResolverInterface; -use BitBag\SyliusCmsPlugin\Resolver\MediaResourceResolverInterface; use Sylius\Bundle\ResourceBundle\Controller\RequestConfiguration; use Sylius\Bundle\ResourceBundle\Controller\ResourceController; +use Sylius\CmsPlugin\Entity\MediaInterface; +use Sylius\CmsPlugin\Resolver\MediaProviderResolverInterface; +use Sylius\CmsPlugin\Resolver\MediaResourceResolverInterface; use Sylius\Component\Resource\ResourceActions; use Symfony\Component\HttpFoundation\BinaryFileResponse; use Symfony\Component\HttpFoundation\File\File; diff --git a/src/Controller/MediaPageControllersCommonDependencyInjectionsTrait.php b/src/Controller/MediaPageControllersCommonDependencyInjectionsTrait.php index c72154c3c..5592b00df 100644 --- a/src/Controller/MediaPageControllersCommonDependencyInjectionsTrait.php +++ b/src/Controller/MediaPageControllersCommonDependencyInjectionsTrait.php @@ -2,11 +2,11 @@ declare(strict_types=1); -namespace BitBag\SyliusCmsPlugin\Controller; +namespace Sylius\CmsPlugin\Controller; -use BitBag\SyliusCmsPlugin\Controller\Helper\FormErrorsFlashHelperInterface; use Liip\ImagineBundle\Imagine\Cache\CacheManager; use Liip\ImagineBundle\Imagine\Data\DataManager; +use Sylius\CmsPlugin\Controller\Helper\FormErrorsFlashHelperInterface; trait MediaPageControllersCommonDependencyInjectionsTrait { diff --git a/src/Controller/PageController.php b/src/Controller/PageController.php index 6aea5fe95..98577132a 100755 --- a/src/Controller/PageController.php +++ b/src/Controller/PageController.php @@ -8,12 +8,12 @@ declare(strict_types=1); -namespace BitBag\SyliusCmsPlugin\Controller; +namespace Sylius\CmsPlugin\Controller; -use BitBag\SyliusCmsPlugin\Entity\PageInterface; -use BitBag\SyliusCmsPlugin\Resolver\PageResourceResolverInterface; use FOS\RestBundle\View\View; use Sylius\Bundle\ResourceBundle\Controller\ResourceController; +use Sylius\CmsPlugin\Entity\PageInterface; +use Sylius\CmsPlugin\Resolver\PageResourceResolverInterface; use Sylius\Component\Resource\ResourceActions; use Symfony\Component\HttpFoundation\Request; use Symfony\Component\HttpFoundation\Response; diff --git a/src/Controller/PageSlugController.php b/src/Controller/PageSlugController.php index 2714b16aa..01f774d22 100755 --- a/src/Controller/PageSlugController.php +++ b/src/Controller/PageSlugController.php @@ -8,7 +8,7 @@ declare(strict_types=1); -namespace BitBag\SyliusCmsPlugin\Controller; +namespace Sylius\CmsPlugin\Controller; use Sylius\Component\Product\Generator\SlugGeneratorInterface; use Symfony\Component\HttpFoundation\JsonResponse; diff --git a/src/Controller/ResourceDataProcessingTrait.php b/src/Controller/ResourceDataProcessingTrait.php index a59c209d6..c3e72fdc9 100644 --- a/src/Controller/ResourceDataProcessingTrait.php +++ b/src/Controller/ResourceDataProcessingTrait.php @@ -2,10 +2,10 @@ declare(strict_types=1); -namespace BitBag\SyliusCmsPlugin\Controller; +namespace Sylius\CmsPlugin\Controller; -use BitBag\SyliusCmsPlugin\Entity\MediaInterface; use Sylius\Bundle\ResourceBundle\Controller\RequestConfiguration; +use Sylius\CmsPlugin\Entity\MediaInterface; use Sylius\Component\Resource\Model\ResourceInterface; use Symfony\Component\Form\FormInterface; use Symfony\Component\HttpFoundation\File\File; diff --git a/src/Controller/TemplateController.php b/src/Controller/TemplateController.php index 1c525ff57..acfffe726 100644 --- a/src/Controller/TemplateController.php +++ b/src/Controller/TemplateController.php @@ -8,10 +8,10 @@ declare(strict_types=1); -namespace BitBag\SyliusCmsPlugin\Controller; +namespace Sylius\CmsPlugin\Controller; -use BitBag\SyliusCmsPlugin\Entity\TemplateInterface; use Sylius\Bundle\ResourceBundle\Controller\ResourceController; +use Sylius\CmsPlugin\Entity\TemplateInterface; use Symfony\Component\HttpFoundation\JsonResponse; final class TemplateController extends ResourceController diff --git a/src/DependencyInjection/BitBagSyliusCmsExtension.php b/src/DependencyInjection/BitBagSyliusCmsExtension.php index f22888356..7b68c1f56 100755 --- a/src/DependencyInjection/BitBagSyliusCmsExtension.php +++ b/src/DependencyInjection/BitBagSyliusCmsExtension.php @@ -8,7 +8,7 @@ declare(strict_types=1); -namespace BitBag\SyliusCmsPlugin\DependencyInjection; +namespace Sylius\CmsPlugin\DependencyInjection; use Sylius\Bundle\CoreBundle\DependencyInjection\PrependDoctrineMigrationsTrait; use Symfony\Component\DependencyInjection\ContainerBuilder; @@ -30,7 +30,7 @@ public function prepend(ContainerBuilder $container): void protected function getMigrationsNamespace(): string { - return 'BitBag\SyliusCmsPlugin\Migrations'; + return 'Sylius\CmsPlugin\Migrations'; } protected function getMigrationsDirectory(): string diff --git a/src/DependencyInjection/Compiler/ImporterCompilerPass.php b/src/DependencyInjection/Compiler/ImporterCompilerPass.php index 7379c5ded..398cc4067 100644 --- a/src/DependencyInjection/Compiler/ImporterCompilerPass.php +++ b/src/DependencyInjection/Compiler/ImporterCompilerPass.php @@ -8,9 +8,9 @@ declare(strict_types=1); -namespace BitBag\SyliusCmsPlugin\DependencyInjection\Compiler; +namespace Sylius\CmsPlugin\DependencyInjection\Compiler; -use BitBag\SyliusCmsPlugin\Importer\ImporterInterface; +use Sylius\CmsPlugin\Importer\ImporterInterface; use Symfony\Component\DependencyInjection\Compiler\CompilerPassInterface; use Symfony\Component\DependencyInjection\ContainerBuilder; use Symfony\Component\DependencyInjection\Reference; diff --git a/src/DependencyInjection/Compiler/MediaProviderPass.php b/src/DependencyInjection/Compiler/MediaProviderPass.php index 846ca1542..a59e3ef74 100644 --- a/src/DependencyInjection/Compiler/MediaProviderPass.php +++ b/src/DependencyInjection/Compiler/MediaProviderPass.php @@ -8,7 +8,7 @@ declare(strict_types=1); -namespace BitBag\SyliusCmsPlugin\DependencyInjection\Compiler; +namespace Sylius\CmsPlugin\DependencyInjection\Compiler; use Symfony\Component\DependencyInjection\Compiler\CompilerPassInterface; use Symfony\Component\DependencyInjection\ContainerBuilder; diff --git a/src/Entity/Block.php b/src/Entity/Block.php index 0b2c67dd0..dfcf6d15b 100755 --- a/src/Entity/Block.php +++ b/src/Entity/Block.php @@ -8,15 +8,15 @@ declare(strict_types=1); -namespace BitBag\SyliusCmsPlugin\Entity; +namespace Sylius\CmsPlugin\Entity; -use BitBag\SyliusCmsPlugin\Entity\Trait\ChannelsAwareTrait; -use BitBag\SyliusCmsPlugin\Entity\Trait\CollectibleTrait; -use BitBag\SyliusCmsPlugin\Entity\Trait\ContentElementsAwareTrait; -use BitBag\SyliusCmsPlugin\Entity\Trait\LocaleAwareTrait; -use BitBag\SyliusCmsPlugin\Entity\Trait\ProductsAwareTrait; -use BitBag\SyliusCmsPlugin\Entity\Trait\ProductsInTaxonsAwareTrait; -use BitBag\SyliusCmsPlugin\Entity\Trait\TaxonAwareTrait; +use Sylius\CmsPlugin\Entity\Trait\ChannelsAwareTrait; +use Sylius\CmsPlugin\Entity\Trait\CollectibleTrait; +use Sylius\CmsPlugin\Entity\Trait\ContentElementsAwareTrait; +use Sylius\CmsPlugin\Entity\Trait\LocaleAwareTrait; +use Sylius\CmsPlugin\Entity\Trait\ProductsAwareTrait; +use Sylius\CmsPlugin\Entity\Trait\ProductsInTaxonsAwareTrait; +use Sylius\CmsPlugin\Entity\Trait\TaxonAwareTrait; use Sylius\Component\Resource\Model\ToggleableTrait; class Block implements BlockInterface diff --git a/src/Entity/BlockInterface.php b/src/Entity/BlockInterface.php index d0e9d8bee..0e7c33902 100755 --- a/src/Entity/BlockInterface.php +++ b/src/Entity/BlockInterface.php @@ -8,7 +8,7 @@ declare(strict_types=1); -namespace BitBag\SyliusCmsPlugin\Entity; +namespace Sylius\CmsPlugin\Entity; use Sylius\Component\Channel\Model\ChannelsAwareInterface; use Sylius\Component\Resource\Model\ResourceInterface; diff --git a/src/Entity/BlockProductAwareInterface.php b/src/Entity/BlockProductAwareInterface.php index fbbb94e9d..b78d7ce53 100644 --- a/src/Entity/BlockProductAwareInterface.php +++ b/src/Entity/BlockProductAwareInterface.php @@ -8,7 +8,7 @@ declare(strict_types=1); -namespace BitBag\SyliusCmsPlugin\Entity; +namespace Sylius\CmsPlugin\Entity; use Sylius\Component\Core\Model\ProductInterface; diff --git a/src/Entity/BlockTaxonAwareInterface.php b/src/Entity/BlockTaxonAwareInterface.php index 1c4b8a57c..34d1338c1 100644 --- a/src/Entity/BlockTaxonAwareInterface.php +++ b/src/Entity/BlockTaxonAwareInterface.php @@ -8,7 +8,7 @@ declare(strict_types=1); -namespace BitBag\SyliusCmsPlugin\Entity; +namespace Sylius\CmsPlugin\Entity; use Sylius\Component\Core\Model\TaxonInterface; diff --git a/src/Entity/BlockTranslationInterface.php b/src/Entity/BlockTranslationInterface.php index d09dec2a8..46eb9c01b 100755 --- a/src/Entity/BlockTranslationInterface.php +++ b/src/Entity/BlockTranslationInterface.php @@ -8,7 +8,7 @@ declare(strict_types=1); -namespace BitBag\SyliusCmsPlugin\Entity; +namespace Sylius\CmsPlugin\Entity; use Sylius\Component\Resource\Model\ResourceInterface; use Sylius\Component\Resource\Model\TranslationInterface; diff --git a/src/Entity/BlocksCollectionInterface.php b/src/Entity/BlocksCollectionInterface.php index f6fcd828d..21a77a432 100644 --- a/src/Entity/BlocksCollectionInterface.php +++ b/src/Entity/BlocksCollectionInterface.php @@ -8,7 +8,7 @@ declare(strict_types=1); -namespace BitBag\SyliusCmsPlugin\Entity; +namespace Sylius\CmsPlugin\Entity; use Doctrine\Common\Collections\Collection; diff --git a/src/Entity/CollectibleInterface.php b/src/Entity/CollectibleInterface.php index 106ae7f0d..70518065c 100755 --- a/src/Entity/CollectibleInterface.php +++ b/src/Entity/CollectibleInterface.php @@ -8,7 +8,7 @@ declare(strict_types=1); -namespace BitBag\SyliusCmsPlugin\Entity; +namespace Sylius\CmsPlugin\Entity; use Doctrine\Common\Collections\Collection; diff --git a/src/Entity/Collection.php b/src/Entity/Collection.php index 880fae76e..f63f38fbd 100755 --- a/src/Entity/Collection.php +++ b/src/Entity/Collection.php @@ -8,11 +8,11 @@ declare(strict_types=1); -namespace BitBag\SyliusCmsPlugin\Entity; +namespace Sylius\CmsPlugin\Entity; -use BitBag\SyliusCmsPlugin\Entity\Trait\BlocksCollectionTrait; -use BitBag\SyliusCmsPlugin\Entity\Trait\MediaCollectionTrait; -use BitBag\SyliusCmsPlugin\Entity\Trait\PagesCollectionTrait; +use Sylius\CmsPlugin\Entity\Trait\BlocksCollectionTrait; +use Sylius\CmsPlugin\Entity\Trait\MediaCollectionTrait; +use Sylius\CmsPlugin\Entity\Trait\PagesCollectionTrait; class Collection implements CollectionInterface { diff --git a/src/Entity/CollectionInterface.php b/src/Entity/CollectionInterface.php index ab21d5d60..407e0c0da 100755 --- a/src/Entity/CollectionInterface.php +++ b/src/Entity/CollectionInterface.php @@ -8,7 +8,7 @@ declare(strict_types=1); -namespace BitBag\SyliusCmsPlugin\Entity; +namespace Sylius\CmsPlugin\Entity; use Sylius\Component\Resource\Model\ResourceInterface; diff --git a/src/Entity/ContentConfiguration.php b/src/Entity/ContentConfiguration.php index 700cb1a8f..c2236eec1 100644 --- a/src/Entity/ContentConfiguration.php +++ b/src/Entity/ContentConfiguration.php @@ -8,7 +8,7 @@ declare(strict_types=1); -namespace BitBag\SyliusCmsPlugin\Entity; +namespace Sylius\CmsPlugin\Entity; class ContentConfiguration implements ContentConfigurationInterface { diff --git a/src/Entity/ContentConfigurationInterface.php b/src/Entity/ContentConfigurationInterface.php index 99e2e1185..2ebccb38f 100644 --- a/src/Entity/ContentConfigurationInterface.php +++ b/src/Entity/ContentConfigurationInterface.php @@ -8,7 +8,7 @@ declare(strict_types=1); -namespace BitBag\SyliusCmsPlugin\Entity; +namespace Sylius\CmsPlugin\Entity; use Sylius\Component\Resource\Model\ResourceInterface; diff --git a/src/Entity/ContentElementsAwareInterface.php b/src/Entity/ContentElementsAwareInterface.php index 2938860b8..905ae31c4 100644 --- a/src/Entity/ContentElementsAwareInterface.php +++ b/src/Entity/ContentElementsAwareInterface.php @@ -8,7 +8,7 @@ declare(strict_types=1); -namespace BitBag\SyliusCmsPlugin\Entity; +namespace Sylius\CmsPlugin\Entity; use Doctrine\Common\Collections\Collection; diff --git a/src/Entity/ContentableInterface.php b/src/Entity/ContentableInterface.php index 88d42b7a9..675acd7ab 100644 --- a/src/Entity/ContentableInterface.php +++ b/src/Entity/ContentableInterface.php @@ -8,7 +8,7 @@ declare(strict_types=1); -namespace BitBag\SyliusCmsPlugin\Entity; +namespace Sylius\CmsPlugin\Entity; interface ContentableInterface { diff --git a/src/Entity/LocaleAwareInterface.php b/src/Entity/LocaleAwareInterface.php index 0cd3117e2..46c1c07f7 100644 --- a/src/Entity/LocaleAwareInterface.php +++ b/src/Entity/LocaleAwareInterface.php @@ -8,7 +8,7 @@ declare(strict_types=1); -namespace BitBag\SyliusCmsPlugin\Entity; +namespace Sylius\CmsPlugin\Entity; use Doctrine\Common\Collections\Collection; use Sylius\Component\Locale\Model\LocaleInterface; diff --git a/src/Entity/Media.php b/src/Entity/Media.php index 8b186dd5f..1e80fccfb 100644 --- a/src/Entity/Media.php +++ b/src/Entity/Media.php @@ -8,12 +8,12 @@ declare(strict_types=1); -namespace BitBag\SyliusCmsPlugin\Entity; +namespace Sylius\CmsPlugin\Entity; -use BitBag\SyliusCmsPlugin\Entity\Trait\ChannelsAwareTrait; -use BitBag\SyliusCmsPlugin\Entity\Trait\CollectibleTrait; -use BitBag\SyliusCmsPlugin\Entity\Trait\PagesCollectionTrait; -use BitBag\SyliusCmsPlugin\MediaProvider\FilenameHelper; +use Sylius\CmsPlugin\Entity\Trait\ChannelsAwareTrait; +use Sylius\CmsPlugin\Entity\Trait\CollectibleTrait; +use Sylius\CmsPlugin\Entity\Trait\PagesCollectionTrait; +use Sylius\CmsPlugin\MediaProvider\FilenameHelper; use Sylius\Component\Resource\Model\ToggleableTrait; use Sylius\Component\Resource\Model\TranslatableTrait; use Sylius\Component\Resource\Model\TranslationInterface; diff --git a/src/Entity/MediaCollectionInterface.php b/src/Entity/MediaCollectionInterface.php index 45c1dd98e..9314adf8b 100644 --- a/src/Entity/MediaCollectionInterface.php +++ b/src/Entity/MediaCollectionInterface.php @@ -8,7 +8,7 @@ declare(strict_types=1); -namespace BitBag\SyliusCmsPlugin\Entity; +namespace Sylius\CmsPlugin\Entity; use Doctrine\Common\Collections\Collection; diff --git a/src/Entity/MediaInterface.php b/src/Entity/MediaInterface.php index 179539179..cd7e092ae 100644 --- a/src/Entity/MediaInterface.php +++ b/src/Entity/MediaInterface.php @@ -8,7 +8,7 @@ declare(strict_types=1); -namespace BitBag\SyliusCmsPlugin\Entity; +namespace Sylius\CmsPlugin\Entity; use Sylius\Component\Channel\Model\ChannelsAwareInterface; use Sylius\Component\Resource\Model\ResourceInterface; diff --git a/src/Entity/MediaTranslation.php b/src/Entity/MediaTranslation.php index 7853b754a..42f63fa5c 100755 --- a/src/Entity/MediaTranslation.php +++ b/src/Entity/MediaTranslation.php @@ -8,7 +8,7 @@ declare(strict_types=1); -namespace BitBag\SyliusCmsPlugin\Entity; +namespace Sylius\CmsPlugin\Entity; use Sylius\Component\Resource\Model\AbstractTranslation; diff --git a/src/Entity/MediaTranslationInterface.php b/src/Entity/MediaTranslationInterface.php index f46171542..466d11745 100755 --- a/src/Entity/MediaTranslationInterface.php +++ b/src/Entity/MediaTranslationInterface.php @@ -8,7 +8,7 @@ declare(strict_types=1); -namespace BitBag\SyliusCmsPlugin\Entity; +namespace Sylius\CmsPlugin\Entity; use Sylius\Component\Resource\Model\ResourceInterface; use Sylius\Component\Resource\Model\TranslationInterface; diff --git a/src/Entity/Page.php b/src/Entity/Page.php index 0e311b244..948f49b74 100755 --- a/src/Entity/Page.php +++ b/src/Entity/Page.php @@ -8,12 +8,12 @@ declare(strict_types=1); -namespace BitBag\SyliusCmsPlugin\Entity; +namespace Sylius\CmsPlugin\Entity; -use BitBag\SyliusCmsPlugin\Entity\Trait\ChannelsAwareTrait; -use BitBag\SyliusCmsPlugin\Entity\Trait\CollectibleTrait; -use BitBag\SyliusCmsPlugin\Entity\Trait\ContentElementsAwareTrait; -use BitBag\SyliusCmsPlugin\Entity\Trait\TeaserTrait; +use Sylius\CmsPlugin\Entity\Trait\ChannelsAwareTrait; +use Sylius\CmsPlugin\Entity\Trait\CollectibleTrait; +use Sylius\CmsPlugin\Entity\Trait\ContentElementsAwareTrait; +use Sylius\CmsPlugin\Entity\Trait\TeaserTrait; use Sylius\Component\Resource\Model\TimestampableTrait; use Sylius\Component\Resource\Model\ToggleableTrait; use Sylius\Component\Resource\Model\TranslatableTrait; diff --git a/src/Entity/PageInterface.php b/src/Entity/PageInterface.php index a4cd46275..e2cdbf030 100755 --- a/src/Entity/PageInterface.php +++ b/src/Entity/PageInterface.php @@ -8,7 +8,7 @@ declare(strict_types=1); -namespace BitBag\SyliusCmsPlugin\Entity; +namespace Sylius\CmsPlugin\Entity; use Sylius\Component\Channel\Model\ChannelsAwareInterface; use Sylius\Component\Resource\Model\ResourceInterface; diff --git a/src/Entity/PageTranslation.php b/src/Entity/PageTranslation.php index 303355a35..9217cabe2 100755 --- a/src/Entity/PageTranslation.php +++ b/src/Entity/PageTranslation.php @@ -8,7 +8,7 @@ declare(strict_types=1); -namespace BitBag\SyliusCmsPlugin\Entity; +namespace Sylius\CmsPlugin\Entity; use Sylius\Component\Resource\Model\AbstractTranslation; diff --git a/src/Entity/PageTranslationInterface.php b/src/Entity/PageTranslationInterface.php index 13313cf98..b67d18ce4 100755 --- a/src/Entity/PageTranslationInterface.php +++ b/src/Entity/PageTranslationInterface.php @@ -8,7 +8,7 @@ declare(strict_types=1); -namespace BitBag\SyliusCmsPlugin\Entity; +namespace Sylius\CmsPlugin\Entity; use Sylius\Component\Resource\Model\ResourceInterface; use Sylius\Component\Resource\Model\TranslationInterface; diff --git a/src/Entity/PagesCollectionInterface.php b/src/Entity/PagesCollectionInterface.php index bd09893f9..161821e0a 100644 --- a/src/Entity/PagesCollectionInterface.php +++ b/src/Entity/PagesCollectionInterface.php @@ -8,7 +8,7 @@ declare(strict_types=1); -namespace BitBag\SyliusCmsPlugin\Entity; +namespace Sylius\CmsPlugin\Entity; use Doctrine\Common\Collections\Collection; diff --git a/src/Entity/ProductsAwareInterface.php b/src/Entity/ProductsAwareInterface.php index 922302d75..938310590 100755 --- a/src/Entity/ProductsAwareInterface.php +++ b/src/Entity/ProductsAwareInterface.php @@ -8,7 +8,7 @@ declare(strict_types=1); -namespace BitBag\SyliusCmsPlugin\Entity; +namespace Sylius\CmsPlugin\Entity; use Doctrine\Common\Collections\Collection; use Sylius\Component\Core\Model\ProductInterface; diff --git a/src/Entity/ProductsInTaxonsAwareInterface.php b/src/Entity/ProductsInTaxonsAwareInterface.php index ed65d837d..7e680fcd5 100755 --- a/src/Entity/ProductsInTaxonsAwareInterface.php +++ b/src/Entity/ProductsInTaxonsAwareInterface.php @@ -8,7 +8,7 @@ declare(strict_types=1); -namespace BitBag\SyliusCmsPlugin\Entity; +namespace Sylius\CmsPlugin\Entity; use Doctrine\Common\Collections\Collection; use Sylius\Component\Core\Model\TaxonInterface; diff --git a/src/Entity/TaxonAwareInterface.php b/src/Entity/TaxonAwareInterface.php index 20e7ccb95..2d12e391b 100755 --- a/src/Entity/TaxonAwareInterface.php +++ b/src/Entity/TaxonAwareInterface.php @@ -8,7 +8,7 @@ declare(strict_types=1); -namespace BitBag\SyliusCmsPlugin\Entity; +namespace Sylius\CmsPlugin\Entity; use Doctrine\Common\Collections\Collection; use Sylius\Component\Core\Model\TaxonInterface; diff --git a/src/Entity/TeaserInterface.php b/src/Entity/TeaserInterface.php index 32c6a7aef..26e23a44f 100644 --- a/src/Entity/TeaserInterface.php +++ b/src/Entity/TeaserInterface.php @@ -8,7 +8,7 @@ declare(strict_types=1); -namespace BitBag\SyliusCmsPlugin\Entity; +namespace Sylius\CmsPlugin\Entity; interface TeaserInterface { diff --git a/src/Entity/Template.php b/src/Entity/Template.php index 96dc172dc..6cd1245bd 100644 --- a/src/Entity/Template.php +++ b/src/Entity/Template.php @@ -8,7 +8,7 @@ declare(strict_types=1); -namespace BitBag\SyliusCmsPlugin\Entity; +namespace Sylius\CmsPlugin\Entity; class Template implements TemplateInterface { diff --git a/src/Entity/TemplateInterface.php b/src/Entity/TemplateInterface.php index 495ba70ac..d1d5ef728 100644 --- a/src/Entity/TemplateInterface.php +++ b/src/Entity/TemplateInterface.php @@ -8,7 +8,7 @@ declare(strict_types=1); -namespace BitBag\SyliusCmsPlugin\Entity; +namespace Sylius\CmsPlugin\Entity; use Sylius\Component\Resource\Model\ResourceInterface; diff --git a/src/Entity/Trait/BlocksCollectionTrait.php b/src/Entity/Trait/BlocksCollectionTrait.php index 686820081..e9060bb0f 100644 --- a/src/Entity/Trait/BlocksCollectionTrait.php +++ b/src/Entity/Trait/BlocksCollectionTrait.php @@ -8,11 +8,11 @@ declare(strict_types=1); -namespace BitBag\SyliusCmsPlugin\Entity\Trait; +namespace Sylius\CmsPlugin\Entity\Trait; -use BitBag\SyliusCmsPlugin\Entity\BlockInterface; use Doctrine\Common\Collections\ArrayCollection; use Doctrine\Common\Collections\Collection; +use Sylius\CmsPlugin\Entity\BlockInterface; trait BlocksCollectionTrait { diff --git a/src/Entity/Trait/ChannelsAwareTrait.php b/src/Entity/Trait/ChannelsAwareTrait.php index 712a396f2..7e27e8e90 100755 --- a/src/Entity/Trait/ChannelsAwareTrait.php +++ b/src/Entity/Trait/ChannelsAwareTrait.php @@ -14,7 +14,7 @@ * We are hiring developers from all over the world. Join us and start your new, exciting adventure and become part of us: https://bitbag.io/career */ -namespace BitBag\SyliusCmsPlugin\Entity\Trait; +namespace Sylius\CmsPlugin\Entity\Trait; use Doctrine\Common\Collections\ArrayCollection; use Doctrine\Common\Collections\Collection; diff --git a/src/Entity/Trait/CollectibleTrait.php b/src/Entity/Trait/CollectibleTrait.php index 10414633b..31f44f4e1 100755 --- a/src/Entity/Trait/CollectibleTrait.php +++ b/src/Entity/Trait/CollectibleTrait.php @@ -8,17 +8,17 @@ declare(strict_types=1); -namespace BitBag\SyliusCmsPlugin\Entity\Trait; +namespace Sylius\CmsPlugin\Entity\Trait; -use BitBag\SyliusCmsPlugin\Entity\Block; -use BitBag\SyliusCmsPlugin\Entity\BlockInterface; -use BitBag\SyliusCmsPlugin\Entity\CollectionInterface; -use BitBag\SyliusCmsPlugin\Entity\Media; -use BitBag\SyliusCmsPlugin\Entity\MediaInterface; -use BitBag\SyliusCmsPlugin\Entity\Page; -use BitBag\SyliusCmsPlugin\Entity\PageInterface; use Doctrine\Common\Collections\ArrayCollection; use Doctrine\Common\Collections\Collection; +use Sylius\CmsPlugin\Entity\Block; +use Sylius\CmsPlugin\Entity\BlockInterface; +use Sylius\CmsPlugin\Entity\CollectionInterface; +use Sylius\CmsPlugin\Entity\Media; +use Sylius\CmsPlugin\Entity\MediaInterface; +use Sylius\CmsPlugin\Entity\Page; +use Sylius\CmsPlugin\Entity\PageInterface; trait CollectibleTrait { diff --git a/src/Entity/Trait/ContentElementsAwareTrait.php b/src/Entity/Trait/ContentElementsAwareTrait.php index 0e4864511..2ed9e5d86 100644 --- a/src/Entity/Trait/ContentElementsAwareTrait.php +++ b/src/Entity/Trait/ContentElementsAwareTrait.php @@ -8,13 +8,13 @@ declare(strict_types=1); -namespace BitBag\SyliusCmsPlugin\Entity\Trait; +namespace Sylius\CmsPlugin\Entity\Trait; -use BitBag\SyliusCmsPlugin\Entity\Block; -use BitBag\SyliusCmsPlugin\Entity\ContentConfigurationInterface; -use BitBag\SyliusCmsPlugin\Entity\Page; use Doctrine\Common\Collections\ArrayCollection; use Doctrine\Common\Collections\Collection; +use Sylius\CmsPlugin\Entity\Block; +use Sylius\CmsPlugin\Entity\ContentConfigurationInterface; +use Sylius\CmsPlugin\Entity\Page; /** * @property Collection $contentElements diff --git a/src/Entity/Trait/LocaleAwareTrait.php b/src/Entity/Trait/LocaleAwareTrait.php index b9a1a2325..ecc617538 100644 --- a/src/Entity/Trait/LocaleAwareTrait.php +++ b/src/Entity/Trait/LocaleAwareTrait.php @@ -8,7 +8,7 @@ declare(strict_types=1); -namespace BitBag\SyliusCmsPlugin\Entity\Trait; +namespace Sylius\CmsPlugin\Entity\Trait; use Doctrine\Common\Collections\ArrayCollection; use Doctrine\Common\Collections\Collection; diff --git a/src/Entity/Trait/MediaCollectionTrait.php b/src/Entity/Trait/MediaCollectionTrait.php index 3b50ca008..b8248b2dc 100644 --- a/src/Entity/Trait/MediaCollectionTrait.php +++ b/src/Entity/Trait/MediaCollectionTrait.php @@ -8,11 +8,11 @@ declare(strict_types=1); -namespace BitBag\SyliusCmsPlugin\Entity\Trait; +namespace Sylius\CmsPlugin\Entity\Trait; -use BitBag\SyliusCmsPlugin\Entity\MediaInterface; use Doctrine\Common\Collections\ArrayCollection; use Doctrine\Common\Collections\Collection; +use Sylius\CmsPlugin\Entity\MediaInterface; trait MediaCollectionTrait { diff --git a/src/Entity/Trait/PagesCollectionTrait.php b/src/Entity/Trait/PagesCollectionTrait.php index 8363853e5..478fdc809 100644 --- a/src/Entity/Trait/PagesCollectionTrait.php +++ b/src/Entity/Trait/PagesCollectionTrait.php @@ -8,11 +8,11 @@ declare(strict_types=1); -namespace BitBag\SyliusCmsPlugin\Entity\Trait; +namespace Sylius\CmsPlugin\Entity\Trait; -use BitBag\SyliusCmsPlugin\Entity\PageInterface; use Doctrine\Common\Collections\ArrayCollection; use Doctrine\Common\Collections\Collection; +use Sylius\CmsPlugin\Entity\PageInterface; trait PagesCollectionTrait { diff --git a/src/Entity/Trait/ProductsAwareTrait.php b/src/Entity/Trait/ProductsAwareTrait.php index 24c048497..968a9a98e 100755 --- a/src/Entity/Trait/ProductsAwareTrait.php +++ b/src/Entity/Trait/ProductsAwareTrait.php @@ -8,7 +8,7 @@ declare(strict_types=1); -namespace BitBag\SyliusCmsPlugin\Entity\Trait; +namespace Sylius\CmsPlugin\Entity\Trait; use Doctrine\Common\Collections\ArrayCollection; use Doctrine\Common\Collections\Collection; diff --git a/src/Entity/Trait/ProductsInTaxonsAwareTrait.php b/src/Entity/Trait/ProductsInTaxonsAwareTrait.php index ae5b10185..9763dd2cd 100644 --- a/src/Entity/Trait/ProductsInTaxonsAwareTrait.php +++ b/src/Entity/Trait/ProductsInTaxonsAwareTrait.php @@ -8,7 +8,7 @@ declare(strict_types=1); -namespace BitBag\SyliusCmsPlugin\Entity\Trait; +namespace Sylius\CmsPlugin\Entity\Trait; use Doctrine\Common\Collections\ArrayCollection; use Doctrine\Common\Collections\Collection; diff --git a/src/Entity/Trait/TaxonAwareTrait.php b/src/Entity/Trait/TaxonAwareTrait.php index 214a3e3a7..70bcbf8a2 100644 --- a/src/Entity/Trait/TaxonAwareTrait.php +++ b/src/Entity/Trait/TaxonAwareTrait.php @@ -8,7 +8,7 @@ declare(strict_types=1); -namespace BitBag\SyliusCmsPlugin\Entity\Trait; +namespace Sylius\CmsPlugin\Entity\Trait; use Doctrine\Common\Collections\ArrayCollection; use Doctrine\Common\Collections\Collection; diff --git a/src/Entity/Trait/TeaserTrait.php b/src/Entity/Trait/TeaserTrait.php index a29aec634..6efde5276 100644 --- a/src/Entity/Trait/TeaserTrait.php +++ b/src/Entity/Trait/TeaserTrait.php @@ -8,9 +8,9 @@ declare(strict_types=1); -namespace BitBag\SyliusCmsPlugin\Entity\Trait; +namespace Sylius\CmsPlugin\Entity\Trait; -use BitBag\SyliusCmsPlugin\Entity\MediaInterface; +use Sylius\CmsPlugin\Entity\MediaInterface; trait TeaserTrait { diff --git a/src/EventListener/MediaUploadListener.php b/src/EventListener/MediaUploadListener.php index 0e1f5b4e7..68319d46a 100755 --- a/src/EventListener/MediaUploadListener.php +++ b/src/EventListener/MediaUploadListener.php @@ -8,11 +8,11 @@ declare(strict_types=1); -namespace BitBag\SyliusCmsPlugin\EventListener; +namespace Sylius\CmsPlugin\EventListener; -use BitBag\SyliusCmsPlugin\Entity\MediaInterface; -use BitBag\SyliusCmsPlugin\Resolver\MediaProviderResolverInterface; use Sylius\Bundle\ResourceBundle\Event\ResourceControllerEvent; +use Sylius\CmsPlugin\Entity\MediaInterface; +use Sylius\CmsPlugin\Resolver\MediaProviderResolverInterface; use Webmozart\Assert\Assert; final class MediaUploadListener diff --git a/src/EventListener/ResourceDeleteSubscriber.php b/src/EventListener/ResourceDeleteSubscriber.php index f212fb8ac..c8a00d117 100644 --- a/src/EventListener/ResourceDeleteSubscriber.php +++ b/src/EventListener/ResourceDeleteSubscriber.php @@ -8,7 +8,7 @@ declare(strict_types=1); -namespace BitBag\SyliusCmsPlugin\EventListener; +namespace Sylius\CmsPlugin\EventListener; use Doctrine\DBAL\Exception\ForeignKeyConstraintViolationException; use Sylius\Component\Resource\ResourceActions; diff --git a/src/Exception/ImportFailedException.php b/src/Exception/ImportFailedException.php index aa32b83f7..5686df519 100755 --- a/src/Exception/ImportFailedException.php +++ b/src/Exception/ImportFailedException.php @@ -8,7 +8,7 @@ declare(strict_types=1); -namespace BitBag\SyliusCmsPlugin\Exception; +namespace Sylius\CmsPlugin\Exception; final class ImportFailedException extends \RuntimeException { diff --git a/src/Fixture/BlockFixture.php b/src/Fixture/BlockFixture.php index e499c3092..a51f8ab17 100755 --- a/src/Fixture/BlockFixture.php +++ b/src/Fixture/BlockFixture.php @@ -8,10 +8,10 @@ declare(strict_types=1); -namespace BitBag\SyliusCmsPlugin\Fixture; +namespace Sylius\CmsPlugin\Fixture; -use BitBag\SyliusCmsPlugin\Fixture\Factory\FixtureFactoryInterface; use Sylius\Bundle\FixturesBundle\Fixture\AbstractFixture; +use Sylius\CmsPlugin\Fixture\Factory\FixtureFactoryInterface; use Symfony\Component\Config\Definition\Builder\ArrayNodeDefinition; final class BlockFixture extends AbstractFixture diff --git a/src/Fixture/CollectionFixture.php b/src/Fixture/CollectionFixture.php index 88f963f27..c7968c189 100755 --- a/src/Fixture/CollectionFixture.php +++ b/src/Fixture/CollectionFixture.php @@ -8,10 +8,10 @@ declare(strict_types=1); -namespace BitBag\SyliusCmsPlugin\Fixture; +namespace Sylius\CmsPlugin\Fixture; -use BitBag\SyliusCmsPlugin\Fixture\Factory\FixtureFactoryInterface; use Sylius\Bundle\FixturesBundle\Fixture\AbstractFixture; +use Sylius\CmsPlugin\Fixture\Factory\FixtureFactoryInterface; use Symfony\Component\Config\Definition\Builder\ArrayNodeDefinition; final class CollectionFixture extends AbstractFixture diff --git a/src/Fixture/Factory/BlockFixtureFactory.php b/src/Fixture/Factory/BlockFixtureFactory.php index 8b169d1a5..1961b28ad 100755 --- a/src/Fixture/Factory/BlockFixtureFactory.php +++ b/src/Fixture/Factory/BlockFixtureFactory.php @@ -8,17 +8,17 @@ declare(strict_types=1); -namespace BitBag\SyliusCmsPlugin\Fixture\Factory; +namespace Sylius\CmsPlugin\Fixture\Factory; -use BitBag\SyliusCmsPlugin\Assigner\ChannelsAssignerInterface; -use BitBag\SyliusCmsPlugin\Assigner\CollectionsAssignerInterface; -use BitBag\SyliusCmsPlugin\Assigner\LocalesAssignerInterface; -use BitBag\SyliusCmsPlugin\Assigner\ProductsAssignerInterface; -use BitBag\SyliusCmsPlugin\Assigner\ProductsInTaxonsAssignerInterface; -use BitBag\SyliusCmsPlugin\Assigner\TaxonsAssignerInterface; -use BitBag\SyliusCmsPlugin\Entity\BlockInterface; -use BitBag\SyliusCmsPlugin\Entity\ContentConfiguration; -use BitBag\SyliusCmsPlugin\Repository\BlockRepositoryInterface; +use Sylius\CmsPlugin\Assigner\ChannelsAssignerInterface; +use Sylius\CmsPlugin\Assigner\CollectionsAssignerInterface; +use Sylius\CmsPlugin\Assigner\LocalesAssignerInterface; +use Sylius\CmsPlugin\Assigner\ProductsAssignerInterface; +use Sylius\CmsPlugin\Assigner\ProductsInTaxonsAssignerInterface; +use Sylius\CmsPlugin\Assigner\TaxonsAssignerInterface; +use Sylius\CmsPlugin\Entity\BlockInterface; +use Sylius\CmsPlugin\Entity\ContentConfiguration; +use Sylius\CmsPlugin\Repository\BlockRepositoryInterface; use Sylius\Component\Resource\Factory\FactoryInterface; final class BlockFixtureFactory implements FixtureFactoryInterface diff --git a/src/Fixture/Factory/CollectionFixtureFactory.php b/src/Fixture/Factory/CollectionFixtureFactory.php index 253d92bcb..448b1c3f9 100755 --- a/src/Fixture/Factory/CollectionFixtureFactory.php +++ b/src/Fixture/Factory/CollectionFixtureFactory.php @@ -8,12 +8,12 @@ declare(strict_types=1); -namespace BitBag\SyliusCmsPlugin\Fixture\Factory; +namespace Sylius\CmsPlugin\Fixture\Factory; -use BitBag\SyliusCmsPlugin\Entity\CollectionInterface; -use BitBag\SyliusCmsPlugin\Entity\PageInterface; -use BitBag\SyliusCmsPlugin\Repository\CollectionRepositoryInterface; -use BitBag\SyliusCmsPlugin\Repository\PageRepositoryInterface; +use Sylius\CmsPlugin\Entity\CollectionInterface; +use Sylius\CmsPlugin\Entity\PageInterface; +use Sylius\CmsPlugin\Repository\CollectionRepositoryInterface; +use Sylius\CmsPlugin\Repository\PageRepositoryInterface; use Sylius\Component\Resource\Factory\FactoryInterface; final class CollectionFixtureFactory implements FixtureFactoryInterface diff --git a/src/Fixture/Factory/FixtureFactoryInterface.php b/src/Fixture/Factory/FixtureFactoryInterface.php index 4c29d5dd5..8de2c78de 100755 --- a/src/Fixture/Factory/FixtureFactoryInterface.php +++ b/src/Fixture/Factory/FixtureFactoryInterface.php @@ -8,7 +8,7 @@ declare(strict_types=1); -namespace BitBag\SyliusCmsPlugin\Fixture\Factory; +namespace Sylius\CmsPlugin\Fixture\Factory; interface FixtureFactoryInterface { diff --git a/src/Fixture/Factory/MediaFixtureFactory.php b/src/Fixture/Factory/MediaFixtureFactory.php index 58f889d82..3f1910a29 100644 --- a/src/Fixture/Factory/MediaFixtureFactory.php +++ b/src/Fixture/Factory/MediaFixtureFactory.php @@ -8,14 +8,14 @@ declare(strict_types=1); -namespace BitBag\SyliusCmsPlugin\Fixture\Factory; +namespace Sylius\CmsPlugin\Fixture\Factory; -use BitBag\SyliusCmsPlugin\Assigner\ChannelsAssignerInterface; -use BitBag\SyliusCmsPlugin\Assigner\CollectionsAssignerInterface; -use BitBag\SyliusCmsPlugin\Entity\MediaInterface; -use BitBag\SyliusCmsPlugin\Entity\MediaTranslationInterface; -use BitBag\SyliusCmsPlugin\Repository\MediaRepositoryInterface; -use BitBag\SyliusCmsPlugin\Resolver\MediaProviderResolverInterface; +use Sylius\CmsPlugin\Assigner\ChannelsAssignerInterface; +use Sylius\CmsPlugin\Assigner\CollectionsAssignerInterface; +use Sylius\CmsPlugin\Entity\MediaInterface; +use Sylius\CmsPlugin\Entity\MediaTranslationInterface; +use Sylius\CmsPlugin\Repository\MediaRepositoryInterface; +use Sylius\CmsPlugin\Resolver\MediaProviderResolverInterface; use Sylius\Component\Resource\Factory\FactoryInterface; use Symfony\Component\HttpFoundation\File\UploadedFile; diff --git a/src/Fixture/Factory/PageFixtureFactory.php b/src/Fixture/Factory/PageFixtureFactory.php index bad51d3d2..647c3226a 100755 --- a/src/Fixture/Factory/PageFixtureFactory.php +++ b/src/Fixture/Factory/PageFixtureFactory.php @@ -8,16 +8,16 @@ declare(strict_types=1); -namespace BitBag\SyliusCmsPlugin\Fixture\Factory; - -use BitBag\SyliusCmsPlugin\Assigner\ChannelsAssignerInterface; -use BitBag\SyliusCmsPlugin\Assigner\CollectionsAssignerInterface; -use BitBag\SyliusCmsPlugin\Entity\ContentConfiguration; -use BitBag\SyliusCmsPlugin\Entity\MediaInterface; -use BitBag\SyliusCmsPlugin\Entity\PageInterface; -use BitBag\SyliusCmsPlugin\Entity\PageTranslationInterface; -use BitBag\SyliusCmsPlugin\Repository\MediaRepositoryInterface; -use BitBag\SyliusCmsPlugin\Repository\PageRepositoryInterface; +namespace Sylius\CmsPlugin\Fixture\Factory; + +use Sylius\CmsPlugin\Assigner\ChannelsAssignerInterface; +use Sylius\CmsPlugin\Assigner\CollectionsAssignerInterface; +use Sylius\CmsPlugin\Entity\ContentConfiguration; +use Sylius\CmsPlugin\Entity\MediaInterface; +use Sylius\CmsPlugin\Entity\PageInterface; +use Sylius\CmsPlugin\Entity\PageTranslationInterface; +use Sylius\CmsPlugin\Repository\MediaRepositoryInterface; +use Sylius\CmsPlugin\Repository\PageRepositoryInterface; use Sylius\Component\Resource\Factory\FactoryInterface; final class PageFixtureFactory implements FixtureFactoryInterface diff --git a/src/Fixture/Factory/TemplateFixtureFactory.php b/src/Fixture/Factory/TemplateFixtureFactory.php index 4d4ffa7bb..f8b010a89 100755 --- a/src/Fixture/Factory/TemplateFixtureFactory.php +++ b/src/Fixture/Factory/TemplateFixtureFactory.php @@ -8,9 +8,9 @@ declare(strict_types=1); -namespace BitBag\SyliusCmsPlugin\Fixture\Factory; +namespace Sylius\CmsPlugin\Fixture\Factory; -use BitBag\SyliusCmsPlugin\Entity\TemplateInterface; +use Sylius\CmsPlugin\Entity\TemplateInterface; use Sylius\Component\Resource\Factory\FactoryInterface; use Sylius\Component\Resource\Repository\RepositoryInterface; diff --git a/src/Fixture/MediaFixture.php b/src/Fixture/MediaFixture.php index 6affd5a6f..c0a5b80fd 100644 --- a/src/Fixture/MediaFixture.php +++ b/src/Fixture/MediaFixture.php @@ -8,10 +8,10 @@ declare(strict_types=1); -namespace BitBag\SyliusCmsPlugin\Fixture; +namespace Sylius\CmsPlugin\Fixture; -use BitBag\SyliusCmsPlugin\Fixture\Factory\FixtureFactoryInterface; use Sylius\Bundle\FixturesBundle\Fixture\AbstractFixture; +use Sylius\CmsPlugin\Fixture\Factory\FixtureFactoryInterface; use Symfony\Component\Config\Definition\Builder\ArrayNodeDefinition; final class MediaFixture extends AbstractFixture diff --git a/src/Fixture/PageFixture.php b/src/Fixture/PageFixture.php index 16bf4047f..9c7699dbf 100755 --- a/src/Fixture/PageFixture.php +++ b/src/Fixture/PageFixture.php @@ -8,10 +8,10 @@ declare(strict_types=1); -namespace BitBag\SyliusCmsPlugin\Fixture; +namespace Sylius\CmsPlugin\Fixture; -use BitBag\SyliusCmsPlugin\Fixture\Factory\FixtureFactoryInterface; use Sylius\Bundle\FixturesBundle\Fixture\AbstractFixture; +use Sylius\CmsPlugin\Fixture\Factory\FixtureFactoryInterface; use Symfony\Component\Config\Definition\Builder\ArrayNodeDefinition; final class PageFixture extends AbstractFixture diff --git a/src/Fixture/TemplateFixture.php b/src/Fixture/TemplateFixture.php index 5cfdc9b62..a921ea150 100755 --- a/src/Fixture/TemplateFixture.php +++ b/src/Fixture/TemplateFixture.php @@ -8,10 +8,10 @@ declare(strict_types=1); -namespace BitBag\SyliusCmsPlugin\Fixture; +namespace Sylius\CmsPlugin\Fixture; -use BitBag\SyliusCmsPlugin\Fixture\Factory\TemplateFixtureFactory; use Sylius\Bundle\FixturesBundle\Fixture\AbstractFixture; +use Sylius\CmsPlugin\Fixture\Factory\TemplateFixtureFactory; use Symfony\Component\Config\Definition\Builder\ArrayNodeDefinition; final class TemplateFixture extends AbstractFixture diff --git a/src/Form/DataTransformer/MultipleMediaToCodesTransformer.php b/src/Form/DataTransformer/MultipleMediaToCodesTransformer.php index 3b39af8fc..f1695cce6 100644 --- a/src/Form/DataTransformer/MultipleMediaToCodesTransformer.php +++ b/src/Form/DataTransformer/MultipleMediaToCodesTransformer.php @@ -8,12 +8,12 @@ declare(strict_types=1); -namespace BitBag\SyliusCmsPlugin\Form\DataTransformer; +namespace Sylius\CmsPlugin\Form\DataTransformer; -use BitBag\SyliusCmsPlugin\Entity\MediaInterface; -use BitBag\SyliusCmsPlugin\Repository\MediaRepositoryInterface; use Doctrine\Common\Collections\ArrayCollection; use Doctrine\Common\Collections\Collection; +use Sylius\CmsPlugin\Entity\MediaInterface; +use Sylius\CmsPlugin\Repository\MediaRepositoryInterface; use Symfony\Component\Form\DataTransformerInterface; use Webmozart\Assert\Assert; diff --git a/src/Form/Type/AbstractTemplateAutocompleteChoiceType.php b/src/Form/Type/AbstractTemplateAutocompleteChoiceType.php index a2c233556..851ad0841 100644 --- a/src/Form/Type/AbstractTemplateAutocompleteChoiceType.php +++ b/src/Form/Type/AbstractTemplateAutocompleteChoiceType.php @@ -8,7 +8,7 @@ declare(strict_types=1); -namespace BitBag\SyliusCmsPlugin\Form\Type; +namespace Sylius\CmsPlugin\Form\Type; use Sylius\Bundle\ResourceBundle\Form\Type\ResourceAutocompleteChoiceType; use Symfony\Component\Form\AbstractType; diff --git a/src/Form/Type/BlockAutocompleteChoiceType.php b/src/Form/Type/BlockAutocompleteChoiceType.php index f99a4a6fc..a0da54bdc 100644 --- a/src/Form/Type/BlockAutocompleteChoiceType.php +++ b/src/Form/Type/BlockAutocompleteChoiceType.php @@ -8,7 +8,7 @@ declare(strict_types=1); -namespace BitBag\SyliusCmsPlugin\Form\Type; +namespace Sylius\CmsPlugin\Form\Type; use Sylius\Bundle\ResourceBundle\Form\Type\ResourceAutocompleteChoiceType; use Symfony\Component\Form\AbstractType; diff --git a/src/Form/Type/BlockType.php b/src/Form/Type/BlockType.php index 6713a45cf..f81b42134 100755 --- a/src/Form/Type/BlockType.php +++ b/src/Form/Type/BlockType.php @@ -8,13 +8,13 @@ declare(strict_types=1); -namespace BitBag\SyliusCmsPlugin\Form\Type; +namespace Sylius\CmsPlugin\Form\Type; -use BitBag\SyliusCmsPlugin\Entity\BlockInterface; use Sylius\Bundle\ChannelBundle\Form\Type\ChannelChoiceType; use Sylius\Bundle\ProductBundle\Form\Type\ProductAutocompleteChoiceType; use Sylius\Bundle\ResourceBundle\Form\Type\AbstractResourceType; use Sylius\Bundle\TaxonomyBundle\Form\Type\TaxonAutocompleteChoiceType; +use Sylius\CmsPlugin\Entity\BlockInterface; use Symfony\Component\Form\Extension\Core\Type\CheckboxType; use Symfony\Component\Form\Extension\Core\Type\CollectionType; use Symfony\Component\Form\Extension\Core\Type\TextType; diff --git a/src/Form/Type/CollectionAutocompleteChoiceType.php b/src/Form/Type/CollectionAutocompleteChoiceType.php index 1ac306653..dd2d68669 100755 --- a/src/Form/Type/CollectionAutocompleteChoiceType.php +++ b/src/Form/Type/CollectionAutocompleteChoiceType.php @@ -8,7 +8,7 @@ declare(strict_types=1); -namespace BitBag\SyliusCmsPlugin\Form\Type; +namespace Sylius\CmsPlugin\Form\Type; use Sylius\Bundle\ResourceBundle\Form\Type\ResourceAutocompleteChoiceType; use Symfony\Component\Form\AbstractType; diff --git a/src/Form/Type/CollectionType.php b/src/Form/Type/CollectionType.php index 6478f89da..455142d37 100755 --- a/src/Form/Type/CollectionType.php +++ b/src/Form/Type/CollectionType.php @@ -8,7 +8,7 @@ declare(strict_types=1); -namespace BitBag\SyliusCmsPlugin\Form\Type; +namespace Sylius\CmsPlugin\Form\Type; use Sylius\Bundle\ResourceBundle\Form\Type\AbstractResourceType; use Symfony\Component\Form\Event\PreSubmitEvent; diff --git a/src/Form/Type/ContentConfigurationType.php b/src/Form/Type/ContentConfigurationType.php index ead59d4e8..11a7b84d0 100644 --- a/src/Form/Type/ContentConfigurationType.php +++ b/src/Form/Type/ContentConfigurationType.php @@ -8,10 +8,10 @@ declare(strict_types=1); -namespace BitBag\SyliusCmsPlugin\Form\Type; +namespace Sylius\CmsPlugin\Form\Type; -use BitBag\SyliusCmsPlugin\Entity\ContentConfigurationInterface; use Sylius\Bundle\ResourceBundle\Form\Type\AbstractResourceType; +use Sylius\CmsPlugin\Entity\ContentConfigurationInterface; use Symfony\Component\Form\Extension\Core\Type\ChoiceType; use Symfony\Component\Form\FormBuilderInterface; use Symfony\Component\Form\FormEvent; diff --git a/src/Form/Type/ContentElementType.php b/src/Form/Type/ContentElementType.php index 1be324c93..0e58719f3 100644 --- a/src/Form/Type/ContentElementType.php +++ b/src/Form/Type/ContentElementType.php @@ -8,7 +8,7 @@ declare(strict_types=1); -namespace BitBag\SyliusCmsPlugin\Form\Type; +namespace Sylius\CmsPlugin\Form\Type; use Symfony\Component\Form\AbstractType; use Symfony\Component\Form\Extension\Core\Type\ChoiceType; diff --git a/src/Form/Type/ContentElements/HeadingContentElementType.php b/src/Form/Type/ContentElements/HeadingContentElementType.php index 49d2ef3f5..a2ac6b74f 100644 --- a/src/Form/Type/ContentElements/HeadingContentElementType.php +++ b/src/Form/Type/ContentElements/HeadingContentElementType.php @@ -8,7 +8,7 @@ declare(strict_types=1); -namespace BitBag\SyliusCmsPlugin\Form\Type\ContentElements; +namespace Sylius\CmsPlugin\Form\Type\ContentElements; use Symfony\Component\Form\AbstractType; use Symfony\Component\Form\Extension\Core\Type\ChoiceType; diff --git a/src/Form/Type/ContentElements/MultipleMediaContentElementType.php b/src/Form/Type/ContentElements/MultipleMediaContentElementType.php index 4406258f6..04accc10c 100644 --- a/src/Form/Type/ContentElements/MultipleMediaContentElementType.php +++ b/src/Form/Type/ContentElements/MultipleMediaContentElementType.php @@ -8,9 +8,9 @@ declare(strict_types=1); -namespace BitBag\SyliusCmsPlugin\Form\Type\ContentElements; +namespace Sylius\CmsPlugin\Form\Type\ContentElements; -use BitBag\SyliusCmsPlugin\Form\Type\MediaAutocompleteChoiceType; +use Sylius\CmsPlugin\Form\Type\MediaAutocompleteChoiceType; use Symfony\Component\Form\AbstractType; use Symfony\Component\Form\DataTransformerInterface; use Symfony\Component\Form\FormBuilderInterface; diff --git a/src/Form/Type/ContentElements/PagesCollectionContentElementType.php b/src/Form/Type/ContentElements/PagesCollectionContentElementType.php index d076945e8..51a85df4d 100644 --- a/src/Form/Type/ContentElements/PagesCollectionContentElementType.php +++ b/src/Form/Type/ContentElements/PagesCollectionContentElementType.php @@ -8,10 +8,10 @@ declare(strict_types=1); -namespace BitBag\SyliusCmsPlugin\Form\Type\ContentElements; +namespace Sylius\CmsPlugin\Form\Type\ContentElements; -use BitBag\SyliusCmsPlugin\Form\Type\PageCollectionAutocompleteChoiceType; use Sylius\Bundle\ResourceBundle\Form\DataTransformer\ResourceToIdentifierTransformer; +use Sylius\CmsPlugin\Form\Type\PageCollectionAutocompleteChoiceType; use Sylius\Component\Resource\Repository\RepositoryInterface; use Symfony\Component\Form\AbstractType; use Symfony\Component\Form\FormBuilderInterface; diff --git a/src/Form/Type/ContentElements/ProductsCarouselByTaxonContentElementType.php b/src/Form/Type/ContentElements/ProductsCarouselByTaxonContentElementType.php index aed6a44a4..8f6b2302e 100644 --- a/src/Form/Type/ContentElements/ProductsCarouselByTaxonContentElementType.php +++ b/src/Form/Type/ContentElements/ProductsCarouselByTaxonContentElementType.php @@ -8,7 +8,7 @@ declare(strict_types=1); -namespace BitBag\SyliusCmsPlugin\Form\Type\ContentElements; +namespace Sylius\CmsPlugin\Form\Type\ContentElements; use Sylius\Bundle\ResourceBundle\Form\DataTransformer\ResourceToIdentifierTransformer; use Sylius\Bundle\TaxonomyBundle\Form\Type\TaxonAutocompleteChoiceType; diff --git a/src/Form/Type/ContentElements/ProductsCarouselContentElementType.php b/src/Form/Type/ContentElements/ProductsCarouselContentElementType.php index 990c54c95..caf50f537 100644 --- a/src/Form/Type/ContentElements/ProductsCarouselContentElementType.php +++ b/src/Form/Type/ContentElements/ProductsCarouselContentElementType.php @@ -8,7 +8,7 @@ declare(strict_types=1); -namespace BitBag\SyliusCmsPlugin\Form\Type\ContentElements; +namespace Sylius\CmsPlugin\Form\Type\ContentElements; use Sylius\Bundle\CoreBundle\Form\Type\CatalogPromotionScope\ForProductsScopeConfigurationType; use Symfony\Component\Form\AbstractType; diff --git a/src/Form/Type/ContentElements/ProductsGridByTaxonContentElementType.php b/src/Form/Type/ContentElements/ProductsGridByTaxonContentElementType.php index 9721f89d2..6b5b2fe3a 100644 --- a/src/Form/Type/ContentElements/ProductsGridByTaxonContentElementType.php +++ b/src/Form/Type/ContentElements/ProductsGridByTaxonContentElementType.php @@ -8,7 +8,7 @@ declare(strict_types=1); -namespace BitBag\SyliusCmsPlugin\Form\Type\ContentElements; +namespace Sylius\CmsPlugin\Form\Type\ContentElements; use Sylius\Bundle\ResourceBundle\Form\DataTransformer\ResourceToIdentifierTransformer; use Sylius\Bundle\TaxonomyBundle\Form\Type\TaxonAutocompleteChoiceType; diff --git a/src/Form/Type/ContentElements/ProductsGridContentElementType.php b/src/Form/Type/ContentElements/ProductsGridContentElementType.php index a46743372..015d1eb0c 100644 --- a/src/Form/Type/ContentElements/ProductsGridContentElementType.php +++ b/src/Form/Type/ContentElements/ProductsGridContentElementType.php @@ -8,7 +8,7 @@ declare(strict_types=1); -namespace BitBag\SyliusCmsPlugin\Form\Type\ContentElements; +namespace Sylius\CmsPlugin\Form\Type\ContentElements; use Sylius\Bundle\CoreBundle\Form\Type\CatalogPromotionScope\ForProductsScopeConfigurationType; use Symfony\Component\Form\AbstractType; diff --git a/src/Form/Type/ContentElements/SingleMediaContentElementType.php b/src/Form/Type/ContentElements/SingleMediaContentElementType.php index e761c4a7f..7d0f28254 100644 --- a/src/Form/Type/ContentElements/SingleMediaContentElementType.php +++ b/src/Form/Type/ContentElements/SingleMediaContentElementType.php @@ -8,10 +8,10 @@ declare(strict_types=1); -namespace BitBag\SyliusCmsPlugin\Form\Type\ContentElements; +namespace Sylius\CmsPlugin\Form\Type\ContentElements; -use BitBag\SyliusCmsPlugin\Form\Type\MediaAutocompleteChoiceType; use Sylius\Bundle\ResourceBundle\Form\DataTransformer\ResourceToIdentifierTransformer; +use Sylius\CmsPlugin\Form\Type\MediaAutocompleteChoiceType; use Sylius\Component\Resource\Repository\RepositoryInterface; use Symfony\Component\Form\AbstractType; use Symfony\Component\Form\FormBuilderInterface; diff --git a/src/Form/Type/ContentElements/SpacerContentElementType.php b/src/Form/Type/ContentElements/SpacerContentElementType.php index adb0a5d19..c885a2e85 100644 --- a/src/Form/Type/ContentElements/SpacerContentElementType.php +++ b/src/Form/Type/ContentElements/SpacerContentElementType.php @@ -8,7 +8,7 @@ declare(strict_types=1); -namespace BitBag\SyliusCmsPlugin\Form\Type\ContentElements; +namespace Sylius\CmsPlugin\Form\Type\ContentElements; use Symfony\Component\Form\AbstractType; use Symfony\Component\Form\Extension\Core\Type\NumberType; diff --git a/src/Form/Type/ContentElements/TaxonsListContentElementType.php b/src/Form/Type/ContentElements/TaxonsListContentElementType.php index d3da4df7f..a4e5c31f7 100644 --- a/src/Form/Type/ContentElements/TaxonsListContentElementType.php +++ b/src/Form/Type/ContentElements/TaxonsListContentElementType.php @@ -8,7 +8,7 @@ declare(strict_types=1); -namespace BitBag\SyliusCmsPlugin\Form\Type\ContentElements; +namespace Sylius\CmsPlugin\Form\Type\ContentElements; use Sylius\Bundle\CoreBundle\Form\Type\CatalogPromotionScope\ForTaxonsScopeConfigurationType; use Symfony\Component\Form\AbstractType; diff --git a/src/Form/Type/ContentElements/TextareaContentElementType.php b/src/Form/Type/ContentElements/TextareaContentElementType.php index 7191dcffb..c4a754a25 100644 --- a/src/Form/Type/ContentElements/TextareaContentElementType.php +++ b/src/Form/Type/ContentElements/TextareaContentElementType.php @@ -8,9 +8,9 @@ declare(strict_types=1); -namespace BitBag\SyliusCmsPlugin\Form\Type\ContentElements; +namespace Sylius\CmsPlugin\Form\Type\ContentElements; -use BitBag\SyliusCmsPlugin\Form\Type\WysiwygType; +use Sylius\CmsPlugin\Form\Type\WysiwygType; use Symfony\Component\Form\AbstractType; use Symfony\Component\Form\FormBuilderInterface; diff --git a/src/Form/Type/ImportType.php b/src/Form/Type/ImportType.php index 0c5651259..350665df5 100644 --- a/src/Form/Type/ImportType.php +++ b/src/Form/Type/ImportType.php @@ -8,7 +8,7 @@ declare(strict_types=1); -namespace BitBag\SyliusCmsPlugin\Form\Type; +namespace Sylius\CmsPlugin\Form\Type; use Symfony\Component\Form\AbstractType; use Symfony\Component\Form\Extension\Core\Type\FileType; diff --git a/src/Form/Type/MediaAutocompleteChoiceType.php b/src/Form/Type/MediaAutocompleteChoiceType.php index 397cd5902..6d4bbe2d8 100644 --- a/src/Form/Type/MediaAutocompleteChoiceType.php +++ b/src/Form/Type/MediaAutocompleteChoiceType.php @@ -8,10 +8,10 @@ declare(strict_types=1); -namespace BitBag\SyliusCmsPlugin\Form\Type; +namespace Sylius\CmsPlugin\Form\Type; -use BitBag\SyliusCmsPlugin\Entity\MediaInterface; use Sylius\Bundle\ResourceBundle\Form\Type\ResourceAutocompleteChoiceType; +use Sylius\CmsPlugin\Entity\MediaInterface; use Symfony\Component\Form\AbstractType; use Symfony\Component\Form\FormInterface; use Symfony\Component\Form\FormView; diff --git a/src/Form/Type/MediaImageAutocompleteChoiceType.php b/src/Form/Type/MediaImageAutocompleteChoiceType.php index badf0cb17..8e4afaaf7 100644 --- a/src/Form/Type/MediaImageAutocompleteChoiceType.php +++ b/src/Form/Type/MediaImageAutocompleteChoiceType.php @@ -8,10 +8,10 @@ declare(strict_types=1); -namespace BitBag\SyliusCmsPlugin\Form\Type; +namespace Sylius\CmsPlugin\Form\Type; -use BitBag\SyliusCmsPlugin\Entity\MediaInterface; use Sylius\Bundle\ResourceBundle\Form\Type\ResourceAutocompleteChoiceType; +use Sylius\CmsPlugin\Entity\MediaInterface; use Symfony\Component\Form\AbstractType; use Symfony\Component\Form\FormInterface; use Symfony\Component\Form\FormView; diff --git a/src/Form/Type/MediaType.php b/src/Form/Type/MediaType.php index d0fb16a8b..9044ebbf4 100644 --- a/src/Form/Type/MediaType.php +++ b/src/Form/Type/MediaType.php @@ -8,12 +8,12 @@ declare(strict_types=1); -namespace BitBag\SyliusCmsPlugin\Form\Type; +namespace Sylius\CmsPlugin\Form\Type; -use BitBag\SyliusCmsPlugin\Form\Type\Translation\MediaTranslationType; use Sylius\Bundle\ChannelBundle\Form\Type\ChannelChoiceType; use Sylius\Bundle\ResourceBundle\Form\Type\AbstractResourceType; use Sylius\Bundle\ResourceBundle\Form\Type\ResourceTranslationsType; +use Sylius\CmsPlugin\Form\Type\Translation\MediaTranslationType; use Symfony\Component\Form\Extension\Core\Type\CheckboxType; use Symfony\Component\Form\Extension\Core\Type\ChoiceType; use Symfony\Component\Form\Extension\Core\Type\FileType; diff --git a/src/Form/Type/PageAutocompleteChoiceType.php b/src/Form/Type/PageAutocompleteChoiceType.php index b1fd7639b..ca314b360 100644 --- a/src/Form/Type/PageAutocompleteChoiceType.php +++ b/src/Form/Type/PageAutocompleteChoiceType.php @@ -8,7 +8,7 @@ declare(strict_types=1); -namespace BitBag\SyliusCmsPlugin\Form\Type; +namespace Sylius\CmsPlugin\Form\Type; use Sylius\Bundle\ResourceBundle\Form\Type\ResourceAutocompleteChoiceType; use Symfony\Component\Form\AbstractType; diff --git a/src/Form/Type/PageCollectionAutocompleteChoiceType.php b/src/Form/Type/PageCollectionAutocompleteChoiceType.php index cb985025d..33f845eaf 100755 --- a/src/Form/Type/PageCollectionAutocompleteChoiceType.php +++ b/src/Form/Type/PageCollectionAutocompleteChoiceType.php @@ -8,7 +8,7 @@ declare(strict_types=1); -namespace BitBag\SyliusCmsPlugin\Form\Type; +namespace Sylius\CmsPlugin\Form\Type; use Sylius\Bundle\ResourceBundle\Form\Type\ResourceAutocompleteChoiceType; use Symfony\Component\Form\AbstractType; diff --git a/src/Form/Type/PageType.php b/src/Form/Type/PageType.php index 9834f9256..9743519e1 100755 --- a/src/Form/Type/PageType.php +++ b/src/Form/Type/PageType.php @@ -8,12 +8,12 @@ declare(strict_types=1); -namespace BitBag\SyliusCmsPlugin\Form\Type; +namespace Sylius\CmsPlugin\Form\Type; -use BitBag\SyliusCmsPlugin\Form\Type\Translation\PageTranslationType; use Sylius\Bundle\ChannelBundle\Form\Type\ChannelChoiceType; use Sylius\Bundle\ResourceBundle\Form\Type\AbstractResourceType; use Sylius\Bundle\ResourceBundle\Form\Type\ResourceTranslationsType; +use Sylius\CmsPlugin\Form\Type\Translation\PageTranslationType; use Symfony\Component\Form\Extension\Core\Type\CheckboxType; use Symfony\Component\Form\Extension\Core\Type\CollectionType; use Symfony\Component\Form\Extension\Core\Type\DateTimeType; diff --git a/src/Form/Type/TemplateBlockAutocompleteChoiceType.php b/src/Form/Type/TemplateBlockAutocompleteChoiceType.php index c07373193..af6cc2406 100644 --- a/src/Form/Type/TemplateBlockAutocompleteChoiceType.php +++ b/src/Form/Type/TemplateBlockAutocompleteChoiceType.php @@ -8,7 +8,7 @@ declare(strict_types=1); -namespace BitBag\SyliusCmsPlugin\Form\Type; +namespace Sylius\CmsPlugin\Form\Type; final class TemplateBlockAutocompleteChoiceType extends AbstractTemplateAutocompleteChoiceType { diff --git a/src/Form/Type/TemplatePageAutocompleteChoiceType.php b/src/Form/Type/TemplatePageAutocompleteChoiceType.php index c339b1f9c..c657cbc87 100644 --- a/src/Form/Type/TemplatePageAutocompleteChoiceType.php +++ b/src/Form/Type/TemplatePageAutocompleteChoiceType.php @@ -8,7 +8,7 @@ declare(strict_types=1); -namespace BitBag\SyliusCmsPlugin\Form\Type; +namespace Sylius\CmsPlugin\Form\Type; final class TemplatePageAutocompleteChoiceType extends AbstractTemplateAutocompleteChoiceType { diff --git a/src/Form/Type/TemplateType.php b/src/Form/Type/TemplateType.php index 8a6578950..3486d03c3 100755 --- a/src/Form/Type/TemplateType.php +++ b/src/Form/Type/TemplateType.php @@ -8,7 +8,7 @@ declare(strict_types=1); -namespace BitBag\SyliusCmsPlugin\Form\Type; +namespace Sylius\CmsPlugin\Form\Type; use Sylius\Bundle\ResourceBundle\Form\Type\AbstractResourceType; use Symfony\Component\Form\Extension\Core\Type\ChoiceType; diff --git a/src/Form/Type/Translation/MediaTranslationType.php b/src/Form/Type/Translation/MediaTranslationType.php index 5df403306..45684737b 100755 --- a/src/Form/Type/Translation/MediaTranslationType.php +++ b/src/Form/Type/Translation/MediaTranslationType.php @@ -8,10 +8,10 @@ declare(strict_types=1); -namespace BitBag\SyliusCmsPlugin\Form\Type\Translation; +namespace Sylius\CmsPlugin\Form\Type\Translation; -use BitBag\SyliusCmsPlugin\Form\Type\WysiwygType; use Sylius\Bundle\ResourceBundle\Form\Type\AbstractResourceType; +use Sylius\CmsPlugin\Form\Type\WysiwygType; use Symfony\Component\Form\Extension\Core\Type\TextType; use Symfony\Component\Form\FormBuilderInterface; diff --git a/src/Form/Type/Translation/PageTranslationType.php b/src/Form/Type/Translation/PageTranslationType.php index e23c84e44..e42e24da1 100755 --- a/src/Form/Type/Translation/PageTranslationType.php +++ b/src/Form/Type/Translation/PageTranslationType.php @@ -8,7 +8,7 @@ declare(strict_types=1); -namespace BitBag\SyliusCmsPlugin\Form\Type\Translation; +namespace Sylius\CmsPlugin\Form\Type\Translation; use Sylius\Bundle\ResourceBundle\Form\Type\AbstractResourceType; use Symfony\Component\Form\Extension\Core\Type\TextareaType; diff --git a/src/Form/Type/WysiwygType.php b/src/Form/Type/WysiwygType.php index 6318c3d0a..6b1bc7d55 100644 --- a/src/Form/Type/WysiwygType.php +++ b/src/Form/Type/WysiwygType.php @@ -8,7 +8,7 @@ declare(strict_types=1); -namespace BitBag\SyliusCmsPlugin\Form\Type; +namespace Sylius\CmsPlugin\Form\Type; use FOS\CKEditorBundle\Form\Type\CKEditorType; use Symfony\Component\Form\AbstractType; diff --git a/src/Importer/AbstractImporter.php b/src/Importer/AbstractImporter.php index 50dc401cd..d6fbb7ba3 100755 --- a/src/Importer/AbstractImporter.php +++ b/src/Importer/AbstractImporter.php @@ -8,7 +8,7 @@ declare(strict_types=1); -namespace BitBag\SyliusCmsPlugin\Importer; +namespace Sylius\CmsPlugin\Importer; use Sylius\Component\Resource\Model\ResourceInterface; use Symfony\Component\Validator\Validator\ValidatorInterface; diff --git a/src/Importer/BlockImporter.php b/src/Importer/BlockImporter.php index 51bbd0846..3db466c2b 100644 --- a/src/Importer/BlockImporter.php +++ b/src/Importer/BlockImporter.php @@ -8,17 +8,17 @@ declare(strict_types=1); -namespace BitBag\SyliusCmsPlugin\Importer; +namespace Sylius\CmsPlugin\Importer; -use BitBag\SyliusCmsPlugin\Entity\BlockInterface; -use BitBag\SyliusCmsPlugin\Repository\BlockRepositoryInterface; -use BitBag\SyliusCmsPlugin\Resolver\Importer\ImporterChannelsResolverInterface; -use BitBag\SyliusCmsPlugin\Resolver\Importer\ImporterCollectionsResolverInterface; -use BitBag\SyliusCmsPlugin\Resolver\Importer\ImporterLocalesResolverInterface; -use BitBag\SyliusCmsPlugin\Resolver\Importer\ImporterProductsInTaxonsResolverInterface; -use BitBag\SyliusCmsPlugin\Resolver\Importer\ImporterProductsResolverInterface; -use BitBag\SyliusCmsPlugin\Resolver\Importer\ImporterTaxonsResolverInterface; -use BitBag\SyliusCmsPlugin\Resolver\ResourceResolverInterface; +use Sylius\CmsPlugin\Entity\BlockInterface; +use Sylius\CmsPlugin\Repository\BlockRepositoryInterface; +use Sylius\CmsPlugin\Resolver\Importer\ImporterChannelsResolverInterface; +use Sylius\CmsPlugin\Resolver\Importer\ImporterCollectionsResolverInterface; +use Sylius\CmsPlugin\Resolver\Importer\ImporterLocalesResolverInterface; +use Sylius\CmsPlugin\Resolver\Importer\ImporterProductsInTaxonsResolverInterface; +use Sylius\CmsPlugin\Resolver\Importer\ImporterProductsResolverInterface; +use Sylius\CmsPlugin\Resolver\Importer\ImporterTaxonsResolverInterface; +use Sylius\CmsPlugin\Resolver\ResourceResolverInterface; use Symfony\Component\Validator\Validator\ValidatorInterface; use Webmozart\Assert\Assert; diff --git a/src/Importer/BlockImporterInterface.php b/src/Importer/BlockImporterInterface.php index fce4522af..b488dd728 100644 --- a/src/Importer/BlockImporterInterface.php +++ b/src/Importer/BlockImporterInterface.php @@ -8,7 +8,7 @@ declare(strict_types=1); -namespace BitBag\SyliusCmsPlugin\Importer; +namespace Sylius\CmsPlugin\Importer; interface BlockImporterInterface extends ImporterInterface { diff --git a/src/Importer/ImporterChain.php b/src/Importer/ImporterChain.php index b301f479d..cc9c6931a 100644 --- a/src/Importer/ImporterChain.php +++ b/src/Importer/ImporterChain.php @@ -8,7 +8,7 @@ declare(strict_types=1); -namespace BitBag\SyliusCmsPlugin\Importer; +namespace Sylius\CmsPlugin\Importer; final class ImporterChain implements ImporterChainInterface { diff --git a/src/Importer/ImporterChainInterface.php b/src/Importer/ImporterChainInterface.php index 2cdcd369d..f432070e3 100644 --- a/src/Importer/ImporterChainInterface.php +++ b/src/Importer/ImporterChainInterface.php @@ -8,7 +8,7 @@ declare(strict_types=1); -namespace BitBag\SyliusCmsPlugin\Importer; +namespace Sylius\CmsPlugin\Importer; interface ImporterChainInterface { diff --git a/src/Importer/ImporterInterface.php b/src/Importer/ImporterInterface.php index d19e93fac..40943d4ca 100755 --- a/src/Importer/ImporterInterface.php +++ b/src/Importer/ImporterInterface.php @@ -8,7 +8,7 @@ declare(strict_types=1); -namespace BitBag\SyliusCmsPlugin\Importer; +namespace Sylius\CmsPlugin\Importer; interface ImporterInterface { diff --git a/src/Importer/MediaImporter.php b/src/Importer/MediaImporter.php index 8c0199831..81071ad9e 100644 --- a/src/Importer/MediaImporter.php +++ b/src/Importer/MediaImporter.php @@ -8,12 +8,12 @@ declare(strict_types=1); -namespace BitBag\SyliusCmsPlugin\Importer; +namespace Sylius\CmsPlugin\Importer; -use BitBag\SyliusCmsPlugin\Entity\MediaInterface; -use BitBag\SyliusCmsPlugin\Repository\MediaRepositoryInterface; -use BitBag\SyliusCmsPlugin\Resolver\Importer\ImporterCollectionsResolverInterface; -use BitBag\SyliusCmsPlugin\Resolver\ResourceResolverInterface; +use Sylius\CmsPlugin\Entity\MediaInterface; +use Sylius\CmsPlugin\Repository\MediaRepositoryInterface; +use Sylius\CmsPlugin\Resolver\Importer\ImporterCollectionsResolverInterface; +use Sylius\CmsPlugin\Resolver\ResourceResolverInterface; use Sylius\Component\Locale\Context\LocaleContextInterface; use Symfony\Component\Validator\Validator\ValidatorInterface; use Webmozart\Assert\Assert; diff --git a/src/Importer/MediaImporterInterface.php b/src/Importer/MediaImporterInterface.php index 2d20980f5..a7f8dc275 100644 --- a/src/Importer/MediaImporterInterface.php +++ b/src/Importer/MediaImporterInterface.php @@ -8,7 +8,7 @@ declare(strict_types=1); -namespace BitBag\SyliusCmsPlugin\Importer; +namespace Sylius\CmsPlugin\Importer; interface MediaImporterInterface extends ImporterInterface { diff --git a/src/Importer/PageImporter.php b/src/Importer/PageImporter.php index 44b4a48c2..93ffddbba 100644 --- a/src/Importer/PageImporter.php +++ b/src/Importer/PageImporter.php @@ -8,13 +8,13 @@ declare(strict_types=1); -namespace BitBag\SyliusCmsPlugin\Importer; +namespace Sylius\CmsPlugin\Importer; -use BitBag\SyliusCmsPlugin\Entity\PageInterface; -use BitBag\SyliusCmsPlugin\Resolver\Importer\ImporterChannelsResolverInterface; -use BitBag\SyliusCmsPlugin\Resolver\Importer\ImporterCollectionsResolverInterface; -use BitBag\SyliusCmsPlugin\Resolver\ResourceResolverInterface; use Doctrine\ORM\EntityManagerInterface; +use Sylius\CmsPlugin\Entity\PageInterface; +use Sylius\CmsPlugin\Resolver\Importer\ImporterChannelsResolverInterface; +use Sylius\CmsPlugin\Resolver\Importer\ImporterCollectionsResolverInterface; +use Sylius\CmsPlugin\Resolver\ResourceResolverInterface; use Sylius\Component\Locale\Context\LocaleContextInterface; use Symfony\Component\Validator\Validator\ValidatorInterface; use Webmozart\Assert\Assert; diff --git a/src/Importer/PageImporterInterface.php b/src/Importer/PageImporterInterface.php index ec3da1320..10196cbb0 100644 --- a/src/Importer/PageImporterInterface.php +++ b/src/Importer/PageImporterInterface.php @@ -8,7 +8,7 @@ declare(strict_types=1); -namespace BitBag\SyliusCmsPlugin\Importer; +namespace Sylius\CmsPlugin\Importer; interface PageImporterInterface extends ImporterInterface { diff --git a/src/MediaProvider/FilenameHelper.php b/src/MediaProvider/FilenameHelper.php index 64cb29657..a5fb0e29f 100644 --- a/src/MediaProvider/FilenameHelper.php +++ b/src/MediaProvider/FilenameHelper.php @@ -8,7 +8,7 @@ declare(strict_types=1); -namespace BitBag\SyliusCmsPlugin\MediaProvider; +namespace Sylius\CmsPlugin\MediaProvider; final class FilenameHelper { diff --git a/src/MediaProvider/GenericProvider.php b/src/MediaProvider/GenericProvider.php index 465b0368e..3cc22e9ec 100755 --- a/src/MediaProvider/GenericProvider.php +++ b/src/MediaProvider/GenericProvider.php @@ -8,10 +8,10 @@ declare(strict_types=1); -namespace BitBag\SyliusCmsPlugin\MediaProvider; +namespace Sylius\CmsPlugin\MediaProvider; -use BitBag\SyliusCmsPlugin\Entity\MediaInterface; -use BitBag\SyliusCmsPlugin\Uploader\MediaUploaderInterface; +use Sylius\CmsPlugin\Entity\MediaInterface; +use Sylius\CmsPlugin\Uploader\MediaUploaderInterface; use Twig\Environment; final class GenericProvider implements ProviderInterface diff --git a/src/MediaProvider/ProviderInterface.php b/src/MediaProvider/ProviderInterface.php index a793fbf09..d47f2d0dc 100644 --- a/src/MediaProvider/ProviderInterface.php +++ b/src/MediaProvider/ProviderInterface.php @@ -8,9 +8,9 @@ declare(strict_types=1); -namespace BitBag\SyliusCmsPlugin\MediaProvider; +namespace Sylius\CmsPlugin\MediaProvider; -use BitBag\SyliusCmsPlugin\Entity\MediaInterface; +use Sylius\CmsPlugin\Entity\MediaInterface; interface ProviderInterface { diff --git a/src/Menu/ContentManagementMenuBuilder.php b/src/Menu/ContentManagementMenuBuilder.php index 537637026..b31bbc82c 100755 --- a/src/Menu/ContentManagementMenuBuilder.php +++ b/src/Menu/ContentManagementMenuBuilder.php @@ -8,7 +8,7 @@ declare(strict_types=1); -namespace BitBag\SyliusCmsPlugin\Menu; +namespace Sylius\CmsPlugin\Menu; use Sylius\Bundle\UiBundle\Menu\Event\MenuBuilderEvent; diff --git a/src/Menu/MenuReorder.php b/src/Menu/MenuReorder.php index 283d37028..f574de4c2 100644 --- a/src/Menu/MenuReorder.php +++ b/src/Menu/MenuReorder.php @@ -8,7 +8,7 @@ declare(strict_types=1); -namespace BitBag\SyliusCmsPlugin\Menu; +namespace Sylius\CmsPlugin\Menu; use Knp\Menu\ItemInterface; diff --git a/src/Menu/MenuReorderInterface.php b/src/Menu/MenuReorderInterface.php index 674b4be6f..13af32899 100644 --- a/src/Menu/MenuReorderInterface.php +++ b/src/Menu/MenuReorderInterface.php @@ -8,7 +8,7 @@ declare(strict_types=1); -namespace BitBag\SyliusCmsPlugin\Menu; +namespace Sylius\CmsPlugin\Menu; use Knp\Menu\ItemInterface; diff --git a/src/Migrations/Version20230524102024.php b/src/Migrations/Version20230524102024.php index 3e1ba9d8b..364f87ad4 100644 --- a/src/Migrations/Version20230524102024.php +++ b/src/Migrations/Version20230524102024.php @@ -8,7 +8,7 @@ declare(strict_types=1); -namespace BitBag\SyliusCmsPlugin\Migrations; +namespace Sylius\CmsPlugin\Migrations; use Doctrine\DBAL\Schema\Schema; use Doctrine\Migrations\AbstractMigration; diff --git a/src/Migrations/Version20240618091634.php b/src/Migrations/Version20240618091634.php index e068f5f35..968a7168c 100644 --- a/src/Migrations/Version20240618091634.php +++ b/src/Migrations/Version20240618091634.php @@ -8,7 +8,7 @@ declare(strict_types=1); -namespace BitBag\SyliusCmsPlugin\Migrations; +namespace Sylius\CmsPlugin\Migrations; use Doctrine\DBAL\Schema\Schema; use Doctrine\Migrations\AbstractMigration; diff --git a/src/Migrations/Version20240701100702.php b/src/Migrations/Version20240701100702.php index ae5b03b22..ee3207dff 100644 --- a/src/Migrations/Version20240701100702.php +++ b/src/Migrations/Version20240701100702.php @@ -8,7 +8,7 @@ declare(strict_types=1); -namespace BitBag\SyliusCmsPlugin\Migrations; +namespace Sylius\CmsPlugin\Migrations; use Doctrine\DBAL\Schema\Schema; use Doctrine\Migrations\AbstractMigration; diff --git a/src/Migrations/Version20240701104206.php b/src/Migrations/Version20240701104206.php index 9a6d4ea3e..3880c02e2 100644 --- a/src/Migrations/Version20240701104206.php +++ b/src/Migrations/Version20240701104206.php @@ -8,7 +8,7 @@ declare(strict_types=1); -namespace BitBag\SyliusCmsPlugin\Migrations; +namespace Sylius\CmsPlugin\Migrations; use Doctrine\DBAL\Schema\Schema; use Doctrine\Migrations\AbstractMigration; diff --git a/src/Migrations/Version20240703083513.php b/src/Migrations/Version20240703083513.php index 3d233269e..092d5ba68 100644 --- a/src/Migrations/Version20240703083513.php +++ b/src/Migrations/Version20240703083513.php @@ -8,7 +8,7 @@ declare(strict_types=1); -namespace BitBag\SyliusCmsPlugin\Migrations; +namespace Sylius\CmsPlugin\Migrations; use Doctrine\DBAL\Schema\Schema; use Doctrine\Migrations\AbstractMigration; diff --git a/src/Migrations/Version20240715083336.php b/src/Migrations/Version20240715083336.php index 98bb64328..8ff904b7e 100644 --- a/src/Migrations/Version20240715083336.php +++ b/src/Migrations/Version20240715083336.php @@ -8,7 +8,7 @@ declare(strict_types=1); -namespace BitBag\SyliusCmsPlugin\Migrations; +namespace Sylius\CmsPlugin\Migrations; use Doctrine\DBAL\Schema\Schema; use Doctrine\Migrations\AbstractMigration; diff --git a/src/Migrations/Version20240719070318.php b/src/Migrations/Version20240719070318.php index dbbccf8df..97d635b72 100644 --- a/src/Migrations/Version20240719070318.php +++ b/src/Migrations/Version20240719070318.php @@ -8,7 +8,7 @@ declare(strict_types=1); -namespace BitBag\SyliusCmsPlugin\Migrations; +namespace Sylius\CmsPlugin\Migrations; use Doctrine\DBAL\Schema\Schema; use Doctrine\Migrations\AbstractMigration; diff --git a/src/Migrations/Version20240725064430.php b/src/Migrations/Version20240725064430.php index 28a60ba54..fb78bc10f 100644 --- a/src/Migrations/Version20240725064430.php +++ b/src/Migrations/Version20240725064430.php @@ -8,7 +8,7 @@ declare(strict_types=1); -namespace BitBag\SyliusCmsPlugin\Migrations; +namespace Sylius\CmsPlugin\Migrations; use Doctrine\DBAL\Schema\Schema; use Doctrine\Migrations\AbstractMigration; diff --git a/src/Migrations/Version20240730084203.php b/src/Migrations/Version20240730084203.php index 389e1ddd7..0a13b892d 100644 --- a/src/Migrations/Version20240730084203.php +++ b/src/Migrations/Version20240730084203.php @@ -8,7 +8,7 @@ declare(strict_types=1); -namespace BitBag\SyliusCmsPlugin\Migrations; +namespace Sylius\CmsPlugin\Migrations; use Doctrine\DBAL\Schema\Schema; use Doctrine\Migrations\AbstractMigration; diff --git a/src/Migrations/Version20240808102216.php b/src/Migrations/Version20240808102216.php index 22281e163..dc9ac2146 100644 --- a/src/Migrations/Version20240808102216.php +++ b/src/Migrations/Version20240808102216.php @@ -8,7 +8,7 @@ declare(strict_types=1); -namespace BitBag\SyliusCmsPlugin\Migrations; +namespace Sylius\CmsPlugin\Migrations; use Doctrine\DBAL\Schema\Schema; use Doctrine\Migrations\AbstractMigration; diff --git a/src/Migrations/Version20240809091751.php b/src/Migrations/Version20240809091751.php index 264534adb..5f53a7b79 100644 --- a/src/Migrations/Version20240809091751.php +++ b/src/Migrations/Version20240809091751.php @@ -8,7 +8,7 @@ declare(strict_types=1); -namespace BitBag\SyliusCmsPlugin\Migrations; +namespace Sylius\CmsPlugin\Migrations; use Doctrine\DBAL\Schema\Schema; use Doctrine\Migrations\AbstractMigration; diff --git a/src/Processor/ImportProcessor.php b/src/Processor/ImportProcessor.php index 64792f732..98b36279b 100644 --- a/src/Processor/ImportProcessor.php +++ b/src/Processor/ImportProcessor.php @@ -8,12 +8,12 @@ declare(strict_types=1); -namespace BitBag\SyliusCmsPlugin\Processor; +namespace Sylius\CmsPlugin\Processor; -use BitBag\SyliusCmsPlugin\Exception\ImportFailedException; -use BitBag\SyliusCmsPlugin\Importer\ImporterChainInterface; -use BitBag\SyliusCmsPlugin\Reader\ReaderInterface; use Doctrine\ORM\EntityManagerInterface; +use Sylius\CmsPlugin\Exception\ImportFailedException; +use Sylius\CmsPlugin\Importer\ImporterChainInterface; +use Sylius\CmsPlugin\Reader\ReaderInterface; final class ImportProcessor implements ImportProcessorInterface { diff --git a/src/Processor/ImportProcessorInterface.php b/src/Processor/ImportProcessorInterface.php index 325e045a6..a36271f88 100644 --- a/src/Processor/ImportProcessorInterface.php +++ b/src/Processor/ImportProcessorInterface.php @@ -8,7 +8,7 @@ declare(strict_types=1); -namespace BitBag\SyliusCmsPlugin\Processor; +namespace Sylius\CmsPlugin\Processor; interface ImportProcessorInterface { diff --git a/src/Reader/CsvReader.php b/src/Reader/CsvReader.php index 3dd70e2ee..5b4ef1cd1 100755 --- a/src/Reader/CsvReader.php +++ b/src/Reader/CsvReader.php @@ -8,7 +8,7 @@ declare(strict_types=1); -namespace BitBag\SyliusCmsPlugin\Reader; +namespace Sylius\CmsPlugin\Reader; use League\Csv\Reader; diff --git a/src/Reader/ReaderInterface.php b/src/Reader/ReaderInterface.php index 71eb55e79..8eb708675 100755 --- a/src/Reader/ReaderInterface.php +++ b/src/Reader/ReaderInterface.php @@ -8,7 +8,7 @@ declare(strict_types=1); -namespace BitBag\SyliusCmsPlugin\Reader; +namespace Sylius\CmsPlugin\Reader; interface ReaderInterface { diff --git a/src/Renderer/Collection/CollectionBlocksRenderer.php b/src/Renderer/Collection/CollectionBlocksRenderer.php index 250cf5709..791699f48 100644 --- a/src/Renderer/Collection/CollectionBlocksRenderer.php +++ b/src/Renderer/Collection/CollectionBlocksRenderer.php @@ -8,12 +8,12 @@ declare(strict_types=1); -namespace BitBag\SyliusCmsPlugin\Renderer\Collection; +namespace Sylius\CmsPlugin\Renderer\Collection; -use BitBag\SyliusCmsPlugin\Entity\BlockInterface; -use BitBag\SyliusCmsPlugin\Entity\CollectionInterface; -use BitBag\SyliusCmsPlugin\Renderer\ContentElementRendererStrategyInterface; -use BitBag\SyliusCmsPlugin\Sorter\SorterById; +use Sylius\CmsPlugin\Entity\BlockInterface; +use Sylius\CmsPlugin\Entity\CollectionInterface; +use Sylius\CmsPlugin\Renderer\ContentElementRendererStrategyInterface; +use Sylius\CmsPlugin\Sorter\SorterById; use Webmozart\Assert\Assert; final class CollectionBlocksRenderer implements CollectionRendererInterface diff --git a/src/Renderer/Collection/CollectionMediaRenderer.php b/src/Renderer/Collection/CollectionMediaRenderer.php index ddb91be54..fbc0a2978 100644 --- a/src/Renderer/Collection/CollectionMediaRenderer.php +++ b/src/Renderer/Collection/CollectionMediaRenderer.php @@ -8,12 +8,12 @@ declare(strict_types=1); -namespace BitBag\SyliusCmsPlugin\Renderer\Collection; +namespace Sylius\CmsPlugin\Renderer\Collection; -use BitBag\SyliusCmsPlugin\Entity\CollectionInterface; -use BitBag\SyliusCmsPlugin\Entity\MediaInterface; -use BitBag\SyliusCmsPlugin\Sorter\SorterById; -use BitBag\SyliusCmsPlugin\Twig\Runtime\RenderMediaRuntimeInterface; +use Sylius\CmsPlugin\Entity\CollectionInterface; +use Sylius\CmsPlugin\Entity\MediaInterface; +use Sylius\CmsPlugin\Sorter\SorterById; +use Sylius\CmsPlugin\Twig\Runtime\RenderMediaRuntimeInterface; use Webmozart\Assert\Assert; final class CollectionMediaRenderer implements CollectionRendererInterface diff --git a/src/Renderer/Collection/CollectionPagesRenderer.php b/src/Renderer/Collection/CollectionPagesRenderer.php index 2b5578cf6..59166324e 100644 --- a/src/Renderer/Collection/CollectionPagesRenderer.php +++ b/src/Renderer/Collection/CollectionPagesRenderer.php @@ -8,12 +8,12 @@ declare(strict_types=1); -namespace BitBag\SyliusCmsPlugin\Renderer\Collection; +namespace Sylius\CmsPlugin\Renderer\Collection; -use BitBag\SyliusCmsPlugin\Entity\CollectionInterface; -use BitBag\SyliusCmsPlugin\Entity\PageInterface; -use BitBag\SyliusCmsPlugin\Renderer\PageLinkRendererInterface; -use BitBag\SyliusCmsPlugin\Sorter\SorterById; +use Sylius\CmsPlugin\Entity\CollectionInterface; +use Sylius\CmsPlugin\Entity\PageInterface; +use Sylius\CmsPlugin\Renderer\PageLinkRendererInterface; +use Sylius\CmsPlugin\Sorter\SorterById; use Webmozart\Assert\Assert; final class CollectionPagesRenderer implements CollectionRendererInterface diff --git a/src/Renderer/Collection/CollectionRendererInterface.php b/src/Renderer/Collection/CollectionRendererInterface.php index 4de98d3dc..d52fc054f 100644 --- a/src/Renderer/Collection/CollectionRendererInterface.php +++ b/src/Renderer/Collection/CollectionRendererInterface.php @@ -8,9 +8,9 @@ declare(strict_types=1); -namespace BitBag\SyliusCmsPlugin\Renderer\Collection; +namespace Sylius\CmsPlugin\Renderer\Collection; -use BitBag\SyliusCmsPlugin\Entity\CollectionInterface; +use Sylius\CmsPlugin\Entity\CollectionInterface; interface CollectionRendererInterface { diff --git a/src/Renderer/CollectionRendererStrategy.php b/src/Renderer/CollectionRendererStrategy.php index 5ec435386..d637c365c 100644 --- a/src/Renderer/CollectionRendererStrategy.php +++ b/src/Renderer/CollectionRendererStrategy.php @@ -8,10 +8,10 @@ declare(strict_types=1); -namespace BitBag\SyliusCmsPlugin\Renderer; +namespace Sylius\CmsPlugin\Renderer; -use BitBag\SyliusCmsPlugin\Entity\CollectionInterface; -use BitBag\SyliusCmsPlugin\Renderer\Collection\CollectionRendererInterface; +use Sylius\CmsPlugin\Entity\CollectionInterface; +use Sylius\CmsPlugin\Renderer\Collection\CollectionRendererInterface; final class CollectionRendererStrategy implements CollectionRendererStrategyInterface { diff --git a/src/Renderer/CollectionRendererStrategyInterface.php b/src/Renderer/CollectionRendererStrategyInterface.php index d8c0c606f..75ef00800 100644 --- a/src/Renderer/CollectionRendererStrategyInterface.php +++ b/src/Renderer/CollectionRendererStrategyInterface.php @@ -8,9 +8,9 @@ declare(strict_types=1); -namespace BitBag\SyliusCmsPlugin\Renderer; +namespace Sylius\CmsPlugin\Renderer; -use BitBag\SyliusCmsPlugin\Entity\CollectionInterface; +use Sylius\CmsPlugin\Entity\CollectionInterface; interface CollectionRendererStrategyInterface { diff --git a/src/Renderer/ContentElement/ContentElementRendererInterface.php b/src/Renderer/ContentElement/ContentElementRendererInterface.php index 9a3f2746f..672e2be1f 100644 --- a/src/Renderer/ContentElement/ContentElementRendererInterface.php +++ b/src/Renderer/ContentElement/ContentElementRendererInterface.php @@ -8,9 +8,9 @@ declare(strict_types=1); -namespace BitBag\SyliusCmsPlugin\Renderer\ContentElement; +namespace Sylius\CmsPlugin\Renderer\ContentElement; -use BitBag\SyliusCmsPlugin\Entity\ContentConfigurationInterface; +use Sylius\CmsPlugin\Entity\ContentConfigurationInterface; interface ContentElementRendererInterface { diff --git a/src/Renderer/ContentElement/HeadingContentElementRenderer.php b/src/Renderer/ContentElement/HeadingContentElementRenderer.php index ef25872bb..11c1b1c35 100644 --- a/src/Renderer/ContentElement/HeadingContentElementRenderer.php +++ b/src/Renderer/ContentElement/HeadingContentElementRenderer.php @@ -8,10 +8,10 @@ declare(strict_types=1); -namespace BitBag\SyliusCmsPlugin\Renderer\ContentElement; +namespace Sylius\CmsPlugin\Renderer\ContentElement; -use BitBag\SyliusCmsPlugin\Entity\ContentConfigurationInterface; -use BitBag\SyliusCmsPlugin\Form\Type\ContentElements\HeadingContentElementType; +use Sylius\CmsPlugin\Entity\ContentConfigurationInterface; +use Sylius\CmsPlugin\Form\Type\ContentElements\HeadingContentElementType; use Twig\Environment; final class HeadingContentElementRenderer implements ContentElementRendererInterface diff --git a/src/Renderer/ContentElement/MultipleMediaContentElementRenderer.php b/src/Renderer/ContentElement/MultipleMediaContentElementRenderer.php index 821d937b4..2a3cb37df 100644 --- a/src/Renderer/ContentElement/MultipleMediaContentElementRenderer.php +++ b/src/Renderer/ContentElement/MultipleMediaContentElementRenderer.php @@ -8,13 +8,13 @@ declare(strict_types=1); -namespace BitBag\SyliusCmsPlugin\Renderer\ContentElement; +namespace Sylius\CmsPlugin\Renderer\ContentElement; -use BitBag\SyliusCmsPlugin\Entity\ContentConfigurationInterface; -use BitBag\SyliusCmsPlugin\Entity\MediaInterface; -use BitBag\SyliusCmsPlugin\Form\Type\ContentElements\MultipleMediaContentElementType; -use BitBag\SyliusCmsPlugin\Repository\MediaRepositoryInterface; -use BitBag\SyliusCmsPlugin\Twig\Runtime\RenderMediaRuntimeInterface; +use Sylius\CmsPlugin\Entity\ContentConfigurationInterface; +use Sylius\CmsPlugin\Entity\MediaInterface; +use Sylius\CmsPlugin\Form\Type\ContentElements\MultipleMediaContentElementType; +use Sylius\CmsPlugin\Repository\MediaRepositoryInterface; +use Sylius\CmsPlugin\Twig\Runtime\RenderMediaRuntimeInterface; use Twig\Environment; final class MultipleMediaContentElementRenderer implements ContentElementRendererInterface diff --git a/src/Renderer/ContentElement/PagesCollectionContentElementRenderer.php b/src/Renderer/ContentElement/PagesCollectionContentElementRenderer.php index a0447596c..786b0910c 100644 --- a/src/Renderer/ContentElement/PagesCollectionContentElementRenderer.php +++ b/src/Renderer/ContentElement/PagesCollectionContentElementRenderer.php @@ -8,12 +8,12 @@ declare(strict_types=1); -namespace BitBag\SyliusCmsPlugin\Renderer\ContentElement; +namespace Sylius\CmsPlugin\Renderer\ContentElement; -use BitBag\SyliusCmsPlugin\Entity\CollectionInterface; -use BitBag\SyliusCmsPlugin\Entity\ContentConfigurationInterface; -use BitBag\SyliusCmsPlugin\Form\Type\ContentElements\PagesCollectionContentElementType; -use BitBag\SyliusCmsPlugin\Repository\CollectionRepositoryInterface; +use Sylius\CmsPlugin\Entity\CollectionInterface; +use Sylius\CmsPlugin\Entity\ContentConfigurationInterface; +use Sylius\CmsPlugin\Form\Type\ContentElements\PagesCollectionContentElementType; +use Sylius\CmsPlugin\Repository\CollectionRepositoryInterface; use Twig\Environment; final class PagesCollectionContentElementRenderer implements ContentElementRendererInterface diff --git a/src/Renderer/ContentElement/ProductsCarouselByTaxonContentElementRenderer.php b/src/Renderer/ContentElement/ProductsCarouselByTaxonContentElementRenderer.php index 14a47edb0..9188e6b43 100644 --- a/src/Renderer/ContentElement/ProductsCarouselByTaxonContentElementRenderer.php +++ b/src/Renderer/ContentElement/ProductsCarouselByTaxonContentElementRenderer.php @@ -8,10 +8,10 @@ declare(strict_types=1); -namespace BitBag\SyliusCmsPlugin\Renderer\ContentElement; +namespace Sylius\CmsPlugin\Renderer\ContentElement; -use BitBag\SyliusCmsPlugin\Entity\ContentConfigurationInterface; -use BitBag\SyliusCmsPlugin\Form\Type\ContentElements\ProductsCarouselByTaxonContentElementType; +use Sylius\CmsPlugin\Entity\ContentConfigurationInterface; +use Sylius\CmsPlugin\Form\Type\ContentElements\ProductsCarouselByTaxonContentElementType; use Sylius\Component\Core\Model\TaxonInterface; use Sylius\Component\Core\Repository\ProductRepositoryInterface; use Sylius\Component\Taxonomy\Repository\TaxonRepositoryInterface; diff --git a/src/Renderer/ContentElement/ProductsCarouselContentElementRenderer.php b/src/Renderer/ContentElement/ProductsCarouselContentElementRenderer.php index 180290e98..62f3e95c8 100644 --- a/src/Renderer/ContentElement/ProductsCarouselContentElementRenderer.php +++ b/src/Renderer/ContentElement/ProductsCarouselContentElementRenderer.php @@ -8,10 +8,10 @@ declare(strict_types=1); -namespace BitBag\SyliusCmsPlugin\Renderer\ContentElement; +namespace Sylius\CmsPlugin\Renderer\ContentElement; -use BitBag\SyliusCmsPlugin\Entity\ContentConfigurationInterface; -use BitBag\SyliusCmsPlugin\Form\Type\ContentElements\ProductsCarouselContentElementType; +use Sylius\CmsPlugin\Entity\ContentConfigurationInterface; +use Sylius\CmsPlugin\Form\Type\ContentElements\ProductsCarouselContentElementType; use Sylius\Component\Core\Repository\ProductRepositoryInterface; use Twig\Environment; diff --git a/src/Renderer/ContentElement/ProductsGridByTaxonContentElementRenderer.php b/src/Renderer/ContentElement/ProductsGridByTaxonContentElementRenderer.php index c704ae08a..4e1e0a921 100644 --- a/src/Renderer/ContentElement/ProductsGridByTaxonContentElementRenderer.php +++ b/src/Renderer/ContentElement/ProductsGridByTaxonContentElementRenderer.php @@ -8,10 +8,10 @@ declare(strict_types=1); -namespace BitBag\SyliusCmsPlugin\Renderer\ContentElement; +namespace Sylius\CmsPlugin\Renderer\ContentElement; -use BitBag\SyliusCmsPlugin\Entity\ContentConfigurationInterface; -use BitBag\SyliusCmsPlugin\Form\Type\ContentElements\ProductsGridByTaxonContentElementType; +use Sylius\CmsPlugin\Entity\ContentConfigurationInterface; +use Sylius\CmsPlugin\Form\Type\ContentElements\ProductsGridByTaxonContentElementType; use Sylius\Component\Core\Model\TaxonInterface; use Sylius\Component\Core\Repository\ProductRepositoryInterface; use Sylius\Component\Taxonomy\Repository\TaxonRepositoryInterface; diff --git a/src/Renderer/ContentElement/ProductsGridContentElementRenderer.php b/src/Renderer/ContentElement/ProductsGridContentElementRenderer.php index 1b24a451f..1daae8317 100644 --- a/src/Renderer/ContentElement/ProductsGridContentElementRenderer.php +++ b/src/Renderer/ContentElement/ProductsGridContentElementRenderer.php @@ -8,10 +8,10 @@ declare(strict_types=1); -namespace BitBag\SyliusCmsPlugin\Renderer\ContentElement; +namespace Sylius\CmsPlugin\Renderer\ContentElement; -use BitBag\SyliusCmsPlugin\Entity\ContentConfigurationInterface; -use BitBag\SyliusCmsPlugin\Form\Type\ContentElements\ProductsGridContentElementType; +use Sylius\CmsPlugin\Entity\ContentConfigurationInterface; +use Sylius\CmsPlugin\Form\Type\ContentElements\ProductsGridContentElementType; use Sylius\Component\Core\Repository\ProductRepositoryInterface; use Twig\Environment; diff --git a/src/Renderer/ContentElement/SingleMediaContentElementRenderer.php b/src/Renderer/ContentElement/SingleMediaContentElementRenderer.php index 348b705ed..d013f115a 100644 --- a/src/Renderer/ContentElement/SingleMediaContentElementRenderer.php +++ b/src/Renderer/ContentElement/SingleMediaContentElementRenderer.php @@ -8,12 +8,12 @@ declare(strict_types=1); -namespace BitBag\SyliusCmsPlugin\Renderer\ContentElement; +namespace Sylius\CmsPlugin\Renderer\ContentElement; -use BitBag\SyliusCmsPlugin\Entity\ContentConfigurationInterface; -use BitBag\SyliusCmsPlugin\Form\Type\ContentElements\SingleMediaContentElementType; -use BitBag\SyliusCmsPlugin\Repository\MediaRepositoryInterface; -use BitBag\SyliusCmsPlugin\Twig\Runtime\RenderMediaRuntimeInterface; +use Sylius\CmsPlugin\Entity\ContentConfigurationInterface; +use Sylius\CmsPlugin\Form\Type\ContentElements\SingleMediaContentElementType; +use Sylius\CmsPlugin\Repository\MediaRepositoryInterface; +use Sylius\CmsPlugin\Twig\Runtime\RenderMediaRuntimeInterface; use Twig\Environment; final class SingleMediaContentElementRenderer implements ContentElementRendererInterface diff --git a/src/Renderer/ContentElement/SpacerContentElementRenderer.php b/src/Renderer/ContentElement/SpacerContentElementRenderer.php index ed52840a3..b744fb873 100644 --- a/src/Renderer/ContentElement/SpacerContentElementRenderer.php +++ b/src/Renderer/ContentElement/SpacerContentElementRenderer.php @@ -8,10 +8,10 @@ declare(strict_types=1); -namespace BitBag\SyliusCmsPlugin\Renderer\ContentElement; +namespace Sylius\CmsPlugin\Renderer\ContentElement; -use BitBag\SyliusCmsPlugin\Entity\ContentConfigurationInterface; -use BitBag\SyliusCmsPlugin\Form\Type\ContentElements\SpacerContentElementType; +use Sylius\CmsPlugin\Entity\ContentConfigurationInterface; +use Sylius\CmsPlugin\Form\Type\ContentElements\SpacerContentElementType; use Twig\Environment; final class SpacerContentElementRenderer implements ContentElementRendererInterface diff --git a/src/Renderer/ContentElement/TaxonsListContentElementRenderer.php b/src/Renderer/ContentElement/TaxonsListContentElementRenderer.php index de28c149a..92c9854ff 100644 --- a/src/Renderer/ContentElement/TaxonsListContentElementRenderer.php +++ b/src/Renderer/ContentElement/TaxonsListContentElementRenderer.php @@ -8,10 +8,10 @@ declare(strict_types=1); -namespace BitBag\SyliusCmsPlugin\Renderer\ContentElement; +namespace Sylius\CmsPlugin\Renderer\ContentElement; -use BitBag\SyliusCmsPlugin\Entity\ContentConfigurationInterface; -use BitBag\SyliusCmsPlugin\Form\Type\ContentElements\TaxonsListContentElementType; +use Sylius\CmsPlugin\Entity\ContentConfigurationInterface; +use Sylius\CmsPlugin\Form\Type\ContentElements\TaxonsListContentElementType; use Sylius\Component\Taxonomy\Repository\TaxonRepositoryInterface; use Twig\Environment; diff --git a/src/Renderer/ContentElement/TextareaContentElementRenderer.php b/src/Renderer/ContentElement/TextareaContentElementRenderer.php index 46674d8ec..8ad528e83 100644 --- a/src/Renderer/ContentElement/TextareaContentElementRenderer.php +++ b/src/Renderer/ContentElement/TextareaContentElementRenderer.php @@ -8,10 +8,10 @@ declare(strict_types=1); -namespace BitBag\SyliusCmsPlugin\Renderer\ContentElement; +namespace Sylius\CmsPlugin\Renderer\ContentElement; -use BitBag\SyliusCmsPlugin\Entity\ContentConfigurationInterface; -use BitBag\SyliusCmsPlugin\Form\Type\ContentElements\TextareaContentElementType; +use Sylius\CmsPlugin\Entity\ContentConfigurationInterface; +use Sylius\CmsPlugin\Form\Type\ContentElements\TextareaContentElementType; use Twig\Environment; final class TextareaContentElementRenderer implements ContentElementRendererInterface diff --git a/src/Renderer/ContentElementRendererStrategy.php b/src/Renderer/ContentElementRendererStrategy.php index 7dd645e35..44922c91e 100644 --- a/src/Renderer/ContentElementRendererStrategy.php +++ b/src/Renderer/ContentElementRendererStrategy.php @@ -8,12 +8,12 @@ declare(strict_types=1); -namespace BitBag\SyliusCmsPlugin\Renderer; +namespace Sylius\CmsPlugin\Renderer; -use BitBag\SyliusCmsPlugin\Entity\BlockInterface; -use BitBag\SyliusCmsPlugin\Entity\PageInterface; -use BitBag\SyliusCmsPlugin\Renderer\ContentElement\ContentElementRendererInterface; -use BitBag\SyliusCmsPlugin\Twig\Parser\ContentParserInterface; +use Sylius\CmsPlugin\Entity\BlockInterface; +use Sylius\CmsPlugin\Entity\PageInterface; +use Sylius\CmsPlugin\Renderer\ContentElement\ContentElementRendererInterface; +use Sylius\CmsPlugin\Twig\Parser\ContentParserInterface; final class ContentElementRendererStrategy implements ContentElementRendererStrategyInterface { diff --git a/src/Renderer/ContentElementRendererStrategyInterface.php b/src/Renderer/ContentElementRendererStrategyInterface.php index e895b8bf1..1c485f650 100644 --- a/src/Renderer/ContentElementRendererStrategyInterface.php +++ b/src/Renderer/ContentElementRendererStrategyInterface.php @@ -8,10 +8,10 @@ declare(strict_types=1); -namespace BitBag\SyliusCmsPlugin\Renderer; +namespace Sylius\CmsPlugin\Renderer; -use BitBag\SyliusCmsPlugin\Entity\BlockInterface; -use BitBag\SyliusCmsPlugin\Entity\PageInterface; +use Sylius\CmsPlugin\Entity\BlockInterface; +use Sylius\CmsPlugin\Entity\PageInterface; interface ContentElementRendererStrategyInterface { diff --git a/src/Renderer/PageLinkRenderer.php b/src/Renderer/PageLinkRenderer.php index c218462e6..00327c3e3 100644 --- a/src/Renderer/PageLinkRenderer.php +++ b/src/Renderer/PageLinkRenderer.php @@ -8,9 +8,9 @@ declare(strict_types=1); -namespace BitBag\SyliusCmsPlugin\Renderer; +namespace Sylius\CmsPlugin\Renderer; -use BitBag\SyliusCmsPlugin\Entity\PageInterface; +use Sylius\CmsPlugin\Entity\PageInterface; use Symfony\Component\Routing\Generator\UrlGeneratorInterface; use Twig\Environment; diff --git a/src/Renderer/PageLinkRendererInterface.php b/src/Renderer/PageLinkRendererInterface.php index a7a80001b..f9280b603 100644 --- a/src/Renderer/PageLinkRendererInterface.php +++ b/src/Renderer/PageLinkRendererInterface.php @@ -8,9 +8,9 @@ declare(strict_types=1); -namespace BitBag\SyliusCmsPlugin\Renderer; +namespace Sylius\CmsPlugin\Renderer; -use BitBag\SyliusCmsPlugin\Entity\PageInterface; +use Sylius\CmsPlugin\Entity\PageInterface; interface PageLinkRendererInterface { diff --git a/src/Repository/BlockRepository.php b/src/Repository/BlockRepository.php index f6b7e71a1..d988fc2b0 100755 --- a/src/Repository/BlockRepository.php +++ b/src/Repository/BlockRepository.php @@ -8,11 +8,11 @@ declare(strict_types=1); -namespace BitBag\SyliusCmsPlugin\Repository; +namespace Sylius\CmsPlugin\Repository; -use BitBag\SyliusCmsPlugin\Entity\BlockInterface; use Doctrine\ORM\QueryBuilder; use Sylius\Bundle\ResourceBundle\Doctrine\ORM\EntityRepository; +use Sylius\CmsPlugin\Entity\BlockInterface; class BlockRepository extends EntityRepository implements BlockRepositoryInterface { diff --git a/src/Repository/BlockRepositoryInterface.php b/src/Repository/BlockRepositoryInterface.php index 6ea8534d1..f01b6356e 100755 --- a/src/Repository/BlockRepositoryInterface.php +++ b/src/Repository/BlockRepositoryInterface.php @@ -8,9 +8,9 @@ declare(strict_types=1); -namespace BitBag\SyliusCmsPlugin\Repository; +namespace Sylius\CmsPlugin\Repository; -use BitBag\SyliusCmsPlugin\Entity\BlockInterface; +use Sylius\CmsPlugin\Entity\BlockInterface; use Sylius\Component\Resource\Repository\RepositoryInterface; interface BlockRepositoryInterface extends RepositoryInterface diff --git a/src/Repository/CollectionRepository.php b/src/Repository/CollectionRepository.php index 83ed43ba8..dcaf0738c 100755 --- a/src/Repository/CollectionRepository.php +++ b/src/Repository/CollectionRepository.php @@ -8,10 +8,10 @@ declare(strict_types=1); -namespace BitBag\SyliusCmsPlugin\Repository; +namespace Sylius\CmsPlugin\Repository; -use BitBag\SyliusCmsPlugin\Entity\CollectionInterface; use Sylius\Bundle\ResourceBundle\Doctrine\ORM\EntityRepository; +use Sylius\CmsPlugin\Entity\CollectionInterface; class CollectionRepository extends EntityRepository implements CollectionRepositoryInterface { diff --git a/src/Repository/CollectionRepositoryInterface.php b/src/Repository/CollectionRepositoryInterface.php index 62f099b49..e97c0f7c4 100755 --- a/src/Repository/CollectionRepositoryInterface.php +++ b/src/Repository/CollectionRepositoryInterface.php @@ -8,9 +8,9 @@ declare(strict_types=1); -namespace BitBag\SyliusCmsPlugin\Repository; +namespace Sylius\CmsPlugin\Repository; -use BitBag\SyliusCmsPlugin\Entity\CollectionInterface; +use Sylius\CmsPlugin\Entity\CollectionInterface; use Sylius\Component\Resource\Repository\RepositoryInterface; interface CollectionRepositoryInterface extends RepositoryInterface diff --git a/src/Repository/ContentConfigurationRepository.php b/src/Repository/ContentConfigurationRepository.php index 66c00ef0a..6692b7485 100755 --- a/src/Repository/ContentConfigurationRepository.php +++ b/src/Repository/ContentConfigurationRepository.php @@ -8,7 +8,7 @@ declare(strict_types=1); -namespace BitBag\SyliusCmsPlugin\Repository; +namespace Sylius\CmsPlugin\Repository; use Sylius\Bundle\ResourceBundle\Doctrine\ORM\EntityRepository; diff --git a/src/Repository/MediaRepository.php b/src/Repository/MediaRepository.php index 8b3fd5460..376a0445e 100755 --- a/src/Repository/MediaRepository.php +++ b/src/Repository/MediaRepository.php @@ -8,11 +8,11 @@ declare(strict_types=1); -namespace BitBag\SyliusCmsPlugin\Repository; +namespace Sylius\CmsPlugin\Repository; -use BitBag\SyliusCmsPlugin\Entity\MediaInterface; use Doctrine\ORM\QueryBuilder; use Sylius\Bundle\ResourceBundle\Doctrine\ORM\EntityRepository; +use Sylius\CmsPlugin\Entity\MediaInterface; class MediaRepository extends EntityRepository implements MediaRepositoryInterface { diff --git a/src/Repository/MediaRepositoryInterface.php b/src/Repository/MediaRepositoryInterface.php index 30944bc0e..8ffc7694d 100755 --- a/src/Repository/MediaRepositoryInterface.php +++ b/src/Repository/MediaRepositoryInterface.php @@ -8,10 +8,10 @@ declare(strict_types=1); -namespace BitBag\SyliusCmsPlugin\Repository; +namespace Sylius\CmsPlugin\Repository; -use BitBag\SyliusCmsPlugin\Entity\MediaInterface; use Doctrine\ORM\QueryBuilder; +use Sylius\CmsPlugin\Entity\MediaInterface; use Sylius\Component\Resource\Repository\RepositoryInterface; interface MediaRepositoryInterface extends RepositoryInterface diff --git a/src/Repository/PageRepository.php b/src/Repository/PageRepository.php index 95b6b70e6..04840092b 100755 --- a/src/Repository/PageRepository.php +++ b/src/Repository/PageRepository.php @@ -8,11 +8,11 @@ declare(strict_types=1); -namespace BitBag\SyliusCmsPlugin\Repository; +namespace Sylius\CmsPlugin\Repository; -use BitBag\SyliusCmsPlugin\Entity\PageInterface; use Doctrine\ORM\QueryBuilder; use Sylius\Bundle\ResourceBundle\Doctrine\ORM\EntityRepository; +use Sylius\CmsPlugin\Entity\PageInterface; class PageRepository extends EntityRepository implements PageRepositoryInterface { diff --git a/src/Repository/PageRepositoryInterface.php b/src/Repository/PageRepositoryInterface.php index 548319089..232bc8aa3 100755 --- a/src/Repository/PageRepositoryInterface.php +++ b/src/Repository/PageRepositoryInterface.php @@ -8,10 +8,10 @@ declare(strict_types=1); -namespace BitBag\SyliusCmsPlugin\Repository; +namespace Sylius\CmsPlugin\Repository; -use BitBag\SyliusCmsPlugin\Entity\PageInterface; use Doctrine\ORM\QueryBuilder; +use Sylius\CmsPlugin\Entity\PageInterface; use Sylius\Component\Resource\Repository\RepositoryInterface; interface PageRepositoryInterface extends RepositoryInterface diff --git a/src/Repository/TemplateRepository.php b/src/Repository/TemplateRepository.php index 47304675d..4f916b8c8 100755 --- a/src/Repository/TemplateRepository.php +++ b/src/Repository/TemplateRepository.php @@ -8,7 +8,7 @@ declare(strict_types=1); -namespace BitBag\SyliusCmsPlugin\Repository; +namespace Sylius\CmsPlugin\Repository; use Sylius\Bundle\ResourceBundle\Doctrine\ORM\EntityRepository; diff --git a/src/Repository/TemplateRepositoryInterface.php b/src/Repository/TemplateRepositoryInterface.php index b0bffbcbe..1b8eec17c 100644 --- a/src/Repository/TemplateRepositoryInterface.php +++ b/src/Repository/TemplateRepositoryInterface.php @@ -8,7 +8,7 @@ declare(strict_types=1); -namespace BitBag\SyliusCmsPlugin\Repository; +namespace Sylius\CmsPlugin\Repository; interface TemplateRepositoryInterface { diff --git a/src/Repository/TranslationBasedAwareTrait.php b/src/Repository/TranslationBasedAwareTrait.php index 20d668536..04c5ddc0c 100644 --- a/src/Repository/TranslationBasedAwareTrait.php +++ b/src/Repository/TranslationBasedAwareTrait.php @@ -8,7 +8,7 @@ declare(strict_types=1); -namespace BitBag\SyliusCmsPlugin\Repository; +namespace Sylius\CmsPlugin\Repository; use Doctrine\ORM\QueryBuilder; diff --git a/src/Resolver/BlockResourceResolver.php b/src/Resolver/BlockResourceResolver.php index 0eae3a8d2..31b938461 100755 --- a/src/Resolver/BlockResourceResolver.php +++ b/src/Resolver/BlockResourceResolver.php @@ -8,11 +8,11 @@ declare(strict_types=1); -namespace BitBag\SyliusCmsPlugin\Resolver; +namespace Sylius\CmsPlugin\Resolver; -use BitBag\SyliusCmsPlugin\Entity\BlockInterface; -use BitBag\SyliusCmsPlugin\Repository\BlockRepositoryInterface; use Psr\Log\LoggerInterface; +use Sylius\CmsPlugin\Entity\BlockInterface; +use Sylius\CmsPlugin\Repository\BlockRepositoryInterface; use Sylius\Component\Channel\Context\ChannelContextInterface; use Sylius\Component\Locale\Context\LocaleContextInterface; use Sylius\Component\Locale\Model\LocaleInterface; diff --git a/src/Resolver/BlockResourceResolverInterface.php b/src/Resolver/BlockResourceResolverInterface.php index cd5317ec2..d36d7f1c5 100755 --- a/src/Resolver/BlockResourceResolverInterface.php +++ b/src/Resolver/BlockResourceResolverInterface.php @@ -8,9 +8,9 @@ declare(strict_types=1); -namespace BitBag\SyliusCmsPlugin\Resolver; +namespace Sylius\CmsPlugin\Resolver; -use BitBag\SyliusCmsPlugin\Entity\BlockInterface; +use Sylius\CmsPlugin\Entity\BlockInterface; interface BlockResourceResolverInterface { diff --git a/src/Resolver/CollectionResourceResolver.php b/src/Resolver/CollectionResourceResolver.php index dd2a59b24..09f2e9e89 100755 --- a/src/Resolver/CollectionResourceResolver.php +++ b/src/Resolver/CollectionResourceResolver.php @@ -8,11 +8,11 @@ declare(strict_types=1); -namespace BitBag\SyliusCmsPlugin\Resolver; +namespace Sylius\CmsPlugin\Resolver; -use BitBag\SyliusCmsPlugin\Entity\CollectionInterface; -use BitBag\SyliusCmsPlugin\Repository\CollectionRepositoryInterface; use Psr\Log\LoggerInterface; +use Sylius\CmsPlugin\Entity\CollectionInterface; +use Sylius\CmsPlugin\Repository\CollectionRepositoryInterface; final class CollectionResourceResolver implements CollectionResourceResolverInterface { diff --git a/src/Resolver/CollectionResourceResolverInterface.php b/src/Resolver/CollectionResourceResolverInterface.php index 4ea8827e0..d38e823d2 100755 --- a/src/Resolver/CollectionResourceResolverInterface.php +++ b/src/Resolver/CollectionResourceResolverInterface.php @@ -8,9 +8,9 @@ declare(strict_types=1); -namespace BitBag\SyliusCmsPlugin\Resolver; +namespace Sylius\CmsPlugin\Resolver; -use BitBag\SyliusCmsPlugin\Entity\CollectionInterface; +use Sylius\CmsPlugin\Entity\CollectionInterface; interface CollectionResourceResolverInterface { diff --git a/src/Resolver/Importer/ImporterChannelsResolver.php b/src/Resolver/Importer/ImporterChannelsResolver.php index 4ac4efc2a..811ce4084 100644 --- a/src/Resolver/Importer/ImporterChannelsResolver.php +++ b/src/Resolver/Importer/ImporterChannelsResolver.php @@ -8,9 +8,9 @@ declare(strict_types=1); -namespace BitBag\SyliusCmsPlugin\Resolver\Importer; +namespace Sylius\CmsPlugin\Resolver\Importer; -use BitBag\SyliusCmsPlugin\Assigner\ChannelsAssignerInterface; +use Sylius\CmsPlugin\Assigner\ChannelsAssignerInterface; use Sylius\Component\Channel\Model\ChannelsAwareInterface; final class ImporterChannelsResolver implements ImporterChannelsResolverInterface diff --git a/src/Resolver/Importer/ImporterChannelsResolverInterface.php b/src/Resolver/Importer/ImporterChannelsResolverInterface.php index 5a4e3f860..7bd078760 100644 --- a/src/Resolver/Importer/ImporterChannelsResolverInterface.php +++ b/src/Resolver/Importer/ImporterChannelsResolverInterface.php @@ -8,7 +8,7 @@ declare(strict_types=1); -namespace BitBag\SyliusCmsPlugin\Resolver\Importer; +namespace Sylius\CmsPlugin\Resolver\Importer; use Sylius\Component\Channel\Model\ChannelsAwareInterface; diff --git a/src/Resolver/Importer/ImporterCollectionsResolver.php b/src/Resolver/Importer/ImporterCollectionsResolver.php index 1850a09cd..373640312 100644 --- a/src/Resolver/Importer/ImporterCollectionsResolver.php +++ b/src/Resolver/Importer/ImporterCollectionsResolver.php @@ -8,10 +8,10 @@ declare(strict_types=1); -namespace BitBag\SyliusCmsPlugin\Resolver\Importer; +namespace Sylius\CmsPlugin\Resolver\Importer; -use BitBag\SyliusCmsPlugin\Assigner\CollectionsAssignerInterface; -use BitBag\SyliusCmsPlugin\Entity\CollectibleInterface; +use Sylius\CmsPlugin\Assigner\CollectionsAssignerInterface; +use Sylius\CmsPlugin\Entity\CollectibleInterface; final class ImporterCollectionsResolver implements ImporterCollectionsResolverInterface { diff --git a/src/Resolver/Importer/ImporterCollectionsResolverInterface.php b/src/Resolver/Importer/ImporterCollectionsResolverInterface.php index 09799ec83..c0576df36 100644 --- a/src/Resolver/Importer/ImporterCollectionsResolverInterface.php +++ b/src/Resolver/Importer/ImporterCollectionsResolverInterface.php @@ -8,9 +8,9 @@ declare(strict_types=1); -namespace BitBag\SyliusCmsPlugin\Resolver\Importer; +namespace Sylius\CmsPlugin\Resolver\Importer; -use BitBag\SyliusCmsPlugin\Entity\CollectibleInterface; +use Sylius\CmsPlugin\Entity\CollectibleInterface; interface ImporterCollectionsResolverInterface { diff --git a/src/Resolver/Importer/ImporterLocalesResolver.php b/src/Resolver/Importer/ImporterLocalesResolver.php index ee4c068db..7790bde29 100644 --- a/src/Resolver/Importer/ImporterLocalesResolver.php +++ b/src/Resolver/Importer/ImporterLocalesResolver.php @@ -8,10 +8,10 @@ declare(strict_types=1); -namespace BitBag\SyliusCmsPlugin\Resolver\Importer; +namespace Sylius\CmsPlugin\Resolver\Importer; -use BitBag\SyliusCmsPlugin\Assigner\LocalesAssignerInterface; -use BitBag\SyliusCmsPlugin\Entity\LocaleAwareInterface; +use Sylius\CmsPlugin\Assigner\LocalesAssignerInterface; +use Sylius\CmsPlugin\Entity\LocaleAwareInterface; final class ImporterLocalesResolver implements ImporterLocalesResolverInterface { diff --git a/src/Resolver/Importer/ImporterLocalesResolverInterface.php b/src/Resolver/Importer/ImporterLocalesResolverInterface.php index 90cb0b253..26909b68e 100644 --- a/src/Resolver/Importer/ImporterLocalesResolverInterface.php +++ b/src/Resolver/Importer/ImporterLocalesResolverInterface.php @@ -8,9 +8,9 @@ declare(strict_types=1); -namespace BitBag\SyliusCmsPlugin\Resolver\Importer; +namespace Sylius\CmsPlugin\Resolver\Importer; -use BitBag\SyliusCmsPlugin\Entity\LocaleAwareInterface; +use Sylius\CmsPlugin\Entity\LocaleAwareInterface; interface ImporterLocalesResolverInterface { diff --git a/src/Resolver/Importer/ImporterProductsInTaxonsResolver.php b/src/Resolver/Importer/ImporterProductsInTaxonsResolver.php index d16608983..c785e217a 100644 --- a/src/Resolver/Importer/ImporterProductsInTaxonsResolver.php +++ b/src/Resolver/Importer/ImporterProductsInTaxonsResolver.php @@ -8,10 +8,10 @@ declare(strict_types=1); -namespace BitBag\SyliusCmsPlugin\Resolver\Importer; +namespace Sylius\CmsPlugin\Resolver\Importer; -use BitBag\SyliusCmsPlugin\Assigner\ProductsInTaxonsAssignerInterface; -use BitBag\SyliusCmsPlugin\Entity\ProductsInTaxonsAwareInterface; +use Sylius\CmsPlugin\Assigner\ProductsInTaxonsAssignerInterface; +use Sylius\CmsPlugin\Entity\ProductsInTaxonsAwareInterface; final class ImporterProductsInTaxonsResolver implements ImporterProductsInTaxonsResolverInterface { diff --git a/src/Resolver/Importer/ImporterProductsInTaxonsResolverInterface.php b/src/Resolver/Importer/ImporterProductsInTaxonsResolverInterface.php index 566a2400a..e292fa46a 100644 --- a/src/Resolver/Importer/ImporterProductsInTaxonsResolverInterface.php +++ b/src/Resolver/Importer/ImporterProductsInTaxonsResolverInterface.php @@ -8,9 +8,9 @@ declare(strict_types=1); -namespace BitBag\SyliusCmsPlugin\Resolver\Importer; +namespace Sylius\CmsPlugin\Resolver\Importer; -use BitBag\SyliusCmsPlugin\Entity\ProductsInTaxonsAwareInterface; +use Sylius\CmsPlugin\Entity\ProductsInTaxonsAwareInterface; interface ImporterProductsInTaxonsResolverInterface { diff --git a/src/Resolver/Importer/ImporterProductsResolver.php b/src/Resolver/Importer/ImporterProductsResolver.php index 3068854a4..aa6a68356 100644 --- a/src/Resolver/Importer/ImporterProductsResolver.php +++ b/src/Resolver/Importer/ImporterProductsResolver.php @@ -8,10 +8,10 @@ declare(strict_types=1); -namespace BitBag\SyliusCmsPlugin\Resolver\Importer; +namespace Sylius\CmsPlugin\Resolver\Importer; -use BitBag\SyliusCmsPlugin\Assigner\ProductsAssignerInterface; -use BitBag\SyliusCmsPlugin\Entity\ProductsAwareInterface; +use Sylius\CmsPlugin\Assigner\ProductsAssignerInterface; +use Sylius\CmsPlugin\Entity\ProductsAwareInterface; final class ImporterProductsResolver implements ImporterProductsResolverInterface { diff --git a/src/Resolver/Importer/ImporterProductsResolverInterface.php b/src/Resolver/Importer/ImporterProductsResolverInterface.php index 325235e22..8ffdf9549 100644 --- a/src/Resolver/Importer/ImporterProductsResolverInterface.php +++ b/src/Resolver/Importer/ImporterProductsResolverInterface.php @@ -8,9 +8,9 @@ declare(strict_types=1); -namespace BitBag\SyliusCmsPlugin\Resolver\Importer; +namespace Sylius\CmsPlugin\Resolver\Importer; -use BitBag\SyliusCmsPlugin\Entity\ProductsAwareInterface; +use Sylius\CmsPlugin\Entity\ProductsAwareInterface; interface ImporterProductsResolverInterface { diff --git a/src/Resolver/Importer/ImporterTaxonsResolver.php b/src/Resolver/Importer/ImporterTaxonsResolver.php index 2ae3bad50..18a6bead6 100644 --- a/src/Resolver/Importer/ImporterTaxonsResolver.php +++ b/src/Resolver/Importer/ImporterTaxonsResolver.php @@ -8,10 +8,10 @@ declare(strict_types=1); -namespace BitBag\SyliusCmsPlugin\Resolver\Importer; +namespace Sylius\CmsPlugin\Resolver\Importer; -use BitBag\SyliusCmsPlugin\Assigner\TaxonsAssignerInterface; -use BitBag\SyliusCmsPlugin\Entity\TaxonAwareInterface; +use Sylius\CmsPlugin\Assigner\TaxonsAssignerInterface; +use Sylius\CmsPlugin\Entity\TaxonAwareInterface; final class ImporterTaxonsResolver implements ImporterTaxonsResolverInterface { diff --git a/src/Resolver/Importer/ImporterTaxonsResolverInterface.php b/src/Resolver/Importer/ImporterTaxonsResolverInterface.php index 98e8f74ee..2192439cc 100644 --- a/src/Resolver/Importer/ImporterTaxonsResolverInterface.php +++ b/src/Resolver/Importer/ImporterTaxonsResolverInterface.php @@ -8,9 +8,9 @@ declare(strict_types=1); -namespace BitBag\SyliusCmsPlugin\Resolver\Importer; +namespace Sylius\CmsPlugin\Resolver\Importer; -use BitBag\SyliusCmsPlugin\Entity\TaxonAwareInterface; +use Sylius\CmsPlugin\Entity\TaxonAwareInterface; interface ImporterTaxonsResolverInterface { diff --git a/src/Resolver/MediaProviderResolver.php b/src/Resolver/MediaProviderResolver.php index 02c129c1e..6b277962c 100755 --- a/src/Resolver/MediaProviderResolver.php +++ b/src/Resolver/MediaProviderResolver.php @@ -8,10 +8,10 @@ declare(strict_types=1); -namespace BitBag\SyliusCmsPlugin\Resolver; +namespace Sylius\CmsPlugin\Resolver; -use BitBag\SyliusCmsPlugin\Entity\MediaInterface; -use BitBag\SyliusCmsPlugin\MediaProvider\ProviderInterface; +use Sylius\CmsPlugin\Entity\MediaInterface; +use Sylius\CmsPlugin\MediaProvider\ProviderInterface; use Sylius\Component\Registry\ServiceRegistryInterface; use Webmozart\Assert\Assert; diff --git a/src/Resolver/MediaProviderResolverInterface.php b/src/Resolver/MediaProviderResolverInterface.php index 876d2cd18..05096ed26 100755 --- a/src/Resolver/MediaProviderResolverInterface.php +++ b/src/Resolver/MediaProviderResolverInterface.php @@ -8,10 +8,10 @@ declare(strict_types=1); -namespace BitBag\SyliusCmsPlugin\Resolver; +namespace Sylius\CmsPlugin\Resolver; -use BitBag\SyliusCmsPlugin\Entity\MediaInterface; -use BitBag\SyliusCmsPlugin\MediaProvider\ProviderInterface; +use Sylius\CmsPlugin\Entity\MediaInterface; +use Sylius\CmsPlugin\MediaProvider\ProviderInterface; interface MediaProviderResolverInterface { diff --git a/src/Resolver/MediaResourceResolver.php b/src/Resolver/MediaResourceResolver.php index c396aa6d4..2ae467dbc 100755 --- a/src/Resolver/MediaResourceResolver.php +++ b/src/Resolver/MediaResourceResolver.php @@ -8,11 +8,11 @@ declare(strict_types=1); -namespace BitBag\SyliusCmsPlugin\Resolver; +namespace Sylius\CmsPlugin\Resolver; -use BitBag\SyliusCmsPlugin\Entity\MediaInterface; -use BitBag\SyliusCmsPlugin\Repository\MediaRepositoryInterface; use Psr\Log\LoggerInterface; +use Sylius\CmsPlugin\Entity\MediaInterface; +use Sylius\CmsPlugin\Repository\MediaRepositoryInterface; use Sylius\Component\Channel\Context\ChannelContextInterface; use Sylius\Component\Locale\Context\LocaleContextInterface; use Webmozart\Assert\Assert; diff --git a/src/Resolver/MediaResourceResolverInterface.php b/src/Resolver/MediaResourceResolverInterface.php index 3d5931ef0..46b560bf7 100755 --- a/src/Resolver/MediaResourceResolverInterface.php +++ b/src/Resolver/MediaResourceResolverInterface.php @@ -8,9 +8,9 @@ declare(strict_types=1); -namespace BitBag\SyliusCmsPlugin\Resolver; +namespace Sylius\CmsPlugin\Resolver; -use BitBag\SyliusCmsPlugin\Entity\MediaInterface; +use Sylius\CmsPlugin\Entity\MediaInterface; interface MediaResourceResolverInterface { diff --git a/src/Resolver/PageResourceResolver.php b/src/Resolver/PageResourceResolver.php index a77b4dd22..b10154906 100755 --- a/src/Resolver/PageResourceResolver.php +++ b/src/Resolver/PageResourceResolver.php @@ -8,11 +8,11 @@ declare(strict_types=1); -namespace BitBag\SyliusCmsPlugin\Resolver; +namespace Sylius\CmsPlugin\Resolver; -use BitBag\SyliusCmsPlugin\Entity\PageInterface; -use BitBag\SyliusCmsPlugin\Repository\PageRepositoryInterface; use Psr\Log\LoggerInterface; +use Sylius\CmsPlugin\Entity\PageInterface; +use Sylius\CmsPlugin\Repository\PageRepositoryInterface; final class PageResourceResolver implements PageResourceResolverInterface { diff --git a/src/Resolver/PageResourceResolverInterface.php b/src/Resolver/PageResourceResolverInterface.php index 5ada14ede..93280f442 100755 --- a/src/Resolver/PageResourceResolverInterface.php +++ b/src/Resolver/PageResourceResolverInterface.php @@ -8,9 +8,9 @@ declare(strict_types=1); -namespace BitBag\SyliusCmsPlugin\Resolver; +namespace Sylius\CmsPlugin\Resolver; -use BitBag\SyliusCmsPlugin\Entity\PageInterface; +use Sylius\CmsPlugin\Entity\PageInterface; interface PageResourceResolverInterface { diff --git a/src/Resolver/ResourceResolver.php b/src/Resolver/ResourceResolver.php index dd54a5776..efb0fb943 100644 --- a/src/Resolver/ResourceResolver.php +++ b/src/Resolver/ResourceResolver.php @@ -8,7 +8,7 @@ declare(strict_types=1); -namespace BitBag\SyliusCmsPlugin\Resolver; +namespace Sylius\CmsPlugin\Resolver; use BadFunctionCallException; use Sylius\Component\Resource\Factory\FactoryInterface; diff --git a/src/Resolver/ResourceResolverInterface.php b/src/Resolver/ResourceResolverInterface.php index 33beb1227..e6b567a4d 100644 --- a/src/Resolver/ResourceResolverInterface.php +++ b/src/Resolver/ResourceResolverInterface.php @@ -8,7 +8,7 @@ declare(strict_types=1); -namespace BitBag\SyliusCmsPlugin\Resolver; +namespace Sylius\CmsPlugin\Resolver; use Sylius\Component\Resource\Model\ResourceInterface; diff --git a/src/Resources/config/config.yml b/src/Resources/config/config.yml index e438cbd5c..a47835790 100755 --- a/src/Resources/config/config.yml +++ b/src/Resources/config/config.yml @@ -22,7 +22,7 @@ jms_serializer: metadata: directories: bitbag-section: - namespace_prefix: "BitBag\\SyliusCmsPlugin" + namespace_prefix: "Sylius\\CmsPlugin" path: "@BitBagSyliusCmsPlugin/Resources/config/serializer" knp_gaufrette: diff --git a/src/Resources/config/doctrine/Block.orm.xml b/src/Resources/config/doctrine/Block.orm.xml index 51f44b567..093549089 100644 --- a/src/Resources/config/doctrine/Block.orm.xml +++ b/src/Resources/config/doctrine/Block.orm.xml @@ -5,7 +5,7 @@ xsi:schemaLocation="https://doctrine-project.org/schemas/orm/doctrine-mapping https://www.doctrine-project.org/schemas/orm/doctrine-mapping.xsd"> - + @@ -16,7 +16,7 @@ - + @@ -29,7 +29,7 @@ - + diff --git a/src/Resources/config/doctrine/Collection.orm.xml b/src/Resources/config/doctrine/Collection.orm.xml index 27a6f0893..2af49f5ac 100644 --- a/src/Resources/config/doctrine/Collection.orm.xml +++ b/src/Resources/config/doctrine/Collection.orm.xml @@ -6,7 +6,7 @@ xsi:schemaLocation="https://doctrine-project.org/schemas/orm/doctrine-mapping https://www.doctrine-project.org/schemas/orm/doctrine-mapping.xsd"> - + @@ -17,7 +17,7 @@ - + @@ -31,7 +31,7 @@ - + @@ -45,7 +45,7 @@ - + diff --git a/src/Resources/config/doctrine/ContentConfiguration.orm.xml b/src/Resources/config/doctrine/ContentConfiguration.orm.xml index a41d65b0e..e65e74223 100644 --- a/src/Resources/config/doctrine/ContentConfiguration.orm.xml +++ b/src/Resources/config/doctrine/ContentConfiguration.orm.xml @@ -5,7 +5,7 @@ xsi:schemaLocation="https://doctrine-project.org/schemas/orm/doctrine-mapping https://www.doctrine-project.org/schemas/orm/doctrine-mapping.xsd"> - + @@ -18,11 +18,11 @@ - + - + diff --git a/src/Resources/config/doctrine/Media.orm.xml b/src/Resources/config/doctrine/Media.orm.xml index 6eedcf735..84e332655 100644 --- a/src/Resources/config/doctrine/Media.orm.xml +++ b/src/Resources/config/doctrine/Media.orm.xml @@ -5,7 +5,7 @@ xsi:schemaLocation="https://doctrine-project.org/schemas/orm/doctrine-mapping https://www.doctrine-project.org/schemas/orm/doctrine-mapping.xsd"> - + @@ -26,7 +26,7 @@ - + @@ -39,7 +39,7 @@ - + diff --git a/src/Resources/config/doctrine/MediaTranslation.orm.xml b/src/Resources/config/doctrine/MediaTranslation.orm.xml index 5d24b667a..4646fd16d 100644 --- a/src/Resources/config/doctrine/MediaTranslation.orm.xml +++ b/src/Resources/config/doctrine/MediaTranslation.orm.xml @@ -5,7 +5,7 @@ xsi:schemaLocation="https://doctrine-project.org/schemas/orm/doctrine-mapping https://www.doctrine-project.org/schemas/orm/doctrine-mapping.xsd"> - + diff --git a/src/Resources/config/doctrine/Page.orm.xml b/src/Resources/config/doctrine/Page.orm.xml index 7e26f5826..8d100b271 100644 --- a/src/Resources/config/doctrine/Page.orm.xml +++ b/src/Resources/config/doctrine/Page.orm.xml @@ -6,7 +6,7 @@ xsi:schemaLocation="https://doctrine-project.org/schemas/orm/doctrine-mapping https://www.doctrine-project.org/schemas/orm/doctrine-mapping.xsd"> - + @@ -27,7 +27,7 @@ - + @@ -40,7 +40,7 @@ - + @@ -53,7 +53,7 @@ - + diff --git a/src/Resources/config/doctrine/PageTranslation.orm.xml b/src/Resources/config/doctrine/PageTranslation.orm.xml index be6ae7f06..87877ad31 100644 --- a/src/Resources/config/doctrine/PageTranslation.orm.xml +++ b/src/Resources/config/doctrine/PageTranslation.orm.xml @@ -5,7 +5,7 @@ xsi:schemaLocation="https://doctrine-project.org/schemas/orm/doctrine-mapping https://www.doctrine-project.org/schemas/orm/doctrine-mapping.xsd"> - + diff --git a/src/Resources/config/doctrine/Template.orm.xml b/src/Resources/config/doctrine/Template.orm.xml index 12c49b4b9..1d7e1b30d 100644 --- a/src/Resources/config/doctrine/Template.orm.xml +++ b/src/Resources/config/doctrine/Template.orm.xml @@ -5,7 +5,7 @@ xsi:schemaLocation="https://doctrine-project.org/schemas/orm/doctrine-mapping https://www.doctrine-project.org/schemas/orm/doctrine-mapping.xsd"> - + diff --git a/src/Resources/config/grids/admin/media.yml b/src/Resources/config/grids/admin/media.yml index 81f497047..77867dc76 100644 --- a/src/Resources/config/grids/admin/media.yml +++ b/src/Resources/config/grids/admin/media.yml @@ -57,9 +57,9 @@ sylius_grid: label: sylius.ui.type form_options: choices: - sylius.ui.image: !php/const BitBag\SyliusCmsPlugin\Entity\MediaInterface::IMAGE_TYPE - bitbag_sylius_cms_plugin.ui.file: !php/const BitBag\SyliusCmsPlugin\Entity\MediaInterface::FILE_TYPE - bitbag_sylius_cms_plugin.ui.video: !php/const BitBag\SyliusCmsPlugin\Entity\MediaInterface::VIDEO_TYPE + sylius.ui.image: !php/const Sylius\CmsPlugin\Entity\MediaInterface::IMAGE_TYPE + bitbag_sylius_cms_plugin.ui.file: !php/const Sylius\CmsPlugin\Entity\MediaInterface::FILE_TYPE + bitbag_sylius_cms_plugin.ui.video: !php/const Sylius\CmsPlugin\Entity\MediaInterface::VIDEO_TYPE actions: main: import: diff --git a/src/Resources/config/resources/block.yml b/src/Resources/config/resources/block.yml index 131137059..befbb1427 100755 --- a/src/Resources/config/resources/block.yml +++ b/src/Resources/config/resources/block.yml @@ -3,9 +3,9 @@ sylius_resource: bitbag_sylius_cms_plugin.block: driver: doctrine/orm classes: - model: BitBag\SyliusCmsPlugin\Entity\Block - interface: BitBag\SyliusCmsPlugin\Entity\BlockInterface - form: BitBag\SyliusCmsPlugin\Form\Type\BlockType - repository: BitBag\SyliusCmsPlugin\Repository\BlockRepository - controller: BitBag\SyliusCmsPlugin\Controller\BlockController + model: Sylius\CmsPlugin\Entity\Block + interface: Sylius\CmsPlugin\Entity\BlockInterface + form: Sylius\CmsPlugin\Form\Type\BlockType + repository: Sylius\CmsPlugin\Repository\BlockRepository + controller: Sylius\CmsPlugin\Controller\BlockController factory: Sylius\Component\Resource\Factory\Factory diff --git a/src/Resources/config/resources/collection.yml b/src/Resources/config/resources/collection.yml index 5e9f43d3c..358409ba9 100755 --- a/src/Resources/config/resources/collection.yml +++ b/src/Resources/config/resources/collection.yml @@ -3,8 +3,8 @@ sylius_resource: bitbag_sylius_cms_plugin.collection: driver: doctrine/orm classes: - model: BitBag\SyliusCmsPlugin\Entity\Collection - interface: BitBag\SyliusCmsPlugin\Entity\CollectionInterface - form: BitBag\SyliusCmsPlugin\Form\Type\CollectionType - repository: BitBag\SyliusCmsPlugin\Repository\CollectionRepository + model: Sylius\CmsPlugin\Entity\Collection + interface: Sylius\CmsPlugin\Entity\CollectionInterface + form: Sylius\CmsPlugin\Form\Type\CollectionType + repository: Sylius\CmsPlugin\Repository\CollectionRepository factory: Sylius\Component\Resource\Factory\Factory diff --git a/src/Resources/config/resources/content_configuration.yml b/src/Resources/config/resources/content_configuration.yml index 881db0a3c..20374787b 100644 --- a/src/Resources/config/resources/content_configuration.yml +++ b/src/Resources/config/resources/content_configuration.yml @@ -3,8 +3,8 @@ sylius_resource: bitbag_sylius_cms_plugin.content_configuration: driver: doctrine/orm classes: - model: BitBag\SyliusCmsPlugin\Entity\ContentConfiguration - interface: BitBag\SyliusCmsPlugin\Entity\ContentConfigurationInterface - form: BitBag\SyliusCmsPlugin\Form\Type\ContentConfigurationType - repository: BitBag\SyliusCmsPlugin\Repository\ContentConfigurationRepository + model: Sylius\CmsPlugin\Entity\ContentConfiguration + interface: Sylius\CmsPlugin\Entity\ContentConfigurationInterface + form: Sylius\CmsPlugin\Form\Type\ContentConfigurationType + repository: Sylius\CmsPlugin\Repository\ContentConfigurationRepository factory: Sylius\Component\Resource\Factory\TranslatableFactory diff --git a/src/Resources/config/resources/media.yml b/src/Resources/config/resources/media.yml index 2b183a478..7ffcaa26d 100644 --- a/src/Resources/config/resources/media.yml +++ b/src/Resources/config/resources/media.yml @@ -3,13 +3,13 @@ sylius_resource: bitbag_sylius_cms_plugin.media: driver: doctrine/orm classes: - model: BitBag\SyliusCmsPlugin\Entity\Media - interface: BitBag\SyliusCmsPlugin\Entity\MediaInterface - form: BitBag\SyliusCmsPlugin\Form\Type\MediaType - repository: BitBag\SyliusCmsPlugin\Repository\MediaRepository - controller: BitBag\SyliusCmsPlugin\Controller\MediaController + model: Sylius\CmsPlugin\Entity\Media + interface: Sylius\CmsPlugin\Entity\MediaInterface + form: Sylius\CmsPlugin\Form\Type\MediaType + repository: Sylius\CmsPlugin\Repository\MediaRepository + controller: Sylius\CmsPlugin\Controller\MediaController factory: Sylius\Component\Resource\Factory\TranslatableFactory translation: classes: - model: BitBag\SyliusCmsPlugin\Entity\MediaTranslation - interface: BitBag\SyliusCmsPlugin\Entity\MediaTranslationInterface + model: Sylius\CmsPlugin\Entity\MediaTranslation + interface: Sylius\CmsPlugin\Entity\MediaTranslationInterface diff --git a/src/Resources/config/resources/page.yml b/src/Resources/config/resources/page.yml index 3f4dbc20f..0a097b4cb 100755 --- a/src/Resources/config/resources/page.yml +++ b/src/Resources/config/resources/page.yml @@ -3,13 +3,13 @@ sylius_resource: bitbag_sylius_cms_plugin.page: driver: doctrine/orm classes: - model: BitBag\SyliusCmsPlugin\Entity\Page - interface: BitBag\SyliusCmsPlugin\Entity\PageInterface - form: BitBag\SyliusCmsPlugin\Form\Type\PageType - repository: BitBag\SyliusCmsPlugin\Repository\PageRepository - controller: BitBag\SyliusCmsPlugin\Controller\PageController + model: Sylius\CmsPlugin\Entity\Page + interface: Sylius\CmsPlugin\Entity\PageInterface + form: Sylius\CmsPlugin\Form\Type\PageType + repository: Sylius\CmsPlugin\Repository\PageRepository + controller: Sylius\CmsPlugin\Controller\PageController factory: Sylius\Component\Resource\Factory\TranslatableFactory translation: classes: - model: BitBag\SyliusCmsPlugin\Entity\PageTranslation - interface: BitBag\SyliusCmsPlugin\Entity\PageTranslationInterface + model: Sylius\CmsPlugin\Entity\PageTranslation + interface: Sylius\CmsPlugin\Entity\PageTranslationInterface diff --git a/src/Resources/config/resources/template.yml b/src/Resources/config/resources/template.yml index cc68b045f..6323fb428 100755 --- a/src/Resources/config/resources/template.yml +++ b/src/Resources/config/resources/template.yml @@ -3,9 +3,9 @@ sylius_resource: bitbag_sylius_cms_plugin.template: driver: doctrine/orm classes: - model: BitBag\SyliusCmsPlugin\Entity\Template - interface: BitBag\SyliusCmsPlugin\Entity\TemplateInterface - form: BitBag\SyliusCmsPlugin\Form\Type\TemplateType - repository: BitBag\SyliusCmsPlugin\Repository\TemplateRepository + model: Sylius\CmsPlugin\Entity\Template + interface: Sylius\CmsPlugin\Entity\TemplateInterface + form: Sylius\CmsPlugin\Form\Type\TemplateType + repository: Sylius\CmsPlugin\Repository\TemplateRepository factory: Sylius\Component\Resource\Factory\Factory - controller: BitBag\SyliusCmsPlugin\Controller\TemplateController + controller: Sylius\CmsPlugin\Controller\TemplateController diff --git a/src/Resources/config/serialization/Block.xml b/src/Resources/config/serialization/Block.xml index 6bcab96ea..0bb35e601 100644 --- a/src/Resources/config/serialization/Block.xml +++ b/src/Resources/config/serialization/Block.xml @@ -3,7 +3,7 @@ xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://symfony.com/schema/dic/serializer-mapping https://symfony.com/schema/dic/serializer-mapping/serializer-mapping-1.0.xsd" > - + shop:cms:read diff --git a/src/Resources/config/serialization/Collection.xml b/src/Resources/config/serialization/Collection.xml index 6f11af78c..eb19d8a81 100644 --- a/src/Resources/config/serialization/Collection.xml +++ b/src/Resources/config/serialization/Collection.xml @@ -3,7 +3,7 @@ xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://symfony.com/schema/dic/serializer-mapping https://symfony.com/schema/dic/serializer-mapping/serializer-mapping-1.0.xsd" > - + shop:cms:read diff --git a/src/Resources/config/serialization/Media.xml b/src/Resources/config/serialization/Media.xml index 451a4f154..ea9757dca 100644 --- a/src/Resources/config/serialization/Media.xml +++ b/src/Resources/config/serialization/Media.xml @@ -3,7 +3,7 @@ xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://symfony.com/schema/dic/serializer-mapping https://symfony.com/schema/dic/serializer-mapping/serializer-mapping-1.0.xsd" > - + shop:cms:read diff --git a/src/Resources/config/serialization/MediaTranslation.xml b/src/Resources/config/serialization/MediaTranslation.xml index 627f01e71..d36343e92 100644 --- a/src/Resources/config/serialization/MediaTranslation.xml +++ b/src/Resources/config/serialization/MediaTranslation.xml @@ -3,7 +3,7 @@ xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://symfony.com/schema/dic/serializer-mapping https://symfony.com/schema/dic/serializer-mapping/serializer-mapping-1.0.xsd" > - + shop:cms:read diff --git a/src/Resources/config/serialization/Page.xml b/src/Resources/config/serialization/Page.xml index 250782121..aee15c5af 100644 --- a/src/Resources/config/serialization/Page.xml +++ b/src/Resources/config/serialization/Page.xml @@ -3,7 +3,7 @@ xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://symfony.com/schema/dic/serializer-mapping https://symfony.com/schema/dic/serializer-mapping/serializer-mapping-1.0.xsd" > - + shop:cms:read diff --git a/src/Resources/config/serialization/PageTranslation.xml b/src/Resources/config/serialization/PageTranslation.xml index 9be02fc90..04d100820 100644 --- a/src/Resources/config/serialization/PageTranslation.xml +++ b/src/Resources/config/serialization/PageTranslation.xml @@ -3,7 +3,7 @@ xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://symfony.com/schema/dic/serializer-mapping https://symfony.com/schema/dic/serializer-mapping/serializer-mapping-1.0.xsd" > - + shop:cms:read diff --git a/src/Resources/config/serialization/Template.xml b/src/Resources/config/serialization/Template.xml index e65ab80fc..b69ec1cc7 100644 --- a/src/Resources/config/serialization/Template.xml +++ b/src/Resources/config/serialization/Template.xml @@ -3,7 +3,7 @@ xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://symfony.com/schema/dic/serializer-mapping https://symfony.com/schema/dic/serializer-mapping/serializer-mapping-1.0.xsd" > - + shop:cms:read diff --git a/src/Resources/config/serializer/Entity.Block.yml b/src/Resources/config/serializer/Entity.Block.yml index 785a05373..80781986c 100644 --- a/src/Resources/config/serializer/Entity.Block.yml +++ b/src/Resources/config/serializer/Entity.Block.yml @@ -1,4 +1,4 @@ -BitBag\SyliusCmsPlugin\Entity\Block: +Sylius\CmsPlugin\Entity\Block: exclusion_policy: ALL xml_root_name: block properties: diff --git a/src/Resources/config/serializer/Entity.Collection.yml b/src/Resources/config/serializer/Entity.Collection.yml index b98b6ee9a..ff18f5d99 100644 --- a/src/Resources/config/serializer/Entity.Collection.yml +++ b/src/Resources/config/serializer/Entity.Collection.yml @@ -1,4 +1,4 @@ -BitBag\SyliusCmsPlugin\Entity\Collection: +Sylius\CmsPlugin\Entity\Collection: exclusion_policy: ALL xml_root_name: collection properties: diff --git a/src/Resources/config/serializer/Entity.Media.yml b/src/Resources/config/serializer/Entity.Media.yml index 8cf3defd2..80175b550 100644 --- a/src/Resources/config/serializer/Entity.Media.yml +++ b/src/Resources/config/serializer/Entity.Media.yml @@ -1,4 +1,4 @@ -BitBag\SyliusCmsPlugin\Entity\Media: +Sylius\CmsPlugin\Entity\Media: exclusion_policy: ALL xml_root_name: media properties: diff --git a/src/Resources/config/serializer/Entity.Page.yml b/src/Resources/config/serializer/Entity.Page.yml index 2bda04f44..75367e63a 100644 --- a/src/Resources/config/serializer/Entity.Page.yml +++ b/src/Resources/config/serializer/Entity.Page.yml @@ -1,4 +1,4 @@ -BitBag\SyliusCmsPlugin\Entity\Page: +Sylius\CmsPlugin\Entity\Page: exclusion_policy: ALL xml_root_name: page properties: diff --git a/src/Resources/config/serializer/Entity.Template.yml b/src/Resources/config/serializer/Entity.Template.yml index dced067d2..7e19eefb3 100644 --- a/src/Resources/config/serializer/Entity.Template.yml +++ b/src/Resources/config/serializer/Entity.Template.yml @@ -1,4 +1,4 @@ -BitBag\SyliusCmsPlugin\Entity\Template: +Sylius\CmsPlugin\Entity\Template: exclusion_policy: ALL xml_root_name: template properties: diff --git a/src/Resources/config/services.xml b/src/Resources/config/services.xml index 2ee965e17..f53d9a884 100644 --- a/src/Resources/config/services.xml +++ b/src/Resources/config/services.xml @@ -6,20 +6,20 @@ - BitBag\SyliusCmsPlugin\MediaProvider\ProviderInterface + Sylius\CmsPlugin\MediaProvider\ProviderInterface - + - + - + @@ -29,7 +29,7 @@ Media provider - + @@ -38,6 +38,6 @@ %bitbag_sylius_cms_plugin.uploader.filesystem% - + diff --git a/src/Resources/config/services/assigner.xml b/src/Resources/config/services/assigner.xml index 3928794e4..d565b824a 100644 --- a/src/Resources/config/services/assigner.xml +++ b/src/Resources/config/services/assigner.xml @@ -4,27 +4,27 @@ - + - + - + - + - + - + diff --git a/src/Resources/config/services/controller.xml b/src/Resources/config/services/controller.xml index 9f40680ed..5b5aee282 100644 --- a/src/Resources/config/services/controller.xml +++ b/src/Resources/config/services/controller.xml @@ -4,23 +4,23 @@ - + - + - + - + @@ -29,18 +29,18 @@ - + - + - + @@ -58,7 +58,7 @@ - + @@ -73,6 +73,6 @@ - + diff --git a/src/Resources/config/services/event_listener.xml b/src/Resources/config/services/event_listener.xml index 95d29208e..3613dd2fa 100644 --- a/src/Resources/config/services/event_listener.xml +++ b/src/Resources/config/services/event_listener.xml @@ -4,18 +4,18 @@ - + - + - + diff --git a/src/Resources/config/services/fixture.xml b/src/Resources/config/services/fixture.xml index e1f57e487..28d32aa0d 100644 --- a/src/Resources/config/services/fixture.xml +++ b/src/Resources/config/services/fixture.xml @@ -4,32 +4,32 @@ - + - + - + - + - + - + @@ -40,7 +40,7 @@ - + @@ -49,13 +49,13 @@ - + - + @@ -64,7 +64,7 @@ - + diff --git a/src/Resources/config/services/form.xml b/src/Resources/config/services/form.xml index 5c9171663..a2e7956f1 100644 --- a/src/Resources/config/services/form.xml +++ b/src/Resources/config/services/form.xml @@ -2,154 +2,154 @@ - BitBag\SyliusCmsPlugin\Form\Type\ContentElements\TextareaContentElementType::TYPE - BitBag\SyliusCmsPlugin\Form\Type\ContentElements\SingleMediaContentElementType::TYPE - BitBag\SyliusCmsPlugin\Form\Type\ContentElements\MultipleMediaContentElementType::TYPE - BitBag\SyliusCmsPlugin\Form\Type\ContentElements\HeadingContentElementType::TYPE - BitBag\SyliusCmsPlugin\Form\Type\ContentElements\ProductsCarouselContentElementType::TYPE - BitBag\SyliusCmsPlugin\Form\Type\ContentElements\ProductsCarouselByTaxonContentElementType::TYPE - BitBag\SyliusCmsPlugin\Form\Type\ContentElements\ProductsGridContentElementType::TYPE - BitBag\SyliusCmsPlugin\Form\Type\ContentElements\ProductsGridByTaxonContentElementType::TYPE - BitBag\SyliusCmsPlugin\Form\Type\ContentElements\TaxonsListContentElementType::TYPE - BitBag\SyliusCmsPlugin\Form\Type\ContentElements\PagesCollectionContentElementType::TYPE - BitBag\SyliusCmsPlugin\Form\Type\ContentElements\SpacerContentElementType::TYPE + Sylius\CmsPlugin\Form\Type\ContentElements\TextareaContentElementType::TYPE + Sylius\CmsPlugin\Form\Type\ContentElements\SingleMediaContentElementType::TYPE + Sylius\CmsPlugin\Form\Type\ContentElements\MultipleMediaContentElementType::TYPE + Sylius\CmsPlugin\Form\Type\ContentElements\HeadingContentElementType::TYPE + Sylius\CmsPlugin\Form\Type\ContentElements\ProductsCarouselContentElementType::TYPE + Sylius\CmsPlugin\Form\Type\ContentElements\ProductsCarouselByTaxonContentElementType::TYPE + Sylius\CmsPlugin\Form\Type\ContentElements\ProductsGridContentElementType::TYPE + Sylius\CmsPlugin\Form\Type\ContentElements\ProductsGridByTaxonContentElementType::TYPE + Sylius\CmsPlugin\Form\Type\ContentElements\TaxonsListContentElementType::TYPE + Sylius\CmsPlugin\Form\Type\ContentElements\PagesCollectionContentElementType::TYPE + Sylius\CmsPlugin\Form\Type\ContentElements\SpacerContentElementType::TYPE - + %bitbag_sylius_cms_plugin.model.block.class% %bitbag_sylius_cms_plugin.form.type.block.validation_groups% - - BitBag\SyliusCmsPlugin\Entity\ContentConfiguration + + Sylius\CmsPlugin\Entity\ContentConfiguration %bitbag_sylius_cms_plugin.form.type.content_configuration.validation_groups% - - BitBag\SyliusCmsPlugin\Entity\BlockImage + + Sylius\CmsPlugin\Entity\BlockImage %bitbag_sylius_cms_plugin.form.type.block_image.validation_groups% - + %bitbag_sylius_cms_plugin.model.page.class% %bitbag_sylius_cms_plugin.form.type.page.validation_groups% - + %bitbag_sylius_cms_plugin.model.page_translation.class% %bitbag_sylius_cms_plugin.form.type.translation.page.validation_groups% - + %bitbag_sylius_cms_plugin.model.collection.class% %bitbag_sylius_cms_plugin.form.type.collection.validation_groups% - + - + %bitbag_sylius_cms_plugin.model.media_translation.class% %bitbag_sylius_cms_plugin.form.type.translation.media.validation_groups% - + %bitbag_sylius_cms_plugin.model.media.class% %bitbag_sylius_cms_plugin.form.type.media.validation_groups% %bitbag_sylius_cms_plugin.media_providers% - + - + %bitbag_sylius_cms_plugin.model.template.class% %bitbag_sylius_cms_plugin.form.type.template.validation_groups% - + - + - + - + - + - + - + - + - + - + - + - + - + diff --git a/src/Resources/config/services/importer.xml b/src/Resources/config/services/importer.xml index d5eb2c352..161394aae 100644 --- a/src/Resources/config/services/importer.xml +++ b/src/Resources/config/services/importer.xml @@ -4,9 +4,9 @@ - + - + @@ -16,7 +16,7 @@ - + @@ -29,7 +29,7 @@ - + diff --git a/src/Resources/config/services/media_provider.xml b/src/Resources/config/services/media_provider.xml index 52f284517..ceb1fe187 100644 --- a/src/Resources/config/services/media_provider.xml +++ b/src/Resources/config/services/media_provider.xml @@ -4,7 +4,7 @@ - + @BitBagSyliusCmsPlugin/Shop/Media/Show/image.html.twig @@ -12,7 +12,7 @@ - + @BitBagSyliusCmsPlugin/Shop/Media/Show/video.html.twig @@ -20,7 +20,7 @@ - + @BitBagSyliusCmsPlugin/Shop/Media/Show/file.html.twig diff --git a/src/Resources/config/services/menu.xml b/src/Resources/config/services/menu.xml index 549122526..a60852cd5 100644 --- a/src/Resources/config/services/menu.xml +++ b/src/Resources/config/services/menu.xml @@ -4,6 +4,6 @@ - + diff --git a/src/Resources/config/services/renderer.xml b/src/Resources/config/services/renderer.xml index 182ed4e54..5039b27f5 100644 --- a/src/Resources/config/services/renderer.xml +++ b/src/Resources/config/services/renderer.xml @@ -4,98 +4,98 @@ - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + diff --git a/src/Resources/config/services/resolver.xml b/src/Resources/config/services/resolver.xml index 70052a812..090c984c1 100644 --- a/src/Resources/config/services/resolver.xml +++ b/src/Resources/config/services/resolver.xml @@ -4,31 +4,31 @@ - + code - + code - + code - + code - + @@ -36,48 +36,48 @@ - + - + - + - + - + - + - + - + - + - + diff --git a/src/Resources/config/services/twig.xml b/src/Resources/config/services/twig.xml index d831b84ca..c3875daf3 100644 --- a/src/Resources/config/services/twig.xml +++ b/src/Resources/config/services/twig.xml @@ -12,69 +12,69 @@ - + - + - + - + - + - + - + - + - + - + - + %bitbag_cms.twig.admin_functions% - + - + %bitbag_cms.twig.link_template% diff --git a/src/Resources/config/validation/Block.xml b/src/Resources/config/validation/Block.xml index 272b1ee50..b7981692c 100644 --- a/src/Resources/config/validation/Block.xml +++ b/src/Resources/config/validation/Block.xml @@ -3,7 +3,7 @@ xsi:schemaLocation="http://symfony.com/schema/dic/constraint-mapping http://symfony.com/schema/dic/constraint-mapping/constraint-mapping-1.0.xsd"> - + - + @@ -50,7 +50,7 @@ - + @@ -61,7 +61,7 @@ - + @@ -72,7 +72,7 @@ - + diff --git a/src/Resources/config/doctrine/Collection.orm.xml b/src/Resources/config/doctrine/Collection.orm.xml index 2af49f5ac..ce82918e4 100644 --- a/src/Resources/config/doctrine/Collection.orm.xml +++ b/src/Resources/config/doctrine/Collection.orm.xml @@ -6,7 +6,7 @@ xsi:schemaLocation="https://doctrine-project.org/schemas/orm/doctrine-mapping https://www.doctrine-project.org/schemas/orm/doctrine-mapping.xsd"> - + @@ -21,7 +21,7 @@ - + @@ -32,7 +32,7 @@ - + @@ -49,7 +49,7 @@ - + diff --git a/src/Resources/config/doctrine/ContentConfiguration.orm.xml b/src/Resources/config/doctrine/ContentConfiguration.orm.xml index e65e74223..a1822195b 100644 --- a/src/Resources/config/doctrine/ContentConfiguration.orm.xml +++ b/src/Resources/config/doctrine/ContentConfiguration.orm.xml @@ -5,7 +5,7 @@ xsi:schemaLocation="https://doctrine-project.org/schemas/orm/doctrine-mapping https://www.doctrine-project.org/schemas/orm/doctrine-mapping.xsd"> - + diff --git a/src/Resources/config/doctrine/Media.orm.xml b/src/Resources/config/doctrine/Media.orm.xml index 84e332655..ab603784a 100644 --- a/src/Resources/config/doctrine/Media.orm.xml +++ b/src/Resources/config/doctrine/Media.orm.xml @@ -5,7 +5,7 @@ xsi:schemaLocation="https://doctrine-project.org/schemas/orm/doctrine-mapping https://www.doctrine-project.org/schemas/orm/doctrine-mapping.xsd"> - + @@ -29,7 +29,7 @@ - + diff --git a/src/Resources/config/doctrine/MediaTranslation.orm.xml b/src/Resources/config/doctrine/MediaTranslation.orm.xml index 4646fd16d..a68cb35ac 100644 --- a/src/Resources/config/doctrine/MediaTranslation.orm.xml +++ b/src/Resources/config/doctrine/MediaTranslation.orm.xml @@ -5,7 +5,7 @@ xsi:schemaLocation="https://doctrine-project.org/schemas/orm/doctrine-mapping https://www.doctrine-project.org/schemas/orm/doctrine-mapping.xsd"> - + diff --git a/src/Resources/config/doctrine/Page.orm.xml b/src/Resources/config/doctrine/Page.orm.xml index 8d100b271..b0ccdcdcd 100644 --- a/src/Resources/config/doctrine/Page.orm.xml +++ b/src/Resources/config/doctrine/Page.orm.xml @@ -6,7 +6,7 @@ xsi:schemaLocation="https://doctrine-project.org/schemas/orm/doctrine-mapping https://www.doctrine-project.org/schemas/orm/doctrine-mapping.xsd"> - + @@ -30,7 +30,7 @@ - + diff --git a/src/Resources/config/doctrine/PageTranslation.orm.xml b/src/Resources/config/doctrine/PageTranslation.orm.xml index 87877ad31..19e229545 100644 --- a/src/Resources/config/doctrine/PageTranslation.orm.xml +++ b/src/Resources/config/doctrine/PageTranslation.orm.xml @@ -5,7 +5,7 @@ xsi:schemaLocation="https://doctrine-project.org/schemas/orm/doctrine-mapping https://www.doctrine-project.org/schemas/orm/doctrine-mapping.xsd"> - + diff --git a/src/Resources/config/doctrine/Template.orm.xml b/src/Resources/config/doctrine/Template.orm.xml index 1d7e1b30d..3804931d1 100644 --- a/src/Resources/config/doctrine/Template.orm.xml +++ b/src/Resources/config/doctrine/Template.orm.xml @@ -5,7 +5,7 @@ xsi:schemaLocation="https://doctrine-project.org/schemas/orm/doctrine-mapping https://www.doctrine-project.org/schemas/orm/doctrine-mapping.xsd"> - + diff --git a/src/Resources/config/fos_ck_editor/fos_ck_editor.yml b/src/Resources/config/fos_ck_editor/fos_ck_editor.yml index 2ef9a9dbb..7ac0be713 100644 --- a/src/Resources/config/fos_ck_editor/fos_ck_editor.yml +++ b/src/Resources/config/fos_ck_editor/fos_ck_editor.yml @@ -1,8 +1,8 @@ fos_ck_editor: - default_config: bitbag_sylius_cms_plugin + default_config: sylius_cms_plugin configs: - bitbag_sylius_cms_plugin: - toolbar: bitbag_sylius_cms_plugin + sylius_cms_plugin: + toolbar: sylius_cms_plugin enterMode: 3 forcePasteAsPlainText: 'allow-word' allowedContent: true @@ -20,7 +20,7 @@ fos_ck_editor: filename: 'plugin.js' toolbars: configs: - bitbag_sylius_cms_plugin: + sylius_cms_plugin: - '@standard.clipboard' - '@standard.editing' - '@standard.links' diff --git a/src/Resources/config/grids/admin/block.yml b/src/Resources/config/grids/admin/block.yml index 45f423591..8c7500aac 100755 --- a/src/Resources/config/grids/admin/block.yml +++ b/src/Resources/config/grids/admin/block.yml @@ -1,17 +1,17 @@ sylius_grid: grids: - bitbag_sylius_cms_plugin_admin_block: + sylius_cms_plugin_admin_block: driver: name: doctrine/orm options: - class: "%bitbag_sylius_cms_plugin.model.block.class%" + class: "%sylius_cms_plugin.model.block.class%" sorting: code: asc limits: [10, 25, 50] fields: name: type: twig - label: bitbag_sylius_cms_plugin.ui.name + label: sylius_cms_plugin.ui.name sortable: name path: . options: @@ -29,13 +29,13 @@ sylius_grid: template: "@SyliusUi/Grid/Field/enabled.html.twig" collections: type: twig - label: bitbag_sylius_cms_plugin.ui.collections + label: sylius_cms_plugin.ui.collections path: . options: template: "@BitBagSyliusCmsPlugin/Grid/Field/collections.html.twig" channels: type: twig - label: bitbag_sylius_cms_plugin.ui.channels + label: sylius_cms_plugin.ui.channels path: . options: template: "@BitBagSyliusCmsPlugin/Grid/Field/channels.html.twig" diff --git a/src/Resources/config/grids/admin/collection.yml b/src/Resources/config/grids/admin/collection.yml index 5e3282672..1254446ed 100755 --- a/src/Resources/config/grids/admin/collection.yml +++ b/src/Resources/config/grids/admin/collection.yml @@ -1,28 +1,28 @@ sylius_grid: grids: - bitbag_sylius_cms_plugin_admin_collection: + sylius_cms_plugin_admin_collection: driver: name: doctrine/orm options: - class: "%bitbag_sylius_cms_plugin.model.collection.class%" + class: "%sylius_cms_plugin.model.collection.class%" sorting: code: asc limits: [10, 25, 50] fields: name: type: twig - label: bitbag_sylius_cms_plugin.ui.name + label: sylius_cms_plugin.ui.name sortable: name path: . options: template: "@BitBagSyliusCmsPlugin/Grid/Field/name.html.twig" code: type: string - label: bitbag_sylius_cms_plugin.ui.code + label: sylius_cms_plugin.ui.code sortable: ~ type: type: string - label: bitbag_sylius_cms_plugin.ui.type + label: sylius_cms_plugin.ui.type sortable: ~ filters: search: diff --git a/src/Resources/config/grids/admin/media.yml b/src/Resources/config/grids/admin/media.yml index 77867dc76..ca388260e 100644 --- a/src/Resources/config/grids/admin/media.yml +++ b/src/Resources/config/grids/admin/media.yml @@ -1,10 +1,10 @@ sylius_grid: grids: - bitbag_sylius_cms_plugin_admin_media: + sylius_cms_plugin_admin_media: driver: name: doctrine/orm options: - class: "%bitbag_sylius_cms_plugin.model.media.class%" + class: "%sylius_cms_plugin.model.media.class%" repository: method: createListQueryBuilder arguments: ["%locale%"] @@ -14,20 +14,20 @@ sylius_grid: fields: media_file: type: twig - label: bitbag_sylius_cms_plugin.ui.preview + label: sylius_cms_plugin.ui.preview path: . options: template: "@BitBagSyliusCmsPlugin/Grid/Field/image_preview.html.twig" name: type: twig - label: bitbag_sylius_cms_plugin.ui.name + label: sylius_cms_plugin.ui.name sortable: name path: . options: template: "@BitBagSyliusCmsPlugin/Grid/Field/name.html.twig" code: type: string - label: bitbag_sylius_cms_plugin.ui.code + label: sylius_cms_plugin.ui.code sortable: ~ enabled: type: twig @@ -36,13 +36,13 @@ sylius_grid: template: "@SyliusUi/Grid/Field/enabled.html.twig" collections: type: twig - label: bitbag_sylius_cms_plugin.ui.collections + label: sylius_cms_plugin.ui.collections path: . options: template: "@BitBagSyliusCmsPlugin/Grid/Field/collections.html.twig" channels: type: twig - label: bitbag_sylius_cms_plugin.ui.channels + label: sylius_cms_plugin.ui.channels path: . options: template: "@BitBagSyliusCmsPlugin/Grid/Field/channels.html.twig" @@ -58,8 +58,8 @@ sylius_grid: form_options: choices: sylius.ui.image: !php/const Sylius\CmsPlugin\Entity\MediaInterface::IMAGE_TYPE - bitbag_sylius_cms_plugin.ui.file: !php/const Sylius\CmsPlugin\Entity\MediaInterface::FILE_TYPE - bitbag_sylius_cms_plugin.ui.video: !php/const Sylius\CmsPlugin\Entity\MediaInterface::VIDEO_TYPE + sylius_cms_plugin.ui.file: !php/const Sylius\CmsPlugin\Entity\MediaInterface::FILE_TYPE + sylius_cms_plugin.ui.video: !php/const Sylius\CmsPlugin\Entity\MediaInterface::VIDEO_TYPE actions: main: import: diff --git a/src/Resources/config/grids/admin/page.yml b/src/Resources/config/grids/admin/page.yml index 4db7d1c64..5cdf18f52 100755 --- a/src/Resources/config/grids/admin/page.yml +++ b/src/Resources/config/grids/admin/page.yml @@ -1,24 +1,24 @@ sylius_grid: grids: - bitbag_sylius_cms_plugin_admin_page: + sylius_cms_plugin_admin_page: driver: name: doctrine/orm options: - class: "%bitbag_sylius_cms_plugin.model.page.class%" + class: "%sylius_cms_plugin.model.page.class%" sorting: code: asc limits: [10, 25, 50] fields: name: type: twig - label: bitbag_sylius_cms_plugin.ui.name + label: sylius_cms_plugin.ui.name sortable: name path: . options: template: "@BitBagSyliusCmsPlugin/Grid/Field/name.html.twig" code: type: string - label: bitbag_sylius_cms_plugin.ui.code + label: sylius_cms_plugin.ui.code sortable: ~ enabled: type: twig @@ -27,13 +27,13 @@ sylius_grid: template: "@SyliusUi/Grid/Field/enabled.html.twig" collections: type: twig - label: bitbag_sylius_cms_plugin.ui.collections + label: sylius_cms_plugin.ui.collections path: . options: template: "@BitBagSyliusCmsPlugin/Grid/Field/collections.html.twig" channels: type: twig - label: bitbag_sylius_cms_plugin.ui.channels + label: sylius_cms_plugin.ui.channels path: . options: template: "@BitBagSyliusCmsPlugin/Grid/Field/channels.html.twig" @@ -45,9 +45,9 @@ sylius_grid: fields: [code] collections: type: entity - label: bitbag_sylius_cms_plugin.ui.collections + label: sylius_cms_plugin.ui.collections form_options: - class: "%bitbag_sylius_cms_plugin.model.collection.class%" + class: "%sylius_cms_plugin.model.collection.class%" choice_label: name choice_value: code options: diff --git a/src/Resources/config/grids/admin/template.yml b/src/Resources/config/grids/admin/template.yml index bb3ae8490..7d82c484f 100755 --- a/src/Resources/config/grids/admin/template.yml +++ b/src/Resources/config/grids/admin/template.yml @@ -1,17 +1,17 @@ sylius_grid: grids: - bitbag_sylius_cms_plugin_admin_template: + sylius_cms_plugin_admin_template: driver: name: doctrine/orm options: - class: "%bitbag_sylius_cms_plugin.model.template.class%" + class: "%sylius_cms_plugin.model.template.class%" sorting: name: asc limits: [10, 25, 50] fields: name: type: twig - label: bitbag_sylius_cms_plugin.ui.name + label: sylius_cms_plugin.ui.name sortable: name path: . options: diff --git a/src/Resources/config/grids/shop/page.yml b/src/Resources/config/grids/shop/page.yml index 664414b1f..e253fdf85 100755 --- a/src/Resources/config/grids/shop/page.yml +++ b/src/Resources/config/grids/shop/page.yml @@ -1,10 +1,10 @@ sylius_grid: grids: - bitbag_sylius_cms_plugin_shop_page: + sylius_cms_plugin_shop_page: driver: name: doctrine/orm options: - class: "%bitbag_sylius_cms_plugin.model.page.class%" + class: "%sylius_cms_plugin.model.page.class%" repository: method: createShopListQueryBuilder arguments: diff --git a/src/Resources/config/resources/block.yml b/src/Resources/config/resources/block.yml index befbb1427..cfbe3e314 100755 --- a/src/Resources/config/resources/block.yml +++ b/src/Resources/config/resources/block.yml @@ -1,6 +1,6 @@ sylius_resource: resources: - bitbag_sylius_cms_plugin.block: + sylius_cms_plugin.block: driver: doctrine/orm classes: model: Sylius\CmsPlugin\Entity\Block diff --git a/src/Resources/config/resources/collection.yml b/src/Resources/config/resources/collection.yml index 358409ba9..523b5e45f 100755 --- a/src/Resources/config/resources/collection.yml +++ b/src/Resources/config/resources/collection.yml @@ -1,6 +1,6 @@ sylius_resource: resources: - bitbag_sylius_cms_plugin.collection: + sylius_cms_plugin.collection: driver: doctrine/orm classes: model: Sylius\CmsPlugin\Entity\Collection diff --git a/src/Resources/config/resources/content_configuration.yml b/src/Resources/config/resources/content_configuration.yml index 20374787b..76a2b3431 100644 --- a/src/Resources/config/resources/content_configuration.yml +++ b/src/Resources/config/resources/content_configuration.yml @@ -1,6 +1,6 @@ sylius_resource: resources: - bitbag_sylius_cms_plugin.content_configuration: + sylius_cms_plugin.content_configuration: driver: doctrine/orm classes: model: Sylius\CmsPlugin\Entity\ContentConfiguration diff --git a/src/Resources/config/resources/media.yml b/src/Resources/config/resources/media.yml index 7ffcaa26d..47b4d1432 100644 --- a/src/Resources/config/resources/media.yml +++ b/src/Resources/config/resources/media.yml @@ -1,6 +1,6 @@ sylius_resource: resources: - bitbag_sylius_cms_plugin.media: + sylius_cms_plugin.media: driver: doctrine/orm classes: model: Sylius\CmsPlugin\Entity\Media diff --git a/src/Resources/config/resources/page.yml b/src/Resources/config/resources/page.yml index 0a097b4cb..4df13d86f 100755 --- a/src/Resources/config/resources/page.yml +++ b/src/Resources/config/resources/page.yml @@ -1,6 +1,6 @@ sylius_resource: resources: - bitbag_sylius_cms_plugin.page: + sylius_cms_plugin.page: driver: doctrine/orm classes: model: Sylius\CmsPlugin\Entity\Page diff --git a/src/Resources/config/resources/template.yml b/src/Resources/config/resources/template.yml index 6323fb428..1052b18a9 100755 --- a/src/Resources/config/resources/template.yml +++ b/src/Resources/config/resources/template.yml @@ -1,6 +1,6 @@ sylius_resource: resources: - bitbag_sylius_cms_plugin.template: + sylius_cms_plugin.template: driver: doctrine/orm classes: model: Sylius\CmsPlugin\Entity\Template diff --git a/src/Resources/config/routing.yml b/src/Resources/config/routing.yml index d27bd1a9b..927db8583 100755 --- a/src/Resources/config/routing.yml +++ b/src/Resources/config/routing.yml @@ -1,7 +1,7 @@ -bitbag_sylius_cms_plugin_admin: +sylius_cms_plugin_admin: resource: "@BitBagSyliusCmsPlugin/Resources/config/routing/admin.yml" prefix: '/%sylius_admin.path_name%' -bitbag_sylius_cms_plugin_shop: +sylius_cms_plugin_shop: resource: "@BitBagSyliusCmsPlugin/Resources/config/routing/shop.yml" prefix: /{_locale} diff --git a/src/Resources/config/routing/admin.yml b/src/Resources/config/routing/admin.yml index 126f90a95..c84683f57 100755 --- a/src/Resources/config/routing/admin.yml +++ b/src/Resources/config/routing/admin.yml @@ -1,46 +1,46 @@ -bitbag_sylius_cms_plugin_admin_block: +sylius_cms_plugin_admin_block: resource: "@BitBagSyliusCmsPlugin/Resources/config/routing/admin/block.yml" -bitbag_sylius_cms_plugin_admin_page: +sylius_cms_plugin_admin_page: resource: "@BitBagSyliusCmsPlugin/Resources/config/routing/admin/page.yml" -bitbag_sylius_cms_plugin_admin_collection: +sylius_cms_plugin_admin_collection: resource: "@BitBagSyliusCmsPlugin/Resources/config/routing/admin/collection.yml" -bitbag_sylius_cms_plugin_admin_media: +sylius_cms_plugin_admin_media: resource: "@BitBagSyliusCmsPlugin/Resources/config/routing/admin/media.yml" -bitbag_sylius_cms_plugin_admin_product: +sylius_cms_plugin_admin_product: resource: "@BitBagSyliusCmsPlugin/Resources/config/routing/admin/product.yml" -bitbag_sylius_cms_plugin_admin_taxon: +sylius_cms_plugin_admin_taxon: resource: "@BitBagSyliusCmsPlugin/Resources/config/routing/admin/taxon.yml" -bitbag_sylius_cms_plugin_admin_locale: +sylius_cms_plugin_admin_locale: resource: "@BitBagSyliusCmsPlugin/Resources/config/routing/admin/locale.yml" -bitbag_sylius_cms_plugin_admin_template: +sylius_cms_plugin_admin_template: resource: "@BitBagSyliusCmsPlugin/Resources/config/routing/admin/template.yml" -bitbag_sylius_cms_plugin_admin_ajax_generate_page_slug: +sylius_cms_plugin_admin_ajax_generate_page_slug: path: /page/generate-slug methods: [GET] defaults: - _controller: bitbag_sylius_cms_plugin.controller.page_slug::generateAction + _controller: sylius_cms_plugin.controller.page_slug::generateAction -bitbag_sylius_cms_plugin_admin_import_data: +sylius_cms_plugin_admin_import_data: path: /import/{resourceName} methods: [GET, POST] defaults: - _controller: bitbag_sylius_cms_plugin.controller.action.admin.import_data + _controller: sylius_cms_plugin.controller.action.admin.import_data -bitbag_sylius_cms_plugin_admin_upload_editor_image: +sylius_cms_plugin_admin_upload_editor_image: path: /editor/upload-image defaults: - _controller: bitbag_sylius_cms_plugin.controller.action.admin.upload_editor_image + _controller: sylius_cms_plugin.controller.action.admin.upload_editor_image -bitbag_sylius_cms_plugin_admin_retrieve_package_info: +sylius_cms_plugin_admin_retrieve_package_info: path: /cms/retrieve-package-info methods: [GET] defaults: - _controller: bitbag_sylius_cms_plugin.controller.action.admin.retrieve_package_info + _controller: sylius_cms_plugin.controller.action.admin.retrieve_package_info diff --git a/src/Resources/config/routing/admin/block.yml b/src/Resources/config/routing/admin/block.yml index 5025d02b7..2adca48b4 100755 --- a/src/Resources/config/routing/admin/block.yml +++ b/src/Resources/config/routing/admin/block.yml @@ -1,16 +1,16 @@ -bitbag_sylius_cms_plugin_admin_block: +sylius_cms_plugin_admin_block: resource: | - alias: bitbag_sylius_cms_plugin.block + alias: sylius_cms_plugin.block section: admin templates: '@BitBagSyliusCmsPlugin/CrudUi' except: ['show'] redirect: update - grid: bitbag_sylius_cms_plugin_admin_block + grid: sylius_cms_plugin_admin_block permission: true vars: all: - header: bitbag_sylius_cms_plugin.ui.blocks_header - subheader: bitbag_sylius_cms_plugin.ui.blocks_subheader + header: sylius_cms_plugin.ui.blocks_header + subheader: sylius_cms_plugin.ui.blocks_subheader templates: form: "@BitBagSyliusCmsPlugin/Block/Crud/_form.html.twig" index: @@ -20,20 +20,20 @@ bitbag_sylius_cms_plugin_admin_block: code: $type type: sylius.resource -bitbag_sylius_cms_plugin_admin_block_preview: +sylius_cms_plugin_admin_block_preview: path: /block/preview methods: [GET, POST, PUT] defaults: - _controller: bitbag_sylius_cms_plugin.controller.block::previewAction + _controller: sylius_cms_plugin.controller.block::previewAction _sylius: template: "@BitBagSyliusCmsPlugin/Block/preview.html.twig" -bitbag_sylius_cms_plugin_admin_ajax_block_by_name_phrase: +sylius_cms_plugin_admin_ajax_block_by_name_phrase: path: /ajax/blocks/search methods: [GET] defaults: _format: json - _controller: bitbag_sylius_cms_plugin.controller.block::indexAction + _controller: sylius_cms_plugin.controller.block::indexAction _sylius: serialization_groups: [Autocomplete] permission: true @@ -42,12 +42,12 @@ bitbag_sylius_cms_plugin_admin_ajax_block_by_name_phrase: arguments: phrase: $phrase -bitbag_sylius_cms_plugin_admin_ajax_block_by_code: +sylius_cms_plugin_admin_ajax_block_by_code: path: /ajax/blocks/code methods: [GET] defaults: _format: json - _controller: bitbag_sylius_cms_plugin.controller.block::indexAction + _controller: sylius_cms_plugin.controller.block::indexAction _sylius: serialization_groups: [Autocomplete] permission: true diff --git a/src/Resources/config/routing/admin/collection.yml b/src/Resources/config/routing/admin/collection.yml index ad8b95fd9..23e1a2f02 100755 --- a/src/Resources/config/routing/admin/collection.yml +++ b/src/Resources/config/routing/admin/collection.yml @@ -1,28 +1,28 @@ -bitbag_sylius_cms_plugin_admin_collection: +sylius_cms_plugin_admin_collection: resource: | - alias: bitbag_sylius_cms_plugin.collection + alias: sylius_cms_plugin.collection section: admin templates: '@BitBagSyliusCmsPlugin/CrudUi' redirect: update - grid: bitbag_sylius_cms_plugin_admin_collection + grid: sylius_cms_plugin_admin_collection except: ['show'] permission: true vars: all: - header: bitbag_sylius_cms_plugin.ui.collections_header - subheader: bitbag_sylius_cms_plugin.ui.collections_subheader + header: sylius_cms_plugin.ui.collections_header + subheader: sylius_cms_plugin.ui.collections_subheader templates: form: "@BitBagSyliusCmsPlugin/Collection/Crud/_form.html.twig" index: icon: grid layout type: sylius.resource -bitbag_sylius_cms_plugin_admin_ajax_collection_by_name_phrase: +sylius_cms_plugin_admin_ajax_collection_by_name_phrase: path: /ajax/collections/search methods: [GET] defaults: _format: json - _controller: bitbag_sylius_cms_plugin.controller.collection::indexAction + _controller: sylius_cms_plugin.controller.collection::indexAction _sylius: serialization_groups: [Autocomplete] permission: true @@ -31,12 +31,12 @@ bitbag_sylius_cms_plugin_admin_ajax_collection_by_name_phrase: arguments: phrase: $phrase -bitbag_sylius_cms_plugin_admin_ajax_page_collection_by_name_phrase: +sylius_cms_plugin_admin_ajax_page_collection_by_name_phrase: path: /ajax/collections/page/search methods: [GET] defaults: _format: json - _controller: bitbag_sylius_cms_plugin.controller.collection::indexAction + _controller: sylius_cms_plugin.controller.collection::indexAction _sylius: serialization_groups: [Autocomplete] permission: true @@ -46,12 +46,12 @@ bitbag_sylius_cms_plugin_admin_ajax_page_collection_by_name_phrase: phrase: $phrase type: page -bitbag_sylius_cms_plugin_admin_ajax_collection_by_code: +sylius_cms_plugin_admin_ajax_collection_by_code: path: /ajax/collections/code methods: [GET] defaults: _format: json - _controller: bitbag_sylius_cms_plugin.controller.collection::indexAction + _controller: sylius_cms_plugin.controller.collection::indexAction _sylius: serialization_groups: [Autocomplete] permission: true diff --git a/src/Resources/config/routing/admin/locale.yml b/src/Resources/config/routing/admin/locale.yml index 9b398a5de..1c9c81aca 100644 --- a/src/Resources/config/routing/admin/locale.yml +++ b/src/Resources/config/routing/admin/locale.yml @@ -1,4 +1,4 @@ -bitbag_sylius_cms_plugin_admin_partial_locale_index: +sylius_cms_plugin_admin_partial_locale_index: path: /_partial/locales methods: [GET] defaults: diff --git a/src/Resources/config/routing/admin/media.yml b/src/Resources/config/routing/admin/media.yml index 726ef12c4..ebb4e8fcf 100644 --- a/src/Resources/config/routing/admin/media.yml +++ b/src/Resources/config/routing/admin/media.yml @@ -1,28 +1,28 @@ -bitbag_sylius_cms_plugin_admin_media: +sylius_cms_plugin_admin_media: resource: | - alias: bitbag_sylius_cms_plugin.media + alias: sylius_cms_plugin.media section: admin templates: '@BitBagSyliusCmsPlugin/CrudUi' redirect: update - grid: bitbag_sylius_cms_plugin_admin_media + grid: sylius_cms_plugin_admin_media except: ['show'] permission: true vars: all: - header: bitbag_sylius_cms_plugin.ui.media_header - subheader: bitbag_sylius_cms_plugin.ui.media_subheader + header: sylius_cms_plugin.ui.media_header + subheader: sylius_cms_plugin.ui.media_subheader templates: form: "@BitBagSyliusCmsPlugin/Media/Crud/_form.html.twig" index: icon: file type: sylius.resource -bitbag_sylius_cms_plugin_admin_ajax_media_by_name_phrase: +sylius_cms_plugin_admin_ajax_media_by_name_phrase: path: /ajax/media/search methods: [GET] defaults: _format: json - _controller: bitbag_sylius_cms_plugin.controller.media.overriden::indexAction + _controller: sylius_cms_plugin.controller.media.overriden::indexAction _sylius: serialization_groups: [Autocomplete] permission: true @@ -32,12 +32,12 @@ bitbag_sylius_cms_plugin_admin_ajax_media_by_name_phrase: phrase: $phrase mediaType: $mediaType -bitbag_sylius_cms_plugin_admin_ajax_media_by_code: +sylius_cms_plugin_admin_ajax_media_by_code: path: /ajax/media/code methods: [GET] defaults: _format: json - _controller: bitbag_sylius_cms_plugin.controller.media.overriden::indexAction + _controller: sylius_cms_plugin.controller.media.overriden::indexAction _sylius: serialization_groups: [Autocomplete] permission: true diff --git a/src/Resources/config/routing/admin/page.yml b/src/Resources/config/routing/admin/page.yml index b5219d1d1..6fb9c1565 100755 --- a/src/Resources/config/routing/admin/page.yml +++ b/src/Resources/config/routing/admin/page.yml @@ -1,37 +1,37 @@ -bitbag_sylius_cms_plugin_admin_page: +sylius_cms_plugin_admin_page: resource: | - alias: bitbag_sylius_cms_plugin.page + alias: sylius_cms_plugin.page section: admin templates: '@BitBagSyliusCmsPlugin/CrudUi' redirect: update - grid: bitbag_sylius_cms_plugin_admin_page + grid: sylius_cms_plugin_admin_page except: ['show'] permission: true vars: all: - header: bitbag_sylius_cms_plugin.ui.pages_header - subheader: bitbag_sylius_cms_plugin.ui.pages_subheader + header: sylius_cms_plugin.ui.pages_header + subheader: sylius_cms_plugin.ui.pages_subheader templates: form: "@BitBagSyliusCmsPlugin/Page/Crud/_form.html.twig" index: icon: sticky note type: sylius.resource -bitbag_sylius_cms_plugin_admin_page_preview: +sylius_cms_plugin_admin_page_preview: path: /page/preview/{id} methods: [GET, POST, PUT] defaults: - _controller: bitbag_sylius_cms_plugin.controller.page.overriden::previewAction + _controller: sylius_cms_plugin.controller.page.overriden::previewAction _sylius: template: "@BitBagSyliusCmsPlugin/Page/preview.html.twig" id: null -bitbag_sylius_cms_plugin_admin_ajax_page_by_name_phrase: +sylius_cms_plugin_admin_ajax_page_by_name_phrase: path: /ajax/pages/search methods: [GET] defaults: _format: json - _controller: bitbag_sylius_cms_plugin.controller.page::indexAction + _controller: sylius_cms_plugin.controller.page::indexAction _sylius: serialization_groups: [Autocomplete] permission: true @@ -40,12 +40,12 @@ bitbag_sylius_cms_plugin_admin_ajax_page_by_name_phrase: arguments: phrase: $phrase -bitbag_sylius_cms_plugin_admin_ajax_page_by_code: +sylius_cms_plugin_admin_ajax_page_by_code: path: /ajax/pages/code methods: [GET] defaults: _format: json - _controller: bitbag_sylius_cms_plugin.controller.page::indexAction + _controller: sylius_cms_plugin.controller.page::indexAction _sylius: serialization_groups: [Autocomplete] permission: true diff --git a/src/Resources/config/routing/admin/product.yml b/src/Resources/config/routing/admin/product.yml index ef296f342..1d2efc016 100644 --- a/src/Resources/config/routing/admin/product.yml +++ b/src/Resources/config/routing/admin/product.yml @@ -1,6 +1,6 @@ -bitbag_sylius_cms_plugin_admin_ajax_product_by_name_phrase: +sylius_cms_plugin_admin_ajax_product_by_name_phrase: path: /ajax/products/search-by-name methods: [GET] defaults: _format: json - _controller: bitbag_sylius_cms_plugin.controller.action.admin.product_search + _controller: sylius_cms_plugin.controller.action.admin.product_search diff --git a/src/Resources/config/routing/admin/taxon.yml b/src/Resources/config/routing/admin/taxon.yml index 9a26281ee..7fb2300c6 100644 --- a/src/Resources/config/routing/admin/taxon.yml +++ b/src/Resources/config/routing/admin/taxon.yml @@ -1,6 +1,6 @@ -bitbag_sylius_cms_plugin_admin_ajax_taxon_by_name_phrase: +sylius_cms_plugin_admin_ajax_taxon_by_name_phrase: path: /ajax/taxon/search-by-name methods: [GET] defaults: _format: json - _controller: bitbag_sylius_cms_plugin.controller.action.admin.taxon_search + _controller: sylius_cms_plugin.controller.action.admin.taxon_search diff --git a/src/Resources/config/routing/admin/template.yml b/src/Resources/config/routing/admin/template.yml index 9013de97b..478708890 100755 --- a/src/Resources/config/routing/admin/template.yml +++ b/src/Resources/config/routing/admin/template.yml @@ -1,11 +1,11 @@ -bitbag_sylius_cms_plugin_admin_template: +sylius_cms_plugin_admin_template: resource: | - alias: bitbag_sylius_cms_plugin.template + alias: sylius_cms_plugin.template section: admin templates: '@BitBagSyliusCmsPlugin/CrudUi' except: ['show'] redirect: update - grid: bitbag_sylius_cms_plugin_admin_template + grid: sylius_cms_plugin_admin_template permission: true vars: all: @@ -15,12 +15,12 @@ bitbag_sylius_cms_plugin_admin_template: icon: block layout type: sylius.resource -bitbag_sylius_cms_plugin_admin_ajax_template_page_by_name_phrase: +sylius_cms_plugin_admin_ajax_template_page_by_name_phrase: path: /ajax/templates/page/search methods: [GET] defaults: _format: json - _controller: bitbag_sylius_cms_plugin.controller.template::indexAction + _controller: sylius_cms_plugin.controller.template::indexAction _sylius: serialization_groups: [Autocomplete] permission: true @@ -30,12 +30,12 @@ bitbag_sylius_cms_plugin_admin_ajax_template_page_by_name_phrase: phrase: $phrase type: page -bitbag_sylius_cms_plugin_admin_ajax_template_block_by_name_phrase: +sylius_cms_plugin_admin_ajax_template_block_by_name_phrase: path: /ajax/templates/block/search methods: [GET] defaults: _format: json - _controller: bitbag_sylius_cms_plugin.controller.template::indexAction + _controller: sylius_cms_plugin.controller.template::indexAction _sylius: serialization_groups: [Autocomplete] permission: true @@ -45,12 +45,12 @@ bitbag_sylius_cms_plugin_admin_ajax_template_block_by_name_phrase: phrase: $phrase type: block -bitbag_sylius_cms_plugin_admin_ajax_template_by_id: +sylius_cms_plugin_admin_ajax_template_by_id: path: /ajax/templates/id methods: [GET] defaults: _format: json - _controller: bitbag_sylius_cms_plugin.controller.template::indexAction + _controller: sylius_cms_plugin.controller.template::indexAction _sylius: serialization_groups: [Autocomplete] permission: true @@ -58,11 +58,11 @@ bitbag_sylius_cms_plugin_admin_ajax_template_by_id: method: find arguments: [id: $id] -bitbag_sylius_cms_plugin_admin_ajax_template_content_by_id: +sylius_cms_plugin_admin_ajax_template_content_by_id: path: /ajax/templates/content/{id} methods: [GET] defaults: _format: json - _controller: bitbag_sylius_cms_plugin.controller.template::getContentElementsAction + _controller: sylius_cms_plugin.controller.template::getContentElementsAction _sylius: permission: true diff --git a/src/Resources/config/routing/shop.yml b/src/Resources/config/routing/shop.yml index 14ad3e9c5..3c3ff104f 100755 --- a/src/Resources/config/routing/shop.yml +++ b/src/Resources/config/routing/shop.yml @@ -1,11 +1,11 @@ -bitbag_sylius_cms_plugin_shop_block: +sylius_cms_plugin_shop_block: resource: "@BitBagSyliusCmsPlugin/Resources/config/routing/shop/block.yml" -bitbag_sylius_cms_plugin_shop_page: +sylius_cms_plugin_shop_page: resource: "@BitBagSyliusCmsPlugin/Resources/config/routing/shop/page.yml" -bitbag_sylius_cms_plugin_shop_collection: +sylius_cms_plugin_shop_collection: resource: "@BitBagSyliusCmsPlugin/Resources/config/routing/shop/collection.yml" -bitbag_sylius_cms_plugin_shop_media: +sylius_cms_plugin_shop_media: resource: "@BitBagSyliusCmsPlugin/Resources/config/routing/shop/media.yml" diff --git a/src/Resources/config/routing/shop/block.yml b/src/Resources/config/routing/shop/block.yml index 79eb47675..a08be07c5 100755 --- a/src/Resources/config/routing/shop/block.yml +++ b/src/Resources/config/routing/shop/block.yml @@ -1,19 +1,19 @@ -bitbag_sylius_cms_plugin_shop_block_render: +sylius_cms_plugin_shop_block_render: path: /block/{code} methods: [GET] defaults: - _controller: bitbag_sylius_cms_plugin.controller.block::renderBlockAction + _controller: sylius_cms_plugin.controller.block::renderBlockAction _sylius: repository: method: findOneByCode arguments: - $code -bitbag_sylius_cms_plugin_shop_block_index_by_collection_code: +sylius_cms_plugin_shop_block_index_by_collection_code: path: /blocks/collection/{collectionCode} methods: [GET] defaults: - _controller: bitbag_sylius_cms_plugin.controller.block::indexAction + _controller: sylius_cms_plugin.controller.block::indexAction _sylius: template: $template repository: diff --git a/src/Resources/config/routing/shop/collection.yml b/src/Resources/config/routing/shop/collection.yml index 051ea55cb..00da1c199 100755 --- a/src/Resources/config/routing/shop/collection.yml +++ b/src/Resources/config/routing/shop/collection.yml @@ -1,8 +1,8 @@ -bitbag_sylius_cms_plugin_shop_collection_show: +sylius_cms_plugin_shop_collection_show: path: /collection/{code} methods: [GET] defaults: - _controller: bitbag_sylius_cms_plugin.controller.collection::showAction + _controller: sylius_cms_plugin.controller.collection::showAction _sylius: template: $template repository: @@ -10,11 +10,11 @@ bitbag_sylius_cms_plugin_shop_collection_show: arguments: - $code -bitbag_sylius_cms_plugin_shop_collection_show_codes: +sylius_cms_plugin_shop_collection_show_codes: path: /collections/{codes} methods: [GET] defaults: - _controller: bitbag_sylius_cms_plugin.controller.collection::indexAction + _controller: sylius_cms_plugin.controller.collection::indexAction _sylius: template: $template repository: diff --git a/src/Resources/config/routing/shop/media.yml b/src/Resources/config/routing/shop/media.yml index 5f2cad417..7dd5fa10f 100755 --- a/src/Resources/config/routing/shop/media.yml +++ b/src/Resources/config/routing/shop/media.yml @@ -1,14 +1,14 @@ -bitbag_sylius_cms_plugin_shop_media_render: +sylius_cms_plugin_shop_media_render: path: /media/{code} methods: [GET] defaults: - _controller: bitbag_sylius_cms_plugin.controller.media.overriden::renderMediaAction + _controller: sylius_cms_plugin.controller.media.overriden::renderMediaAction -bitbag_sylius_cms_plugin_shop_media_render_template: +sylius_cms_plugin_shop_media_render_template: path: /media-template/{code} methods: [GET] defaults: - _controller: bitbag_sylius_cms_plugin.controller.media.overriden::showAction + _controller: sylius_cms_plugin.controller.media.overriden::showAction _sylius: template: $template repository: @@ -18,25 +18,25 @@ bitbag_sylius_cms_plugin_shop_media_render_template: - "expr:service('sylius.context.locale').getLocaleCode()" - "expr:service('sylius.context.channel').getChannel().getCode()" -bitbag_sylius_cms_plugin_shop_media_download: +sylius_cms_plugin_shop_media_download: path: /media/download/{code} methods: [GET] defaults: - _controller: bitbag_sylius_cms_plugin.controller.media.overriden::downloadMediaAction + _controller: sylius_cms_plugin.controller.media.overriden::downloadMediaAction disposition: !php/const Symfony\Component\HttpFoundation\ResponseHeaderBag::DISPOSITION_ATTACHMENT -bitbag_sylius_cms_plugin_shop_media_inline: +sylius_cms_plugin_shop_media_inline: path: /media/inline/{code} methods: [GET] defaults: - _controller: bitbag_sylius_cms_plugin.controller.media.overriden::downloadMediaAction + _controller: sylius_cms_plugin.controller.media.overriden::downloadMediaAction disposition: !php/const Symfony\Component\HttpFoundation\ResponseHeaderBag::DISPOSITION_INLINE -bitbag_sylius_cms_plugin_shop_media_index_by_collection_code: +sylius_cms_plugin_shop_media_index_by_collection_code: path: /media/collection/{collectionCode} methods: [GET] defaults: - _controller: bitbag_sylius_cms_plugin.controller.media.overriden::indexAction + _controller: sylius_cms_plugin.controller.media.overriden::indexAction _sylius: template: $template repository: @@ -46,11 +46,11 @@ bitbag_sylius_cms_plugin_shop_media_index_by_collection_code: - "expr:service('sylius.context.locale').getLocaleCode()" - "expr:service('sylius.context.channel').getChannel().getCode()" -bitbag_sylius_cms_plugin_shop_media_index_by_product_code: +sylius_cms_plugin_shop_media_index_by_product_code: path: /media/product/{productCode} methods: [GET] defaults: - _controller: bitbag_sylius_cms_plugin.controller.media.overriden::indexAction + _controller: sylius_cms_plugin.controller.media.overriden::indexAction _sylius: template: $template repository: diff --git a/src/Resources/config/routing/shop/page.yml b/src/Resources/config/routing/shop/page.yml index 5162c6be1..617a2cf8a 100755 --- a/src/Resources/config/routing/shop/page.yml +++ b/src/Resources/config/routing/shop/page.yml @@ -1,8 +1,8 @@ -bitbag_sylius_cms_plugin_shop_page_show: +sylius_cms_plugin_shop_page_show: path: /page/{slug} methods: [GET] defaults: - _controller: bitbag_sylius_cms_plugin.controller.page.overriden::showAction + _controller: sylius_cms_plugin.controller.page.overriden::showAction _sylius: template: "@BitBagSyliusCmsPlugin/Shop/Page/show.html.twig" repository: @@ -12,11 +12,11 @@ bitbag_sylius_cms_plugin_shop_page_show: - "expr:service('sylius.context.locale').getLocaleCode()" - "expr:service('sylius.context.channel').getChannel().getCode()" -bitbag_sylius_cms_plugin_shop_page_show_link_by_code: +sylius_cms_plugin_shop_page_show_link_by_code: path: /page/link/{code} methods: [GET] defaults: - _controller: bitbag_sylius_cms_plugin.controller.page.overriden::renderLinkAction + _controller: sylius_cms_plugin.controller.page.overriden::renderLinkAction _sylius: template: $template repository: @@ -24,24 +24,24 @@ bitbag_sylius_cms_plugin_shop_page_show_link_by_code: arguments: - $code -bitbag_sylius_cms_plugin_shop_page_index_by_collection_code: +sylius_cms_plugin_shop_page_index_by_collection_code: path: /page/{collectionCode} methods: [GET] defaults: - _controller: bitbag_sylius_cms_plugin.controller.page.overriden::indexAction + _controller: sylius_cms_plugin.controller.page.overriden::indexAction _sylius: template: "@BitBagSyliusCmsPlugin/Shop/Page/index.html.twig" - grid: bitbag_sylius_cms_plugin_shop_page + grid: sylius_cms_plugin_shop_page repository: method: findByCollectionCode arguments: - $collectionCode -bitbag_sylius_cms_plugin_shop_page_index_by_collection_code_no_grid: +sylius_cms_plugin_shop_page_index_by_collection_code_no_grid: path: /pages/{collectionCode}/no-grid methods: [GET] defaults: - _controller: bitbag_sylius_cms_plugin.controller.page.overriden::indexAction + _controller: sylius_cms_plugin.controller.page.overriden::indexAction _sylius: template: "@BitBagSyliusCmsPlugin/Shop/Page/index.html.twig" repository: @@ -49,14 +49,14 @@ bitbag_sylius_cms_plugin_shop_page_index_by_collection_code_no_grid: arguments: - $collectionCode -bitbag_sylius_cms_plugin_shop_page_index_by_collection_code_template: +sylius_cms_plugin_shop_page_index_by_collection_code_template: path: /pages-template/{collectionCode} methods: [GET] defaults: - _controller: bitbag_sylius_cms_plugin.controller.page.overriden::indexAction + _controller: sylius_cms_plugin.controller.page.overriden::indexAction _sylius: template: $template - grid: bitbag_sylius_cms_plugin_shop_page + grid: sylius_cms_plugin_shop_page repository: method: findByCollectionCode arguments: diff --git a/src/Resources/config/serializer/Entity.Media.yml b/src/Resources/config/serializer/Entity.Media.yml index 80175b550..5fb7c8a6d 100644 --- a/src/Resources/config/serializer/Entity.Media.yml +++ b/src/Resources/config/serializer/Entity.Media.yml @@ -19,7 +19,7 @@ Sylius\CmsPlugin\Entity\Media: - rel: self href: - route: bitbag_sylius_cms_plugin_shop_media_inline + route: sylius_cms_plugin_shop_media_inline parameters: _locale: expr(object.getTranslation().getLocale()) code: expr(object.getCode()) diff --git a/src/Resources/config/services.xml b/src/Resources/config/services.xml index f53d9a884..2a4a523fc 100644 --- a/src/Resources/config/services.xml +++ b/src/Resources/config/services.xml @@ -6,38 +6,38 @@ - Sylius\CmsPlugin\MediaProvider\ProviderInterface + Sylius\CmsPlugin\MediaProvider\ProviderInterface - + - - - + + + - - + + - - %bitbag_sylius_cms_plugin.media_provider.interface% + + %sylius_cms_plugin.media_provider.interface% Media provider - - + + - + - %bitbag_sylius_cms_plugin.uploader.filesystem% + %sylius_cms_plugin.uploader.filesystem% - + diff --git a/src/Resources/config/services/assigner.xml b/src/Resources/config/services/assigner.xml index d565b824a..a5a302443 100644 --- a/src/Resources/config/services/assigner.xml +++ b/src/Resources/config/services/assigner.xml @@ -4,27 +4,27 @@ - + - + - + - - + + - + - + diff --git a/src/Resources/config/services/controller.xml b/src/Resources/config/services/controller.xml index 5b5aee282..bbbd4377a 100644 --- a/src/Resources/config/services/controller.xml +++ b/src/Resources/config/services/controller.xml @@ -4,51 +4,51 @@ - + - + - + - - + + - + - - - - + + + + - + - + - + - + - + @@ -58,12 +58,12 @@ - + - + - + @@ -73,6 +73,6 @@ - + diff --git a/src/Resources/config/services/event_listener.xml b/src/Resources/config/services/event_listener.xml index 3613dd2fa..5225e3ae1 100644 --- a/src/Resources/config/services/event_listener.xml +++ b/src/Resources/config/services/event_listener.xml @@ -4,18 +4,18 @@ - - + + - - - - + + + + - + diff --git a/src/Resources/config/services/fixture.xml b/src/Resources/config/services/fixture.xml index 28d32aa0d..11d4d07a6 100644 --- a/src/Resources/config/services/fixture.xml +++ b/src/Resources/config/services/fixture.xml @@ -4,69 +4,69 @@ - - + + - - + + - - + + - - + + - - + + - - - - - - - - - + + + + + + + + + - - - - - - - + + + + + + + - - - - + + + + - - - - - - - + + + + + + + - - - + + + diff --git a/src/Resources/config/services/form.xml b/src/Resources/config/services/form.xml index a2e7956f1..b44b8ee54 100644 --- a/src/Resources/config/services/form.xml +++ b/src/Resources/config/services/form.xml @@ -2,155 +2,155 @@ - Sylius\CmsPlugin\Form\Type\ContentElements\TextareaContentElementType::TYPE - Sylius\CmsPlugin\Form\Type\ContentElements\SingleMediaContentElementType::TYPE - Sylius\CmsPlugin\Form\Type\ContentElements\MultipleMediaContentElementType::TYPE - Sylius\CmsPlugin\Form\Type\ContentElements\HeadingContentElementType::TYPE - Sylius\CmsPlugin\Form\Type\ContentElements\ProductsCarouselContentElementType::TYPE - Sylius\CmsPlugin\Form\Type\ContentElements\ProductsCarouselByTaxonContentElementType::TYPE - Sylius\CmsPlugin\Form\Type\ContentElements\ProductsGridContentElementType::TYPE - Sylius\CmsPlugin\Form\Type\ContentElements\ProductsGridByTaxonContentElementType::TYPE - Sylius\CmsPlugin\Form\Type\ContentElements\TaxonsListContentElementType::TYPE - Sylius\CmsPlugin\Form\Type\ContentElements\PagesCollectionContentElementType::TYPE - Sylius\CmsPlugin\Form\Type\ContentElements\SpacerContentElementType::TYPE + Sylius\CmsPlugin\Form\Type\ContentElements\TextareaContentElementType::TYPE + Sylius\CmsPlugin\Form\Type\ContentElements\SingleMediaContentElementType::TYPE + Sylius\CmsPlugin\Form\Type\ContentElements\MultipleMediaContentElementType::TYPE + Sylius\CmsPlugin\Form\Type\ContentElements\HeadingContentElementType::TYPE + Sylius\CmsPlugin\Form\Type\ContentElements\ProductsCarouselContentElementType::TYPE + Sylius\CmsPlugin\Form\Type\ContentElements\ProductsCarouselByTaxonContentElementType::TYPE + Sylius\CmsPlugin\Form\Type\ContentElements\ProductsGridContentElementType::TYPE + Sylius\CmsPlugin\Form\Type\ContentElements\ProductsGridByTaxonContentElementType::TYPE + Sylius\CmsPlugin\Form\Type\ContentElements\TaxonsListContentElementType::TYPE + Sylius\CmsPlugin\Form\Type\ContentElements\PagesCollectionContentElementType::TYPE + Sylius\CmsPlugin\Form\Type\ContentElements\SpacerContentElementType::TYPE - - %bitbag_sylius_cms_plugin.model.block.class% - %bitbag_sylius_cms_plugin.form.type.block.validation_groups% + + %sylius_cms_plugin.model.block.class% + %sylius_cms_plugin.form.type.block.validation_groups% - + Sylius\CmsPlugin\Entity\ContentConfiguration - %bitbag_sylius_cms_plugin.form.type.content_configuration.validation_groups% - + %sylius_cms_plugin.form.type.content_configuration.validation_groups% + - + Sylius\CmsPlugin\Entity\BlockImage - %bitbag_sylius_cms_plugin.form.type.block_image.validation_groups% + %sylius_cms_plugin.form.type.block_image.validation_groups% - - %bitbag_sylius_cms_plugin.model.page.class% - %bitbag_sylius_cms_plugin.form.type.page.validation_groups% + + %sylius_cms_plugin.model.page.class% + %sylius_cms_plugin.form.type.page.validation_groups% - - %bitbag_sylius_cms_plugin.model.page_translation.class% - %bitbag_sylius_cms_plugin.form.type.translation.page.validation_groups% + + %sylius_cms_plugin.model.page_translation.class% + %sylius_cms_plugin.form.type.translation.page.validation_groups% - - %bitbag_sylius_cms_plugin.model.collection.class% - %bitbag_sylius_cms_plugin.form.type.collection.validation_groups% + + %sylius_cms_plugin.model.collection.class% + %sylius_cms_plugin.form.type.collection.validation_groups% - + - - %bitbag_sylius_cms_plugin.model.media_translation.class% - %bitbag_sylius_cms_plugin.form.type.translation.media.validation_groups% + + %sylius_cms_plugin.model.media_translation.class% + %sylius_cms_plugin.form.type.translation.media.validation_groups% - - %bitbag_sylius_cms_plugin.model.media.class% - %bitbag_sylius_cms_plugin.form.type.media.validation_groups% - %bitbag_sylius_cms_plugin.media_providers% + + %sylius_cms_plugin.model.media.class% + %sylius_cms_plugin.form.type.media.validation_groups% + %sylius_cms_plugin.media_providers% - + - - %bitbag_sylius_cms_plugin.model.template.class% - %bitbag_sylius_cms_plugin.form.type.template.validation_groups% + + %sylius_cms_plugin.model.template.class% + %sylius_cms_plugin.form.type.template.validation_groups% - - + + - - + + - - - + + + - - - + + + - - + + - - + + - + - + - - + + - + - + - - + + - - - + + + - - + + - - + + diff --git a/src/Resources/config/services/importer.xml b/src/Resources/config/services/importer.xml index 161394aae..f286c0e2c 100644 --- a/src/Resources/config/services/importer.xml +++ b/src/Resources/config/services/importer.xml @@ -4,37 +4,37 @@ - + - - + + - - + + - - - - - - - - + + + + + + + + - + - - + + - + - + diff --git a/src/Resources/config/services/media_provider.xml b/src/Resources/config/services/media_provider.xml index ceb1fe187..21ab1e2b3 100644 --- a/src/Resources/config/services/media_provider.xml +++ b/src/Resources/config/services/media_provider.xml @@ -4,28 +4,28 @@ - - + + @BitBagSyliusCmsPlugin/Shop/Media/Show/image.html.twig media/image - + - - + + @BitBagSyliusCmsPlugin/Shop/Media/Show/video.html.twig media/video - + - - + + @BitBagSyliusCmsPlugin/Shop/Media/Show/file.html.twig media/file - + diff --git a/src/Resources/config/services/menu.xml b/src/Resources/config/services/menu.xml index a60852cd5..3586fbb71 100644 --- a/src/Resources/config/services/menu.xml +++ b/src/Resources/config/services/menu.xml @@ -4,6 +4,6 @@ - + diff --git a/src/Resources/config/services/renderer.xml b/src/Resources/config/services/renderer.xml index 5039b27f5..45c0278a2 100644 --- a/src/Resources/config/services/renderer.xml +++ b/src/Resources/config/services/renderer.xml @@ -4,98 +4,98 @@ - - - + + + - + - + - + - - - + + + - + - - - + + + - + - + - + - + - + - + - + - + - + - + - + - + - + - - + + - + - + - - + + - - - + + + - - - + + + - - - + + + - + diff --git a/src/Resources/config/services/resolver.xml b/src/Resources/config/services/resolver.xml index 090c984c1..cfb54c14e 100644 --- a/src/Resources/config/services/resolver.xml +++ b/src/Resources/config/services/resolver.xml @@ -4,81 +4,81 @@ - - - + + + code - - - + + + code - - - + + + code - - - + + + code - - + + - - + + - - + + - - + + - - + + - - + + - - + + - - + + - - + + - - + + - - + + diff --git a/src/Resources/config/services/twig.xml b/src/Resources/config/services/twig.xml index c3875daf3..95ec0e356 100644 --- a/src/Resources/config/services/twig.xml +++ b/src/Resources/config/services/twig.xml @@ -2,82 +2,82 @@ - - bitbag_cms_render_block - bitbag_cms_render_media + + sylius_cms_render_block + sylius_cms_render_media - @BitBagSyliusCmsPlugin/Page/link.html.twig + @BitBagSyliusCmsPlugin/Page/link.html.twig - - + + - - + + - + - - + + - + - - + + - - + + - - - + + + - + - - + + - + - - + + - + - %bitbag_cms.twig.admin_functions% + %sylius_cms.twig.admin_functions% - + - - + + - %bitbag_cms.twig.link_template% + %sylius_cms.twig.link_template% diff --git a/src/Resources/config/validation/Block.xml b/src/Resources/config/validation/Block.xml index b7981692c..467154d7d 100644 --- a/src/Resources/config/validation/Block.xml +++ b/src/Resources/config/validation/Block.xml @@ -11,12 +11,12 @@ - + - + @@ -24,15 +24,15 @@ - - + + - + @@ -48,8 +48,8 @@ - - + + diff --git a/src/Resources/config/validation/Collection.xml b/src/Resources/config/validation/Collection.xml index 1f0528bbc..e276332df 100644 --- a/src/Resources/config/validation/Collection.xml +++ b/src/Resources/config/validation/Collection.xml @@ -8,7 +8,7 @@ - + @@ -16,7 +16,7 @@ - + @@ -24,15 +24,15 @@ - - + + - + @@ -41,7 +41,7 @@ - + @@ -49,8 +49,8 @@ - - + + diff --git a/src/Resources/config/validation/Media.xml b/src/Resources/config/validation/Media.xml index 34a523f88..033b274ff 100644 --- a/src/Resources/config/validation/Media.xml +++ b/src/Resources/config/validation/Media.xml @@ -11,20 +11,20 @@ - + - - + + - + @@ -32,15 +32,15 @@ - - + + - + @@ -56,8 +56,8 @@ - - + + @@ -67,7 +67,7 @@ - + diff --git a/src/Resources/config/validation/MediaTranslation.xml b/src/Resources/config/validation/MediaTranslation.xml index d3d497d61..903b98fc8 100644 --- a/src/Resources/config/validation/MediaTranslation.xml +++ b/src/Resources/config/validation/MediaTranslation.xml @@ -8,8 +8,8 @@ - - + + @@ -20,8 +20,8 @@ - - + + @@ -31,8 +31,8 @@ - - + + diff --git a/src/Resources/config/validation/Page.xml b/src/Resources/config/validation/Page.xml index fea74165f..dc3854f0f 100644 --- a/src/Resources/config/validation/Page.xml +++ b/src/Resources/config/validation/Page.xml @@ -8,7 +8,7 @@ - + @@ -16,7 +16,7 @@ - + @@ -24,15 +24,15 @@ - - + + - + @@ -41,7 +41,7 @@ - + @@ -49,8 +49,8 @@ - - + + diff --git a/src/Resources/config/validation/PageTranslation.xml b/src/Resources/config/validation/PageTranslation.xml index 78f4f37fc..26a1021ee 100644 --- a/src/Resources/config/validation/PageTranslation.xml +++ b/src/Resources/config/validation/PageTranslation.xml @@ -13,15 +13,15 @@ - + - - + + @@ -32,8 +32,8 @@ - - + + @@ -44,8 +44,8 @@ - - + + diff --git a/src/Resources/config/validation/Template.xml b/src/Resources/config/validation/Template.xml index 837c71ba2..9c517cb50 100644 --- a/src/Resources/config/validation/Template.xml +++ b/src/Resources/config/validation/Template.xml @@ -11,12 +11,12 @@ - + - + @@ -24,8 +24,8 @@ - - + + diff --git a/src/Resources/public/build/bitbag-cms-admin.js b/src/Resources/public/build/bitbag-cms-admin.js index 90e473396..719e970ac 100644 --- a/src/Resources/public/build/bitbag-cms-admin.js +++ b/src/Resources/public/build/bitbag-cms-admin.js @@ -1,2 +1,2 @@ /*! For license information please see bitbag-cms-admin.js.LICENSE.txt */ -(()=>{var t={461:()=>{$(document).ready((function(){$(".bitbag-media-autocomplete, .sylius-autocomplete").each((function(t,e){$(e).autoComplete()}));var t="#bitbag_sylius_cms_plugin_page_contentElements",e=$(t).length?t:"#bitbag_sylius_cms_plugin_block_contentElements";$(e).length&&($(document).on("collection-form-add",(function(){$(".bitbag-media-autocomplete, .sylius-autocomplete").each((function(t,e){void 0===$._data($(e).get(0),"events")&&$(e).autoComplete()})),$("".concat(e,' [data-form-collection="item"]')).each((function(t,e){$(document).loadContentConfiguration(e)}))})),$.fn.extend({loadContentConfiguration:function(t){t.querySelector("".concat(e,' select[name*="type"]')).onchange=function(){var t=this.parentElement,e=document.createElement("div"),r=this.selectedOptions[0];e.innerHTML=r.getAttribute("data-configuration");var n=t.nextElementSibling;t.parentElement.replaceChild(e,n);var o=n.querySelector("input");o||(o=n.querySelector("textarea"));var i=o.getAttribute("name"),a=e.querySelectorAll("input");a.length||(a=e.querySelectorAll("textarea")),a.forEach((function(t){var r=t.getAttribute("name");r&&(r=i.replace(i.substring(i.indexOf("[configuration]")+15),r.substring(r.indexOf("configuration")+13)),$(t).attr("name",r),$(e).find(".bitbag-media-autocomplete").autoComplete(),$(e).find(".sylius-autocomplete").autoComplete())}))}}}),$("".concat(e,' [data-form-collection="item"]')).each((function(t,e){$(document).loadContentConfiguration(e)})),$(document).loadContentConfiguration(document.querySelector("".concat(e,' [data-form-collection="item"]'))))}))}},e={};function r(n){var o=e[n];if(void 0!==o)return o.exports;var i=e[n]={exports:{}};return t[n](i,i.exports,r),i.exports}(()=>{"use strict";r(461);function t(e){return t="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},t(e)}function e(t,e){for(var r=0;r0&&void 0!==arguments[0]?arguments[0]:{textField:"data-bb-cms-text",fileField:"data-bb-cms-file"};!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.config=e,this.textField=document.querySelector("[".concat(e.textField,"]")),this.fileField=document.querySelector("[".concat(e.fileField,"]"))},n=[{key:"init",value:function(){if("object"!==t(this.config))throw new Error("Bitbag CMS Plugin - HandleCsvUpload class config is not a valid object");this._handleFields()}},{key:"_handleFields",value:function(){this._handleTextField(),this._handleFileField()}},{key:"_handleTextField",value:function(){var t=this;this.textField.addEventListener("click",(function(){t.fileField.click()}))}},{key:"_handleFileField",value:function(){var t=this;this.fileField.addEventListener("change",(function(e){t.textField.value=e.target.files[0].name}))}}],n&&e(r.prototype,n),o&&e(r,o),Object.defineProperty(r,"prototype",{writable:!1}),r;var r,n,o}();const i=function(t,e,r){var n=new CustomEvent("".concat("bb",".").concat(e),{detail:r});return t.dispatchEvent(n),t};function a(){a=function(){return e};var t,e={},r=Object.prototype,n=r.hasOwnProperty,o=Object.defineProperty||function(t,e,r){t[e]=r.value},i="function"==typeof Symbol?Symbol:{},c=i.iterator||"@@iterator",u=i.asyncIterator||"@@asyncIterator",s=i.toStringTag||"@@toStringTag";function f(t,e,r){return Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{f({},"")}catch(t){f=function(t,e,r){return t[e]=r}}function h(t,e,r,n){var i=e&&e.prototype instanceof b?e:b,a=Object.create(i.prototype),c=new I(n||[]);return o(a,"_invoke",{value:O(t,r,c)}),a}function d(t,e,r){try{return{type:"normal",arg:t.call(e,r)}}catch(t){return{type:"throw",arg:t}}}e.wrap=h;var p="suspendedStart",y="suspendedYield",v="executing",m="completed",g={};function b(){}function w(){}function _(){}var S={};f(S,c,(function(){return this}));var E=Object.getPrototypeOf,L=E&&E(E(F([])));L&&L!==r&&n.call(L,c)&&(S=L);var x=_.prototype=b.prototype=Object.create(S);function k(t){["next","throw","return"].forEach((function(e){f(t,e,(function(t){return this._invoke(e,t)}))}))}function j(t,e){function r(o,i,a,c){var u=d(t[o],t,i);if("throw"!==u.type){var s=u.arg,f=s.value;return f&&"object"==l(f)&&n.call(f,"__await")?e.resolve(f.__await).then((function(t){r("next",t,a,c)}),(function(t){r("throw",t,a,c)})):e.resolve(f).then((function(t){s.value=t,a(s)}),(function(t){return r("throw",t,a,c)}))}c(u.arg)}var i;o(this,"_invoke",{value:function(t,n){function o(){return new e((function(e,o){r(t,n,e,o)}))}return i=i?i.then(o,o):o()}})}function O(e,r,n){var o=p;return function(i,a){if(o===v)throw Error("Generator is already running");if(o===m){if("throw"===i)throw a;return{value:t,done:!0}}for(n.method=i,n.arg=a;;){var c=n.delegate;if(c){var u=P(c,n);if(u){if(u===g)continue;return u}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(o===p)throw o=m,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);o=v;var l=d(e,r,n);if("normal"===l.type){if(o=n.done?m:y,l.arg===g)continue;return{value:l.arg,done:n.done}}"throw"===l.type&&(o=m,n.method="throw",n.arg=l.arg)}}}function P(e,r){var n=r.method,o=e.iterator[n];if(o===t)return r.delegate=null,"throw"===n&&e.iterator.return&&(r.method="return",r.arg=t,P(e,r),"throw"===r.method)||"return"!==n&&(r.method="throw",r.arg=new TypeError("The iterator does not provide a '"+n+"' method")),g;var i=d(o,e.iterator,r.arg);if("throw"===i.type)return r.method="throw",r.arg=i.arg,r.delegate=null,g;var a=i.arg;return a?a.done?(r[e.resultName]=a.value,r.next=e.nextLoc,"return"!==r.method&&(r.method="next",r.arg=t),r.delegate=null,g):a:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,g)}function T(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function C(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function I(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(T,this),this.reset(!0)}function F(e){if(e||""===e){var r=e[c];if(r)return r.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var o=-1,i=function r(){for(;++o=0;--i){var a=this.tryEntries[i],c=a.completion;if("root"===a.tryLoc)return o("end");if(a.tryLoc<=this.prev){var u=n.call(a,"catchLoc"),l=n.call(a,"finallyLoc");if(u&&l){if(this.prev=0;--r){var o=this.tryEntries[r];if(o.tryLoc<=this.prev&&n.call(o,"finallyLoc")&&this.prev=0;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),C(r),g}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.tryLoc===t){var n=r.completion;if("throw"===n.type){var o=n.arg;C(r)}return o}}throw Error("illegal catch attempt")},delegateYield:function(e,r,n){return this.delegate={iterator:F(e),resultName:r,nextLoc:n},"next"===this.method&&(this.arg=t),g}},e}function c(t,e,r,n,o,i,a){try{var c=t[i](a),u=c.value}catch(t){return void r(t)}c.done?e(u):Promise.resolve(u).then(n,o)}function u(t){return function(){var e=this,r=arguments;return new Promise((function(n,o){var i=t.apply(e,r);function a(t){c(i,n,o,a,u,"next",t)}function u(t){c(i,n,o,a,u,"throw",t)}a(void 0)}))}}function l(t){return l="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},l(t)}function s(t,e){for(var r=0;r0&&void 0!==arguments[0]?arguments[0]:{wrappersIndicator:"data-bb-cms-wrapper",lockFieldIndicator:"data-bb-cms-toggle-slug",bbTarget:"bitbag_sylius_cms_plugin_page",nameField:"bitbag_sylius_cms_plugin_page_name"};!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.wrappers=document.querySelectorAll("[".concat(e.wrappersIndicator,"]")),this.lockFieldIndicator="[".concat(e.lockFieldIndicator,"]"),this.bbTarget=e.bbTarget,this.config=e,this.nameField=document.getElementById("".concat(e.nameField))},e=[{key:"init",value:function(){if("object"!==l(this.config))throw new Error("Bitbag CMS Plugin - HandleSlugUpdate class config is not a valid object");if("string"!=typeof this.lockFieldIndicator||"string"!=typeof this.bbTarget)throw new Error("Bitbag CMS Plugin - HandleSlugUpdate class config key values are not valid strings");if(!this.nameField)throw new Error("Bitbag CMS Plugin - HandleSlugUpdate name field not found");this._handleFields()}},{key:"_handleFields",value:function(){var t=this;this.wrappers.forEach((function(e){var r=e.dataset.locale,n=e.querySelector("#".concat(t.bbTarget,"_translations_").concat(r,"_slug"));if(n||(n=e.querySelector("#".concat(t.bbTarget,"_slug"))),n){var o;t.nameField.addEventListener("input",(function(e){e.preventDefault(),n.readOnly||(clearTimeout(o),o=setTimeout((function(){t._updateSlug(n,t.nameField.value)}),1e3))}));var i=e.querySelector(t.lockFieldIndicator);i&&i.addEventListener("click",(function(e){e.preventDefault(),t._toggleSlugModification(n,i)}))}}))}},{key:"_updateSlug",value:(o=u(a().mark((function t(e,r){return a().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return i(e,"cms.slug.update.start"),e.parentNode.classList.add("loading"),t.next=4,this._getValidSlug(e.dataset.url,r);case 4:e.value=t.sent,e.parentNode.classList.remove("loading"),i(e,"cms.slug.update.end");case 7:case"end":return t.stop()}}),t,this)}))),function(t,e){return o.apply(this,arguments)})},{key:"_getValidSlug",value:(n=u(a().mark((function t(e,r){var n,o;return a().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.prev=0,t.next=3,fetch("".concat(e,"?name=").concat(encodeURIComponent(r)));case 3:return n=t.sent,t.next=6,n.json();case 6:return o=t.sent,t.abrupt("return",o.slug);case 10:t.prev=10,t.t0=t.catch(0),console.error("BitBag CMS Plugin - HandleSlugUpdate class error : ".concat(t.t0));case 13:case"end":return t.stop()}}),t,null,[[0,10]])}))),function(t,e){return n.apply(this,arguments)})},{key:"_toggleSlugModification",value:function(t,e){t.readOnly=!t.readOnly;var r=e.querySelector("i");r.classList.toggle("lock"),r.classList.toggle("unlock")}}],e&&s(t.prototype,e),r&&s(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t;var t,e,r,n,o}();function d(){d=function(){return e};var t,e={},r=Object.prototype,n=r.hasOwnProperty,o=Object.defineProperty||function(t,e,r){t[e]=r.value},i="function"==typeof Symbol?Symbol:{},a=i.iterator||"@@iterator",c=i.asyncIterator||"@@asyncIterator",u=i.toStringTag||"@@toStringTag";function l(t,e,r){return Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{l({},"")}catch(t){l=function(t,e,r){return t[e]=r}}function s(t,e,r,n){var i=e&&e.prototype instanceof b?e:b,a=Object.create(i.prototype),c=new I(n||[]);return o(a,"_invoke",{value:O(t,r,c)}),a}function f(t,e,r){try{return{type:"normal",arg:t.call(e,r)}}catch(t){return{type:"throw",arg:t}}}e.wrap=s;var h="suspendedStart",p="suspendedYield",y="executing",v="completed",g={};function b(){}function w(){}function _(){}var S={};l(S,a,(function(){return this}));var E=Object.getPrototypeOf,L=E&&E(E(F([])));L&&L!==r&&n.call(L,a)&&(S=L);var x=_.prototype=b.prototype=Object.create(S);function k(t){["next","throw","return"].forEach((function(e){l(t,e,(function(t){return this._invoke(e,t)}))}))}function j(t,e){function r(o,i,a,c){var u=f(t[o],t,i);if("throw"!==u.type){var l=u.arg,s=l.value;return s&&"object"==m(s)&&n.call(s,"__await")?e.resolve(s.__await).then((function(t){r("next",t,a,c)}),(function(t){r("throw",t,a,c)})):e.resolve(s).then((function(t){l.value=t,a(l)}),(function(t){return r("throw",t,a,c)}))}c(u.arg)}var i;o(this,"_invoke",{value:function(t,n){function o(){return new e((function(e,o){r(t,n,e,o)}))}return i=i?i.then(o,o):o()}})}function O(e,r,n){var o=h;return function(i,a){if(o===y)throw Error("Generator is already running");if(o===v){if("throw"===i)throw a;return{value:t,done:!0}}for(n.method=i,n.arg=a;;){var c=n.delegate;if(c){var u=P(c,n);if(u){if(u===g)continue;return u}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(o===h)throw o=v,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);o=y;var l=f(e,r,n);if("normal"===l.type){if(o=n.done?v:p,l.arg===g)continue;return{value:l.arg,done:n.done}}"throw"===l.type&&(o=v,n.method="throw",n.arg=l.arg)}}}function P(e,r){var n=r.method,o=e.iterator[n];if(o===t)return r.delegate=null,"throw"===n&&e.iterator.return&&(r.method="return",r.arg=t,P(e,r),"throw"===r.method)||"return"!==n&&(r.method="throw",r.arg=new TypeError("The iterator does not provide a '"+n+"' method")),g;var i=f(o,e.iterator,r.arg);if("throw"===i.type)return r.method="throw",r.arg=i.arg,r.delegate=null,g;var a=i.arg;return a?a.done?(r[e.resultName]=a.value,r.next=e.nextLoc,"return"!==r.method&&(r.method="next",r.arg=t),r.delegate=null,g):a:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,g)}function T(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function C(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function I(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(T,this),this.reset(!0)}function F(e){if(e||""===e){var r=e[a];if(r)return r.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var o=-1,i=function r(){for(;++o=0;--i){var a=this.tryEntries[i],c=a.completion;if("root"===a.tryLoc)return o("end");if(a.tryLoc<=this.prev){var u=n.call(a,"catchLoc"),l=n.call(a,"finallyLoc");if(u&&l){if(this.prev=0;--r){var o=this.tryEntries[r];if(o.tryLoc<=this.prev&&n.call(o,"finallyLoc")&&this.prev=0;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),C(r),g}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.tryLoc===t){var n=r.completion;if("throw"===n.type){var o=n.arg;C(r)}return o}}throw Error("illegal catch attempt")},delegateYield:function(e,r,n){return this.delegate={iterator:F(e),resultName:r,nextLoc:n},"next"===this.method&&(this.arg=t),g}},e}function p(t,e,r,n,o,i,a){try{var c=t[i](a),u=c.value}catch(t){return void r(t)}c.done?e(u):Promise.resolve(u).then(n,o)}function y(t){return function(t){if(Array.isArray(t))return v(t)}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||function(t,e){if(t){if("string"==typeof t)return v(t,e);var r={}.toString.call(t).slice(8,-1);return"Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r?Array.from(t):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?v(t,e):void 0}}(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function v(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=Array(e);r0&&void 0!==arguments[0]?arguments[0]:{previewButton:"data-bb-cms-preview-btn",previewModal:"data-bb-cms-preview-modal",channelSwitch:"data-bb-cms-channel",localeSwitch:"data-bb-cms-locale"};!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.config=e,this.button=document.querySelector("[".concat(e.previewButton,"]")),this.modal=document.querySelector("[".concat(e.previewModal,"]")),this.modalSelector=e.previewModal,this.channelSelector=e.channelSwitch,this.localeSelector=e.localeSwitch},e=[{key:"init",value:function(){if("object"!==m(this.config))throw new Error("Bitbag CMS Plugin - HandlePreview class config is not a valid object");if("string"!=typeof this.localeSelector||"string"!=typeof this.channelSelector||"string"!=typeof this.modalSelector)throw new Error("Bitbag CMS Plugin - HandlePreview class config key values are not valid strings");this._resourcePreview()}},{key:"_$_CKEDITOR_MODAL_SHOW",value:function(){return $("[".concat(this.modalSelector,"]")).modal("show")}},{key:"_$_CKEDITOR_UPDATE_INSTANCES",value:function(){y(CKEDITOR.instances).forEach((function(t){return t.updateElement()}))}},{key:"_resourcePreview",value:function(){var t=this;this.button.addEventListener("click",(function(e){e.preventDefault(),t._$_CKEDITOR_UPDATE_INSTANCES,t._createPreview(),t._$_CKEDITOR_MODAL_SHOW()})),document.querySelector("[".concat(this.channelSelector,"]")).addEventListener("change",(function(e){e.preventDefault(),t._$_CKEDITOR_UPDATE_INSTANCES,t._createPreview(),t._$_CKEDITOR_MODAL_SHOW()})),document.querySelector("[".concat(this.localeSelector,"]")).addEventListener("change",(function(e){e.preventDefault(),t._$_CKEDITOR_UPDATE_INSTANCES,t._createPreview(),t._$_CKEDITOR_MODAL_SHOW()}))}},{key:"_createPreview",value:(n=d().mark((function t(){var e,r,n,o,a,c,u,l,s;return d().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return this.modal.querySelector(".ui.loadable").classList.add("loading"),this.modal.disabled=!0,e=document.querySelector("[".concat(this.channelSelector,"]")).value,r=document.querySelector("[".concat(this.localeSelector,"]")).value,n=this.button.dataset.url,o=this.button.closest("form"),a={method:"POST",body:new FormData(o)},t.prev=7,i(this.modal,"cms.create.preview.start"),t.next=11,fetch("".concat(n,"?_channel_code=").concat(e,"&_locale=").concat(r),a);case 11:return c=t.sent,t.next=14,c.text();case 14:u=t.sent,l=new Blob([u],{type:"text/html",charset:"utf-8"}),s=window.URL.createObjectURL(l),this.modal.querySelector("iframe").src=s,i(this.modal,"cms.create.preview.completed",u),t.next=25;break;case 21:t.prev=21,t.t0=t.catch(7),console.error("BitBag CMS Plugin - HandlePreview class error : ".concat(t.t0)),i(this.modal,"cms.create.preview.error",t.t0);case 25:return t.prev=25,this.modal.querySelector(".ui.loadable").classList.remove("loading"),this.modal.disabled=!1,i(this.modal,"cms.create.preview.end"),t.finish(25);case 30:case"end":return t.stop()}}),t,this,[[7,21,25,30]])})),o=function(){var t=this,e=arguments;return new Promise((function(r,o){var i=n.apply(t,e);function a(t){p(i,r,o,a,c,"next",t)}function c(t){p(i,r,o,a,c,"throw",t)}a(void 0)}))},function(){return o.apply(this,arguments)})}],e&&g(t.prototype,e),r&&g(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t;var t,e,r,n,o}();function _(){_=function(){return e};var t,e={},r=Object.prototype,n=r.hasOwnProperty,o=Object.defineProperty||function(t,e,r){t[e]=r.value},i="function"==typeof Symbol?Symbol:{},a=i.iterator||"@@iterator",c=i.asyncIterator||"@@asyncIterator",u=i.toStringTag||"@@toStringTag";function l(t,e,r){return Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{l({},"")}catch(t){l=function(t,e,r){return t[e]=r}}function s(t,e,r,n){var i=e&&e.prototype instanceof m?e:m,a=Object.create(i.prototype),c=new I(n||[]);return o(a,"_invoke",{value:O(t,r,c)}),a}function f(t,e,r){try{return{type:"normal",arg:t.call(e,r)}}catch(t){return{type:"throw",arg:t}}}e.wrap=s;var h="suspendedStart",d="suspendedYield",p="executing",y="completed",v={};function m(){}function g(){}function b(){}var w={};l(w,a,(function(){return this}));var S=Object.getPrototypeOf,E=S&&S(S(F([])));E&&E!==r&&n.call(E,a)&&(w=E);var L=b.prototype=m.prototype=Object.create(w);function x(t){["next","throw","return"].forEach((function(e){l(t,e,(function(t){return this._invoke(e,t)}))}))}function j(t,e){function r(o,i,a,c){var u=f(t[o],t,i);if("throw"!==u.type){var l=u.arg,s=l.value;return s&&"object"==k(s)&&n.call(s,"__await")?e.resolve(s.__await).then((function(t){r("next",t,a,c)}),(function(t){r("throw",t,a,c)})):e.resolve(s).then((function(t){l.value=t,a(l)}),(function(t){return r("throw",t,a,c)}))}c(u.arg)}var i;o(this,"_invoke",{value:function(t,n){function o(){return new e((function(e,o){r(t,n,e,o)}))}return i=i?i.then(o,o):o()}})}function O(e,r,n){var o=h;return function(i,a){if(o===p)throw Error("Generator is already running");if(o===y){if("throw"===i)throw a;return{value:t,done:!0}}for(n.method=i,n.arg=a;;){var c=n.delegate;if(c){var u=P(c,n);if(u){if(u===v)continue;return u}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(o===h)throw o=y,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);o=p;var l=f(e,r,n);if("normal"===l.type){if(o=n.done?y:d,l.arg===v)continue;return{value:l.arg,done:n.done}}"throw"===l.type&&(o=y,n.method="throw",n.arg=l.arg)}}}function P(e,r){var n=r.method,o=e.iterator[n];if(o===t)return r.delegate=null,"throw"===n&&e.iterator.return&&(r.method="return",r.arg=t,P(e,r),"throw"===r.method)||"return"!==n&&(r.method="throw",r.arg=new TypeError("The iterator does not provide a '"+n+"' method")),v;var i=f(o,e.iterator,r.arg);if("throw"===i.type)return r.method="throw",r.arg=i.arg,r.delegate=null,v;var a=i.arg;return a?a.done?(r[e.resultName]=a.value,r.next=e.nextLoc,"return"!==r.method&&(r.method="next",r.arg=t),r.delegate=null,v):a:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,v)}function T(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function C(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function I(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(T,this),this.reset(!0)}function F(e){if(e||""===e){var r=e[a];if(r)return r.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var o=-1,i=function r(){for(;++o=0;--i){var a=this.tryEntries[i],c=a.completion;if("root"===a.tryLoc)return o("end");if(a.tryLoc<=this.prev){var u=n.call(a,"catchLoc"),l=n.call(a,"finallyLoc");if(u&&l){if(this.prev=0;--r){var o=this.tryEntries[r];if(o.tryLoc<=this.prev&&n.call(o,"finallyLoc")&&this.prev=0;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),C(r),v}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.tryLoc===t){var n=r.completion;if("throw"===n.type){var o=n.arg;C(r)}return o}}throw Error("illegal catch attempt")},delegateYield:function(e,r,n){return this.delegate={iterator:F(e),resultName:r,nextLoc:n},"next"===this.method&&(this.arg=t),v}},e}function S(t,e){var r="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(!r){if(Array.isArray(t)||(r=function(t,e){if(t){if("string"==typeof t)return E(t,e);var r={}.toString.call(t).slice(8,-1);return"Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r?Array.from(t):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?E(t,e):void 0}}(t))||e&&t&&"number"==typeof t.length){r&&(t=r);var n=0,o=function(){};return{s:o,n:function(){return n>=t.length?{done:!0}:{done:!1,value:t[n++]}},e:function(t){throw t},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,a=!0,c=!1;return{s:function(){r=r.call(t)},n:function(){var t=r.next();return a=t.done,t},e:function(t){c=!0,i=t},f:function(){try{a||null==r.return||r.return()}finally{if(c)throw i}}}}function E(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=Array(e);r0&&void 0!==arguments[0]?arguments[0]:{bbMediaContainer:"data-bb-cms-autocomplete",choiceName:"data-bb-cms-choice-name",choiceValue:"data-bb-cms-choice-value",criteriaType:"data-bb-cms-criteria-type",criteriaName:"data-bb-cms-criteria-name",editUrl:"data-bb-cms-load-edit-url",nameMessage:"data-bb-cms-name-message",deleteButton:"data-bb-cms-delete-selected",choosenPreview:"data-bb-cms-selected-image",selectMenu:"data-bb-cms-selection-menu",selectInput:"data-bb-cms-image-select",placeholder:"data-bb-cms-placeholder",limit:30};!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.config=e,this.mediaContainers=document.querySelectorAll("[".concat(e.bbMediaContainer,"]")),this.deleteButton="[".concat(e.deleteButton,"]"),this.selectMenu="[".concat(e.selectMenu,"]"),this.selectInput="[".concat(e.selectInput,"]"),this.placeholder="[".concat(e.placeholder,"]")},e=[{key:"init",value:function(){var t=this;if("object"!==k(this.config))throw new Error("Bitbag CMS Plugin - HandleAutoComplete class config is not a valid object");this.mediaContainers.forEach((function(e){t._handleSavedValue(e),t._handleImageChoice(e),t._handleResetBtn(e)}))}},{key:"_handleResetBtn",value:function(t){var e=this,r=t.querySelector(this.deleteButton);""!==t.querySelector("input[type=hidden]").value?(r.classList.remove("is-hidden"),r.addEventListener("click",(function(){e._resetValues(t)}))):r.classList.add("is-hidden")}},{key:"_handleImageChoice",value:function(t){var e,r=this;t.querySelector(this.selectInput).addEventListener("click",(function(e){e.preventDefault(),r._getMediaImages(t)})),t.querySelector(this.selectInput).addEventListener("input",(function(n){n.preventDefault(),clearTimeout(e),e=setTimeout((function(){r._getMediaImages(t,n.target.value)}),500)})),t.querySelector("input[type=hidden]").addEventListener("change",(function(e){e.preventDefault(),r._handleResetBtn(t)}))}},{key:"_handleSavedValue",value:(o=x(_().mark((function t(e){var r,n,o,a,c,u,l;return _().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(""!==e.querySelector("input[type=hidden]").value){t.next=2;break}return t.abrupt("return");case 2:return r="".concat(e.dataset.bbCmsLoadEditUrl,"?").concat(e.querySelector("input[type=hidden]").value.split(",").filter(String).map((function(t){return"code[]=".concat(t)})).join("&")),t.prev=3,i(e,"cms.media.saved.reload.start"),e.classList.add("loading"),t.next=8,fetch(r);case 8:return n=t.sent,t.next=11,n.json();case 11:o=t.sent,this._addToSelectMenu(o,e),a=[],null!==(c=e.querySelector(this.selectMenu))&&(a=c.children),u=S(a);try{for(u.s();!(l=u.n()).done;)l.value.click()}catch(t){u.e(t)}finally{u.f()}i(e,"cms.media.saved.reload.completed",o),t.next=25;break;case 21:t.prev=21,t.t0=t.catch(3),console.error("BitBag CMS Plugin - HandleAutoComplete class error : ".concat(t.t0)),i(e,"cms.media.saved.reload.error",t.t0);case 25:return t.prev=25,e.classList.remove("loading"),i(e,"cms.media.saved.reload.end"),t.finish(25);case 29:case"end":return t.stop()}}),t,this,[[3,21,25,29]])}))),function(t){return o.apply(this,arguments)})},{key:"_getMediaImages",value:(n=x(_().mark((function t(e){var r,n,o,a,c,u,l,s,f=arguments;return _().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return r=f.length>1&&void 0!==f[1]&&f[1],n=e.dataset.bbCmsUrl,o=e.dataset.bbCmsCriteriaType,a=r?"&criteria[search][value]=".concat(r):"",c="".concat(n,"&limit=").concat(this.config.limit,"&criteria[search][type]=").concat(o,"&criteria[search][value]=").concat(a),t.prev=5,i(e,"cms.media.display.start"),e.classList.add("loading"),t.next=10,fetch(c);case 10:return u=t.sent,t.next=13,u.json();case 13:l=t.sent,s=l._embedded.items,this._addToSelectMenu(s,e),i(e,"cms.media.display.completed",l),t.next=23;break;case 19:t.prev=19,t.t0=t.catch(5),console.error("BitBag CMS Plugin - HandleAutoComplete class error : ".concat(t.t0)),i(e,"cms.media.display.error",t.t0);case 23:return t.prev=23,e.classList.remove("loading"),i(e,"cms.media.display.end"),t.finish(23);case 27:case"end":return t.stop()}}),t,this,[[5,19,23,27]])}))),function(t){return n.apply(this,arguments)})},{key:"_resetValues",value:function(t){i(t,"cms.media.reset.start"),t.querySelector("input[type=hidden]").value="",t.querySelector(this.selectMenu).innerHTML="",t.querySelector(this.placeholder).innerHTML="",i(t,"cms.media.reset.end")}},{key:"_addToSelectMenu",value:function(t,e){var r=this;i(e,"cms.media.display.update.start");var n=e.querySelector(this.selectMenu);n.innerHTML="",null!==t&&t.forEach((function(t){n.insertAdjacentHTML("beforeend",r._itemTemplate(t.path,t.code.trim()))})),i(e,"cms.media.display.update.end")}},{key:"_itemTemplate",value:function(t,e){return'
').concat(e,"
")}}],e&&j(t.prototype,e),r&&j(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t;var t,e,r,n,o}();function T(t){return T="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},T(t)}function C(t,e){for(var r=0;r0&&(new h).init(),document.querySelectorAll("[data-bb-cms-preview-btn]").length>0&&(new w).init(),document.querySelector('[data-bb-target="cms-handle-autocomplete"]')&&(new P).init(),document.querySelector(".collection-type-items")&&(new F).init(),document.querySelector("[data-bb-cms-load-template]")&&(new N).init()})()})(); \ No newline at end of file +(()=>{var t={461:()=>{$(document).ready((function(){$(".bitbag-media-autocomplete, .sylius-autocomplete").each((function(t,e){$(e).autoComplete()}));var t="#sylius_cms_plugin_page_contentElements",e=$(t).length?t:"#sylius_cms_plugin_block_contentElements";$(e).length&&($(document).on("collection-form-add",(function(){$(".bitbag-media-autocomplete, .sylius-autocomplete").each((function(t,e){void 0===$._data($(e).get(0),"events")&&$(e).autoComplete()})),$("".concat(e,' [data-form-collection="item"]')).each((function(t,e){$(document).loadContentConfiguration(e)}))})),$.fn.extend({loadContentConfiguration:function(t){t.querySelector("".concat(e,' select[name*="type"]')).onchange=function(){var t=this.parentElement,e=document.createElement("div"),r=this.selectedOptions[0];e.innerHTML=r.getAttribute("data-configuration");var n=t.nextElementSibling;t.parentElement.replaceChild(e,n);var o=n.querySelector("input");o||(o=n.querySelector("textarea"));var i=o.getAttribute("name"),a=e.querySelectorAll("input");a.length||(a=e.querySelectorAll("textarea")),a.forEach((function(t){var r=t.getAttribute("name");r&&(r=i.replace(i.substring(i.indexOf("[configuration]")+15),r.substring(r.indexOf("configuration")+13)),$(t).attr("name",r),$(e).find(".bitbag-media-autocomplete").autoComplete(),$(e).find(".sylius-autocomplete").autoComplete())}))}}}),$("".concat(e,' [data-form-collection="item"]')).each((function(t,e){$(document).loadContentConfiguration(e)})),$(document).loadContentConfiguration(document.querySelector("".concat(e,' [data-form-collection="item"]'))))}))}},e={};function r(n){var o=e[n];if(void 0!==o)return o.exports;var i=e[n]={exports:{}};return t[n](i,i.exports,r),i.exports}(()=>{"use strict";r(461);function t(e){return t="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},t(e)}function e(t,e){for(var r=0;r0&&void 0!==arguments[0]?arguments[0]:{textField:"data-bb-cms-text",fileField:"data-bb-cms-file"};!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.config=e,this.textField=document.querySelector("[".concat(e.textField,"]")),this.fileField=document.querySelector("[".concat(e.fileField,"]"))},n=[{key:"init",value:function(){if("object"!==t(this.config))throw new Error("Bitbag CMS Plugin - HandleCsvUpload class config is not a valid object");this._handleFields()}},{key:"_handleFields",value:function(){this._handleTextField(),this._handleFileField()}},{key:"_handleTextField",value:function(){var t=this;this.textField.addEventListener("click",(function(){t.fileField.click()}))}},{key:"_handleFileField",value:function(){var t=this;this.fileField.addEventListener("change",(function(e){t.textField.value=e.target.files[0].name}))}}],n&&e(r.prototype,n),o&&e(r,o),Object.defineProperty(r,"prototype",{writable:!1}),r;var r,n,o}();const i=function(t,e,r){var n=new CustomEvent("".concat("bb",".").concat(e),{detail:r});return t.dispatchEvent(n),t};function a(){a=function(){return e};var t,e={},r=Object.prototype,n=r.hasOwnProperty,o=Object.defineProperty||function(t,e,r){t[e]=r.value},i="function"==typeof Symbol?Symbol:{},c=i.iterator||"@@iterator",u=i.asyncIterator||"@@asyncIterator",s=i.toStringTag||"@@toStringTag";function f(t,e,r){return Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{f({},"")}catch(t){f=function(t,e,r){return t[e]=r}}function h(t,e,r,n){var i=e&&e.prototype instanceof b?e:b,a=Object.create(i.prototype),c=new I(n||[]);return o(a,"_invoke",{value:O(t,r,c)}),a}function d(t,e,r){try{return{type:"normal",arg:t.call(e,r)}}catch(t){return{type:"throw",arg:t}}}e.wrap=h;var p="suspendedStart",y="suspendedYield",v="executing",m="completed",g={};function b(){}function w(){}function _(){}var S={};f(S,c,(function(){return this}));var E=Object.getPrototypeOf,L=E&&E(E(F([])));L&&L!==r&&n.call(L,c)&&(S=L);var x=_.prototype=b.prototype=Object.create(S);function k(t){["next","throw","return"].forEach((function(e){f(t,e,(function(t){return this._invoke(e,t)}))}))}function j(t,e){function r(o,i,a,c){var u=d(t[o],t,i);if("throw"!==u.type){var s=u.arg,f=s.value;return f&&"object"==l(f)&&n.call(f,"__await")?e.resolve(f.__await).then((function(t){r("next",t,a,c)}),(function(t){r("throw",t,a,c)})):e.resolve(f).then((function(t){s.value=t,a(s)}),(function(t){return r("throw",t,a,c)}))}c(u.arg)}var i;o(this,"_invoke",{value:function(t,n){function o(){return new e((function(e,o){r(t,n,e,o)}))}return i=i?i.then(o,o):o()}})}function O(e,r,n){var o=p;return function(i,a){if(o===v)throw Error("Generator is already running");if(o===m){if("throw"===i)throw a;return{value:t,done:!0}}for(n.method=i,n.arg=a;;){var c=n.delegate;if(c){var u=P(c,n);if(u){if(u===g)continue;return u}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(o===p)throw o=m,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);o=v;var l=d(e,r,n);if("normal"===l.type){if(o=n.done?m:y,l.arg===g)continue;return{value:l.arg,done:n.done}}"throw"===l.type&&(o=m,n.method="throw",n.arg=l.arg)}}}function P(e,r){var n=r.method,o=e.iterator[n];if(o===t)return r.delegate=null,"throw"===n&&e.iterator.return&&(r.method="return",r.arg=t,P(e,r),"throw"===r.method)||"return"!==n&&(r.method="throw",r.arg=new TypeError("The iterator does not provide a '"+n+"' method")),g;var i=d(o,e.iterator,r.arg);if("throw"===i.type)return r.method="throw",r.arg=i.arg,r.delegate=null,g;var a=i.arg;return a?a.done?(r[e.resultName]=a.value,r.next=e.nextLoc,"return"!==r.method&&(r.method="next",r.arg=t),r.delegate=null,g):a:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,g)}function T(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function C(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function I(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(T,this),this.reset(!0)}function F(e){if(e||""===e){var r=e[c];if(r)return r.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var o=-1,i=function r(){for(;++o=0;--i){var a=this.tryEntries[i],c=a.completion;if("root"===a.tryLoc)return o("end");if(a.tryLoc<=this.prev){var u=n.call(a,"catchLoc"),l=n.call(a,"finallyLoc");if(u&&l){if(this.prev=0;--r){var o=this.tryEntries[r];if(o.tryLoc<=this.prev&&n.call(o,"finallyLoc")&&this.prev=0;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),C(r),g}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.tryLoc===t){var n=r.completion;if("throw"===n.type){var o=n.arg;C(r)}return o}}throw Error("illegal catch attempt")},delegateYield:function(e,r,n){return this.delegate={iterator:F(e),resultName:r,nextLoc:n},"next"===this.method&&(this.arg=t),g}},e}function c(t,e,r,n,o,i,a){try{var c=t[i](a),u=c.value}catch(t){return void r(t)}c.done?e(u):Promise.resolve(u).then(n,o)}function u(t){return function(){var e=this,r=arguments;return new Promise((function(n,o){var i=t.apply(e,r);function a(t){c(i,n,o,a,u,"next",t)}function u(t){c(i,n,o,a,u,"throw",t)}a(void 0)}))}}function l(t){return l="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},l(t)}function s(t,e){for(var r=0;r0&&void 0!==arguments[0]?arguments[0]:{wrappersIndicator:"data-bb-cms-wrapper",lockFieldIndicator:"data-bb-cms-toggle-slug",bbTarget:"sylius_cms_plugin_page",nameField:"sylius_cms_plugin_page_name"};!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.wrappers=document.querySelectorAll("[".concat(e.wrappersIndicator,"]")),this.lockFieldIndicator="[".concat(e.lockFieldIndicator,"]"),this.bbTarget=e.bbTarget,this.config=e,this.nameField=document.getElementById("".concat(e.nameField))},e=[{key:"init",value:function(){if("object"!==l(this.config))throw new Error("Bitbag CMS Plugin - HandleSlugUpdate class config is not a valid object");if("string"!=typeof this.lockFieldIndicator||"string"!=typeof this.bbTarget)throw new Error("Bitbag CMS Plugin - HandleSlugUpdate class config key values are not valid strings");if(!this.nameField)throw new Error("Bitbag CMS Plugin - HandleSlugUpdate name field not found");this._handleFields()}},{key:"_handleFields",value:function(){var t=this;this.wrappers.forEach((function(e){var r=e.dataset.locale,n=e.querySelector("#".concat(t.bbTarget,"_translations_").concat(r,"_slug"));if(n||(n=e.querySelector("#".concat(t.bbTarget,"_slug"))),n){var o;t.nameField.addEventListener("input",(function(e){e.preventDefault(),n.readOnly||(clearTimeout(o),o=setTimeout((function(){t._updateSlug(n,t.nameField.value)}),1e3))}));var i=e.querySelector(t.lockFieldIndicator);i&&i.addEventListener("click",(function(e){e.preventDefault(),t._toggleSlugModification(n,i)}))}}))}},{key:"_updateSlug",value:(o=u(a().mark((function t(e,r){return a().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return i(e,"cms.slug.update.start"),e.parentNode.classList.add("loading"),t.next=4,this._getValidSlug(e.dataset.url,r);case 4:e.value=t.sent,e.parentNode.classList.remove("loading"),i(e,"cms.slug.update.end");case 7:case"end":return t.stop()}}),t,this)}))),function(t,e){return o.apply(this,arguments)})},{key:"_getValidSlug",value:(n=u(a().mark((function t(e,r){var n,o;return a().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.prev=0,t.next=3,fetch("".concat(e,"?name=").concat(encodeURIComponent(r)));case 3:return n=t.sent,t.next=6,n.json();case 6:return o=t.sent,t.abrupt("return",o.slug);case 10:t.prev=10,t.t0=t.catch(0),console.error("BitBag CMS Plugin - HandleSlugUpdate class error : ".concat(t.t0));case 13:case"end":return t.stop()}}),t,null,[[0,10]])}))),function(t,e){return n.apply(this,arguments)})},{key:"_toggleSlugModification",value:function(t,e){t.readOnly=!t.readOnly;var r=e.querySelector("i");r.classList.toggle("lock"),r.classList.toggle("unlock")}}],e&&s(t.prototype,e),r&&s(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t;var t,e,r,n,o}();function d(){d=function(){return e};var t,e={},r=Object.prototype,n=r.hasOwnProperty,o=Object.defineProperty||function(t,e,r){t[e]=r.value},i="function"==typeof Symbol?Symbol:{},a=i.iterator||"@@iterator",c=i.asyncIterator||"@@asyncIterator",u=i.toStringTag||"@@toStringTag";function l(t,e,r){return Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{l({},"")}catch(t){l=function(t,e,r){return t[e]=r}}function s(t,e,r,n){var i=e&&e.prototype instanceof b?e:b,a=Object.create(i.prototype),c=new I(n||[]);return o(a,"_invoke",{value:O(t,r,c)}),a}function f(t,e,r){try{return{type:"normal",arg:t.call(e,r)}}catch(t){return{type:"throw",arg:t}}}e.wrap=s;var h="suspendedStart",p="suspendedYield",y="executing",v="completed",g={};function b(){}function w(){}function _(){}var S={};l(S,a,(function(){return this}));var E=Object.getPrototypeOf,L=E&&E(E(F([])));L&&L!==r&&n.call(L,a)&&(S=L);var x=_.prototype=b.prototype=Object.create(S);function k(t){["next","throw","return"].forEach((function(e){l(t,e,(function(t){return this._invoke(e,t)}))}))}function j(t,e){function r(o,i,a,c){var u=f(t[o],t,i);if("throw"!==u.type){var l=u.arg,s=l.value;return s&&"object"==m(s)&&n.call(s,"__await")?e.resolve(s.__await).then((function(t){r("next",t,a,c)}),(function(t){r("throw",t,a,c)})):e.resolve(s).then((function(t){l.value=t,a(l)}),(function(t){return r("throw",t,a,c)}))}c(u.arg)}var i;o(this,"_invoke",{value:function(t,n){function o(){return new e((function(e,o){r(t,n,e,o)}))}return i=i?i.then(o,o):o()}})}function O(e,r,n){var o=h;return function(i,a){if(o===y)throw Error("Generator is already running");if(o===v){if("throw"===i)throw a;return{value:t,done:!0}}for(n.method=i,n.arg=a;;){var c=n.delegate;if(c){var u=P(c,n);if(u){if(u===g)continue;return u}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(o===h)throw o=v,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);o=y;var l=f(e,r,n);if("normal"===l.type){if(o=n.done?v:p,l.arg===g)continue;return{value:l.arg,done:n.done}}"throw"===l.type&&(o=v,n.method="throw",n.arg=l.arg)}}}function P(e,r){var n=r.method,o=e.iterator[n];if(o===t)return r.delegate=null,"throw"===n&&e.iterator.return&&(r.method="return",r.arg=t,P(e,r),"throw"===r.method)||"return"!==n&&(r.method="throw",r.arg=new TypeError("The iterator does not provide a '"+n+"' method")),g;var i=f(o,e.iterator,r.arg);if("throw"===i.type)return r.method="throw",r.arg=i.arg,r.delegate=null,g;var a=i.arg;return a?a.done?(r[e.resultName]=a.value,r.next=e.nextLoc,"return"!==r.method&&(r.method="next",r.arg=t),r.delegate=null,g):a:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,g)}function T(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function C(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function I(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(T,this),this.reset(!0)}function F(e){if(e||""===e){var r=e[a];if(r)return r.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var o=-1,i=function r(){for(;++o=0;--i){var a=this.tryEntries[i],c=a.completion;if("root"===a.tryLoc)return o("end");if(a.tryLoc<=this.prev){var u=n.call(a,"catchLoc"),l=n.call(a,"finallyLoc");if(u&&l){if(this.prev=0;--r){var o=this.tryEntries[r];if(o.tryLoc<=this.prev&&n.call(o,"finallyLoc")&&this.prev=0;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),C(r),g}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.tryLoc===t){var n=r.completion;if("throw"===n.type){var o=n.arg;C(r)}return o}}throw Error("illegal catch attempt")},delegateYield:function(e,r,n){return this.delegate={iterator:F(e),resultName:r,nextLoc:n},"next"===this.method&&(this.arg=t),g}},e}function p(t,e,r,n,o,i,a){try{var c=t[i](a),u=c.value}catch(t){return void r(t)}c.done?e(u):Promise.resolve(u).then(n,o)}function y(t){return function(t){if(Array.isArray(t))return v(t)}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||function(t,e){if(t){if("string"==typeof t)return v(t,e);var r={}.toString.call(t).slice(8,-1);return"Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r?Array.from(t):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?v(t,e):void 0}}(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function v(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=Array(e);r0&&void 0!==arguments[0]?arguments[0]:{previewButton:"data-bb-cms-preview-btn",previewModal:"data-bb-cms-preview-modal",channelSwitch:"data-bb-cms-channel",localeSwitch:"data-bb-cms-locale"};!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.config=e,this.button=document.querySelector("[".concat(e.previewButton,"]")),this.modal=document.querySelector("[".concat(e.previewModal,"]")),this.modalSelector=e.previewModal,this.channelSelector=e.channelSwitch,this.localeSelector=e.localeSwitch},e=[{key:"init",value:function(){if("object"!==m(this.config))throw new Error("Bitbag CMS Plugin - HandlePreview class config is not a valid object");if("string"!=typeof this.localeSelector||"string"!=typeof this.channelSelector||"string"!=typeof this.modalSelector)throw new Error("Bitbag CMS Plugin - HandlePreview class config key values are not valid strings");this._resourcePreview()}},{key:"_$_CKEDITOR_MODAL_SHOW",value:function(){return $("[".concat(this.modalSelector,"]")).modal("show")}},{key:"_$_CKEDITOR_UPDATE_INSTANCES",value:function(){y(CKEDITOR.instances).forEach((function(t){return t.updateElement()}))}},{key:"_resourcePreview",value:function(){var t=this;this.button.addEventListener("click",(function(e){e.preventDefault(),t._$_CKEDITOR_UPDATE_INSTANCES,t._createPreview(),t._$_CKEDITOR_MODAL_SHOW()})),document.querySelector("[".concat(this.channelSelector,"]")).addEventListener("change",(function(e){e.preventDefault(),t._$_CKEDITOR_UPDATE_INSTANCES,t._createPreview(),t._$_CKEDITOR_MODAL_SHOW()})),document.querySelector("[".concat(this.localeSelector,"]")).addEventListener("change",(function(e){e.preventDefault(),t._$_CKEDITOR_UPDATE_INSTANCES,t._createPreview(),t._$_CKEDITOR_MODAL_SHOW()}))}},{key:"_createPreview",value:(n=d().mark((function t(){var e,r,n,o,a,c,u,l,s;return d().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return this.modal.querySelector(".ui.loadable").classList.add("loading"),this.modal.disabled=!0,e=document.querySelector("[".concat(this.channelSelector,"]")).value,r=document.querySelector("[".concat(this.localeSelector,"]")).value,n=this.button.dataset.url,o=this.button.closest("form"),a={method:"POST",body:new FormData(o)},t.prev=7,i(this.modal,"cms.create.preview.start"),t.next=11,fetch("".concat(n,"?_channel_code=").concat(e,"&_locale=").concat(r),a);case 11:return c=t.sent,t.next=14,c.text();case 14:u=t.sent,l=new Blob([u],{type:"text/html",charset:"utf-8"}),s=window.URL.createObjectURL(l),this.modal.querySelector("iframe").src=s,i(this.modal,"cms.create.preview.completed",u),t.next=25;break;case 21:t.prev=21,t.t0=t.catch(7),console.error("BitBag CMS Plugin - HandlePreview class error : ".concat(t.t0)),i(this.modal,"cms.create.preview.error",t.t0);case 25:return t.prev=25,this.modal.querySelector(".ui.loadable").classList.remove("loading"),this.modal.disabled=!1,i(this.modal,"cms.create.preview.end"),t.finish(25);case 30:case"end":return t.stop()}}),t,this,[[7,21,25,30]])})),o=function(){var t=this,e=arguments;return new Promise((function(r,o){var i=n.apply(t,e);function a(t){p(i,r,o,a,c,"next",t)}function c(t){p(i,r,o,a,c,"throw",t)}a(void 0)}))},function(){return o.apply(this,arguments)})}],e&&g(t.prototype,e),r&&g(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t;var t,e,r,n,o}();function _(){_=function(){return e};var t,e={},r=Object.prototype,n=r.hasOwnProperty,o=Object.defineProperty||function(t,e,r){t[e]=r.value},i="function"==typeof Symbol?Symbol:{},a=i.iterator||"@@iterator",c=i.asyncIterator||"@@asyncIterator",u=i.toStringTag||"@@toStringTag";function l(t,e,r){return Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{l({},"")}catch(t){l=function(t,e,r){return t[e]=r}}function s(t,e,r,n){var i=e&&e.prototype instanceof m?e:m,a=Object.create(i.prototype),c=new I(n||[]);return o(a,"_invoke",{value:O(t,r,c)}),a}function f(t,e,r){try{return{type:"normal",arg:t.call(e,r)}}catch(t){return{type:"throw",arg:t}}}e.wrap=s;var h="suspendedStart",d="suspendedYield",p="executing",y="completed",v={};function m(){}function g(){}function b(){}var w={};l(w,a,(function(){return this}));var S=Object.getPrototypeOf,E=S&&S(S(F([])));E&&E!==r&&n.call(E,a)&&(w=E);var L=b.prototype=m.prototype=Object.create(w);function x(t){["next","throw","return"].forEach((function(e){l(t,e,(function(t){return this._invoke(e,t)}))}))}function j(t,e){function r(o,i,a,c){var u=f(t[o],t,i);if("throw"!==u.type){var l=u.arg,s=l.value;return s&&"object"==k(s)&&n.call(s,"__await")?e.resolve(s.__await).then((function(t){r("next",t,a,c)}),(function(t){r("throw",t,a,c)})):e.resolve(s).then((function(t){l.value=t,a(l)}),(function(t){return r("throw",t,a,c)}))}c(u.arg)}var i;o(this,"_invoke",{value:function(t,n){function o(){return new e((function(e,o){r(t,n,e,o)}))}return i=i?i.then(o,o):o()}})}function O(e,r,n){var o=h;return function(i,a){if(o===p)throw Error("Generator is already running");if(o===y){if("throw"===i)throw a;return{value:t,done:!0}}for(n.method=i,n.arg=a;;){var c=n.delegate;if(c){var u=P(c,n);if(u){if(u===v)continue;return u}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(o===h)throw o=y,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);o=p;var l=f(e,r,n);if("normal"===l.type){if(o=n.done?y:d,l.arg===v)continue;return{value:l.arg,done:n.done}}"throw"===l.type&&(o=y,n.method="throw",n.arg=l.arg)}}}function P(e,r){var n=r.method,o=e.iterator[n];if(o===t)return r.delegate=null,"throw"===n&&e.iterator.return&&(r.method="return",r.arg=t,P(e,r),"throw"===r.method)||"return"!==n&&(r.method="throw",r.arg=new TypeError("The iterator does not provide a '"+n+"' method")),v;var i=f(o,e.iterator,r.arg);if("throw"===i.type)return r.method="throw",r.arg=i.arg,r.delegate=null,v;var a=i.arg;return a?a.done?(r[e.resultName]=a.value,r.next=e.nextLoc,"return"!==r.method&&(r.method="next",r.arg=t),r.delegate=null,v):a:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,v)}function T(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function C(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function I(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(T,this),this.reset(!0)}function F(e){if(e||""===e){var r=e[a];if(r)return r.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var o=-1,i=function r(){for(;++o=0;--i){var a=this.tryEntries[i],c=a.completion;if("root"===a.tryLoc)return o("end");if(a.tryLoc<=this.prev){var u=n.call(a,"catchLoc"),l=n.call(a,"finallyLoc");if(u&&l){if(this.prev=0;--r){var o=this.tryEntries[r];if(o.tryLoc<=this.prev&&n.call(o,"finallyLoc")&&this.prev=0;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),C(r),v}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.tryLoc===t){var n=r.completion;if("throw"===n.type){var o=n.arg;C(r)}return o}}throw Error("illegal catch attempt")},delegateYield:function(e,r,n){return this.delegate={iterator:F(e),resultName:r,nextLoc:n},"next"===this.method&&(this.arg=t),v}},e}function S(t,e){var r="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(!r){if(Array.isArray(t)||(r=function(t,e){if(t){if("string"==typeof t)return E(t,e);var r={}.toString.call(t).slice(8,-1);return"Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r?Array.from(t):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?E(t,e):void 0}}(t))||e&&t&&"number"==typeof t.length){r&&(t=r);var n=0,o=function(){};return{s:o,n:function(){return n>=t.length?{done:!0}:{done:!1,value:t[n++]}},e:function(t){throw t},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,a=!0,c=!1;return{s:function(){r=r.call(t)},n:function(){var t=r.next();return a=t.done,t},e:function(t){c=!0,i=t},f:function(){try{a||null==r.return||r.return()}finally{if(c)throw i}}}}function E(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=Array(e);r0&&void 0!==arguments[0]?arguments[0]:{bbMediaContainer:"data-bb-cms-autocomplete",choiceName:"data-bb-cms-choice-name",choiceValue:"data-bb-cms-choice-value",criteriaType:"data-bb-cms-criteria-type",criteriaName:"data-bb-cms-criteria-name",editUrl:"data-bb-cms-load-edit-url",nameMessage:"data-bb-cms-name-message",deleteButton:"data-bb-cms-delete-selected",choosenPreview:"data-bb-cms-selected-image",selectMenu:"data-bb-cms-selection-menu",selectInput:"data-bb-cms-image-select",placeholder:"data-bb-cms-placeholder",limit:30};!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.config=e,this.mediaContainers=document.querySelectorAll("[".concat(e.bbMediaContainer,"]")),this.deleteButton="[".concat(e.deleteButton,"]"),this.selectMenu="[".concat(e.selectMenu,"]"),this.selectInput="[".concat(e.selectInput,"]"),this.placeholder="[".concat(e.placeholder,"]")},e=[{key:"init",value:function(){var t=this;if("object"!==k(this.config))throw new Error("Bitbag CMS Plugin - HandleAutoComplete class config is not a valid object");this.mediaContainers.forEach((function(e){t._handleSavedValue(e),t._handleImageChoice(e),t._handleResetBtn(e)}))}},{key:"_handleResetBtn",value:function(t){var e=this,r=t.querySelector(this.deleteButton);""!==t.querySelector("input[type=hidden]").value?(r.classList.remove("is-hidden"),r.addEventListener("click",(function(){e._resetValues(t)}))):r.classList.add("is-hidden")}},{key:"_handleImageChoice",value:function(t){var e,r=this;t.querySelector(this.selectInput).addEventListener("click",(function(e){e.preventDefault(),r._getMediaImages(t)})),t.querySelector(this.selectInput).addEventListener("input",(function(n){n.preventDefault(),clearTimeout(e),e=setTimeout((function(){r._getMediaImages(t,n.target.value)}),500)})),t.querySelector("input[type=hidden]").addEventListener("change",(function(e){e.preventDefault(),r._handleResetBtn(t)}))}},{key:"_handleSavedValue",value:(o=x(_().mark((function t(e){var r,n,o,a,c,u,l;return _().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(""!==e.querySelector("input[type=hidden]").value){t.next=2;break}return t.abrupt("return");case 2:return r="".concat(e.dataset.bbCmsLoadEditUrl,"?").concat(e.querySelector("input[type=hidden]").value.split(",").filter(String).map((function(t){return"code[]=".concat(t)})).join("&")),t.prev=3,i(e,"cms.media.saved.reload.start"),e.classList.add("loading"),t.next=8,fetch(r);case 8:return n=t.sent,t.next=11,n.json();case 11:o=t.sent,this._addToSelectMenu(o,e),a=[],null!==(c=e.querySelector(this.selectMenu))&&(a=c.children),u=S(a);try{for(u.s();!(l=u.n()).done;)l.value.click()}catch(t){u.e(t)}finally{u.f()}i(e,"cms.media.saved.reload.completed",o),t.next=25;break;case 21:t.prev=21,t.t0=t.catch(3),console.error("BitBag CMS Plugin - HandleAutoComplete class error : ".concat(t.t0)),i(e,"cms.media.saved.reload.error",t.t0);case 25:return t.prev=25,e.classList.remove("loading"),i(e,"cms.media.saved.reload.end"),t.finish(25);case 29:case"end":return t.stop()}}),t,this,[[3,21,25,29]])}))),function(t){return o.apply(this,arguments)})},{key:"_getMediaImages",value:(n=x(_().mark((function t(e){var r,n,o,a,c,u,l,s,f=arguments;return _().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return r=f.length>1&&void 0!==f[1]&&f[1],n=e.dataset.bbCmsUrl,o=e.dataset.bbCmsCriteriaType,a=r?"&criteria[search][value]=".concat(r):"",c="".concat(n,"&limit=").concat(this.config.limit,"&criteria[search][type]=").concat(o,"&criteria[search][value]=").concat(a),t.prev=5,i(e,"cms.media.display.start"),e.classList.add("loading"),t.next=10,fetch(c);case 10:return u=t.sent,t.next=13,u.json();case 13:l=t.sent,s=l._embedded.items,this._addToSelectMenu(s,e),i(e,"cms.media.display.completed",l),t.next=23;break;case 19:t.prev=19,t.t0=t.catch(5),console.error("BitBag CMS Plugin - HandleAutoComplete class error : ".concat(t.t0)),i(e,"cms.media.display.error",t.t0);case 23:return t.prev=23,e.classList.remove("loading"),i(e,"cms.media.display.end"),t.finish(23);case 27:case"end":return t.stop()}}),t,this,[[5,19,23,27]])}))),function(t){return n.apply(this,arguments)})},{key:"_resetValues",value:function(t){i(t,"cms.media.reset.start"),t.querySelector("input[type=hidden]").value="",t.querySelector(this.selectMenu).innerHTML="",t.querySelector(this.placeholder).innerHTML="",i(t,"cms.media.reset.end")}},{key:"_addToSelectMenu",value:function(t,e){var r=this;i(e,"cms.media.display.update.start");var n=e.querySelector(this.selectMenu);n.innerHTML="",null!==t&&t.forEach((function(t){n.insertAdjacentHTML("beforeend",r._itemTemplate(t.path,t.code.trim()))})),i(e,"cms.media.display.update.end")}},{key:"_itemTemplate",value:function(t,e){return'
').concat(e,"
")}}],e&&j(t.prototype,e),r&&j(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t;var t,e,r,n,o}();function T(t){return T="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},T(t)}function C(t,e){for(var r=0;r0&&(new h).init(),document.querySelectorAll("[data-bb-cms-preview-btn]").length>0&&(new w).init(),document.querySelector('[data-bb-target="cms-handle-autocomplete"]')&&(new P).init(),document.querySelector(".collection-type-items")&&(new F).init(),document.querySelector("[data-bb-cms-load-template]")&&(new N).init()})()})(); diff --git a/src/Resources/translations/messages.cs.yml b/src/Resources/translations/messages.cs.yml index f63a89a22..74600bf49 100755 --- a/src/Resources/translations/messages.cs.yml +++ b/src/Resources/translations/messages.cs.yml @@ -1,4 +1,4 @@ -bitbag_sylius_cms_plugin: +sylius_cms_plugin: ui: collections: Kolekce blocks: Bloky diff --git a/src/Resources/translations/messages.cs_CZ.yml b/src/Resources/translations/messages.cs_CZ.yml index f63a89a22..74600bf49 100755 --- a/src/Resources/translations/messages.cs_CZ.yml +++ b/src/Resources/translations/messages.cs_CZ.yml @@ -1,4 +1,4 @@ -bitbag_sylius_cms_plugin: +sylius_cms_plugin: ui: collections: Kolekce blocks: Bloky diff --git a/src/Resources/translations/messages.de.yml b/src/Resources/translations/messages.de.yml index 1d58b5d60..cbeafddbb 100755 --- a/src/Resources/translations/messages.de.yml +++ b/src/Resources/translations/messages.de.yml @@ -1,4 +1,4 @@ -bitbag_sylius_cms_plugin: +sylius_cms_plugin: ui: blocks: Blöcke block: Block diff --git a/src/Resources/translations/messages.en.yml b/src/Resources/translations/messages.en.yml index 1a948ceab..da26c2b25 100755 --- a/src/Resources/translations/messages.en.yml +++ b/src/Resources/translations/messages.en.yml @@ -1,4 +1,4 @@ -bitbag_sylius_cms_plugin: +sylius_cms_plugin: ui: blocks: Blocks block: Block diff --git a/src/Resources/translations/messages.es.yml b/src/Resources/translations/messages.es.yml index d868601ca..934efdc26 100755 --- a/src/Resources/translations/messages.es.yml +++ b/src/Resources/translations/messages.es.yml @@ -1,4 +1,4 @@ -bitbag_sylius_cms_plugin: +sylius_cms_plugin: ui: blocks: Bloques block: Bloque diff --git a/src/Resources/translations/messages.fr.yml b/src/Resources/translations/messages.fr.yml index e63e3436f..6edc1a80e 100755 --- a/src/Resources/translations/messages.fr.yml +++ b/src/Resources/translations/messages.fr.yml @@ -1,4 +1,4 @@ -bitbag_sylius_cms_plugin: +sylius_cms_plugin: ui: blocks: Blocs block: Bloc diff --git a/src/Resources/translations/messages.hr.yml b/src/Resources/translations/messages.hr.yml index c2ce3ee42..af75f1ad4 100755 --- a/src/Resources/translations/messages.hr.yml +++ b/src/Resources/translations/messages.hr.yml @@ -1,4 +1,4 @@ -bitbag_sylius_cms_plugin: +sylius_cms_plugin: ui: blocks: Blokovi block: Blok diff --git a/src/Resources/translations/messages.lt.yml b/src/Resources/translations/messages.lt.yml index b61436900..f72e0fcf6 100644 --- a/src/Resources/translations/messages.lt.yml +++ b/src/Resources/translations/messages.lt.yml @@ -1,4 +1,4 @@ -bitbag_sylius_cms_plugin: +sylius_cms_plugin: ui: blocks: Blokai block: Blokas diff --git a/src/Resources/translations/messages.nl.yml b/src/Resources/translations/messages.nl.yml index 593236a30..10e441d4f 100755 --- a/src/Resources/translations/messages.nl.yml +++ b/src/Resources/translations/messages.nl.yml @@ -1,4 +1,4 @@ -bitbag_sylius_cms_plugin: +sylius_cms_plugin: ui: blocks: Blokken block: Blok diff --git a/src/Resources/translations/messages.pl.yml b/src/Resources/translations/messages.pl.yml index 60111e84f..3dd9ba38e 100755 --- a/src/Resources/translations/messages.pl.yml +++ b/src/Resources/translations/messages.pl.yml @@ -1,4 +1,4 @@ -bitbag_sylius_cms_plugin: +sylius_cms_plugin: ui: blocks: Bloki block: Blok diff --git a/src/Resources/translations/messages.ru.yml b/src/Resources/translations/messages.ru.yml index e791f2fa1..bcc5ae10e 100755 --- a/src/Resources/translations/messages.ru.yml +++ b/src/Resources/translations/messages.ru.yml @@ -1,4 +1,4 @@ -bitbag_sylius_cms_plugin: +sylius_cms_plugin: ui: blocks: Блоки block: Блок diff --git a/src/Resources/translations/messages.sk.yml b/src/Resources/translations/messages.sk.yml index 7755e99d9..4f7518ea5 100644 --- a/src/Resources/translations/messages.sk.yml +++ b/src/Resources/translations/messages.sk.yml @@ -1,4 +1,4 @@ -bitbag_sylius_cms_plugin: +sylius_cms_plugin: ui: blocks: Bloky block: Blok diff --git a/src/Resources/translations/messages.uk.yml b/src/Resources/translations/messages.uk.yml index 877787130..10a65f653 100755 --- a/src/Resources/translations/messages.uk.yml +++ b/src/Resources/translations/messages.uk.yml @@ -1,4 +1,4 @@ -bitbag_sylius_cms_plugin: +sylius_cms_plugin: ui: blocks: Блоки block: Блок diff --git a/src/Resources/translations/validators.cs.yml b/src/Resources/translations/validators.cs.yml index 04d2f6cae..444817205 100644 --- a/src/Resources/translations/validators.cs.yml +++ b/src/Resources/translations/validators.cs.yml @@ -1,4 +1,4 @@ -bitbag_sylius_cms_plugin: +sylius_cms_plugin: block: image: mime_types: Pouze PNG, SVG a JPEG soubory jsou povoleny. diff --git a/src/Resources/translations/validators.de.yml b/src/Resources/translations/validators.de.yml index 56254cdce..81e350ef7 100755 --- a/src/Resources/translations/validators.de.yml +++ b/src/Resources/translations/validators.de.yml @@ -1,4 +1,4 @@ -bitbag_sylius_cms_plugin: +sylius_cms_plugin: block: image: mime_types: Nur PNG, SVG und JPEG Dateien sind erlaubt. diff --git a/src/Resources/translations/validators.en.yml b/src/Resources/translations/validators.en.yml index 9bdc6b924..52d4e4fd4 100755 --- a/src/Resources/translations/validators.en.yml +++ b/src/Resources/translations/validators.en.yml @@ -1,4 +1,4 @@ -bitbag_sylius_cms_plugin: +sylius_cms_plugin: block: image: mime_types: Only PNG, SVG and JPEG files are allowed. diff --git a/src/Resources/translations/validators.es.yml b/src/Resources/translations/validators.es.yml index f7f531190..880cbd61d 100755 --- a/src/Resources/translations/validators.es.yml +++ b/src/Resources/translations/validators.es.yml @@ -1,4 +1,4 @@ -bitbag_sylius_cms_plugin: +sylius_cms_plugin: block: image: mime_types: Solo se permiten archivos PNG, SVG y JPEG. diff --git a/src/Resources/translations/validators.fr.yml b/src/Resources/translations/validators.fr.yml index 4047a473a..fc8df11ab 100755 --- a/src/Resources/translations/validators.fr.yml +++ b/src/Resources/translations/validators.fr.yml @@ -1,4 +1,4 @@ -bitbag_sylius_cms_plugin: +sylius_cms_plugin: block: image: mime_types: Seuls les fichiers PNG, SVG et JPEG sont autorisés. diff --git a/src/Resources/translations/validators.hr.yml b/src/Resources/translations/validators.hr.yml index 9100c21a7..9d3fb1bc2 100755 --- a/src/Resources/translations/validators.hr.yml +++ b/src/Resources/translations/validators.hr.yml @@ -1,4 +1,4 @@ -bitbag_sylius_cms_plugin: +sylius_cms_plugin: block: image: mime_types: Samo su PNG, SVG ili JPG formati dopušteni. diff --git a/src/Resources/translations/validators.lt.yml b/src/Resources/translations/validators.lt.yml index d232adee1..4d8c315ee 100644 --- a/src/Resources/translations/validators.lt.yml +++ b/src/Resources/translations/validators.lt.yml @@ -1,4 +1,4 @@ -bitbag_sylius_cms_plugin: +sylius_cms_plugin: block: image: mime_types: Leidžiami tik PNG ir JPEG formatų failai. diff --git a/src/Resources/translations/validators.nl.yml b/src/Resources/translations/validators.nl.yml index 4434b1d01..9f99102bd 100755 --- a/src/Resources/translations/validators.nl.yml +++ b/src/Resources/translations/validators.nl.yml @@ -1,4 +1,4 @@ -bitbag_sylius_cms_plugin: +sylius_cms_plugin: block: image: mime_types: Alleen PNG, SVG en JPEG bestanden zijn toegestaan. diff --git a/src/Resources/translations/validators.pl.yml b/src/Resources/translations/validators.pl.yml index c56e7bc79..5c31b3221 100755 --- a/src/Resources/translations/validators.pl.yml +++ b/src/Resources/translations/validators.pl.yml @@ -1,4 +1,4 @@ -bitbag_sylius_cms_plugin: +sylius_cms_plugin: block: image: mime_types: Only PNG, SVG and JPEG files are allowed. diff --git a/src/Resources/translations/validators.ru.yml b/src/Resources/translations/validators.ru.yml index c3001f00c..bc0c5a153 100755 --- a/src/Resources/translations/validators.ru.yml +++ b/src/Resources/translations/validators.ru.yml @@ -1,4 +1,4 @@ -bitbag_sylius_cms_plugin: +sylius_cms_plugin: block: image: mime_types: Только PNG, SVG или JPEG. diff --git a/src/Resources/translations/validators.sk.yml b/src/Resources/translations/validators.sk.yml index e21f54d9f..10f794c3f 100755 --- a/src/Resources/translations/validators.sk.yml +++ b/src/Resources/translations/validators.sk.yml @@ -1,4 +1,4 @@ -bitbag_sylius_cms_plugin: +sylius_cms_plugin: block: image: mime_types: Iba PNG, SVG a JPEG súbory sú povolené. diff --git a/src/Resources/translations/validators.uk.yml b/src/Resources/translations/validators.uk.yml index 2955ba818..31ffd2bb1 100755 --- a/src/Resources/translations/validators.uk.yml +++ b/src/Resources/translations/validators.uk.yml @@ -1,4 +1,4 @@ -bitbag_sylius_cms_plugin: +sylius_cms_plugin: block: image: mime_types: Тільки PNG, SVG чи JPEG. diff --git a/src/Resources/views/Block/Crud/_form.html.twig b/src/Resources/views/Block/Crud/_form.html.twig index f6fb33f31..bc99f29a4 100755 --- a/src/Resources/views/Block/Crud/_form.html.twig +++ b/src/Resources/views/Block/Crud/_form.html.twig @@ -17,15 +17,15 @@ - {{ 'bitbag_sylius_cms_plugin.ui.preview'|trans }} + {{ 'sylius_cms_plugin.ui.preview'|trans }}
-

{{ 'bitbag_sylius_cms_plugin.ui.manage_block_display'|trans }}

+

{{ 'sylius_cms_plugin.ui.manage_block_display'|trans }}

{{ form_row(form.products) }} {{ form_row(form.productsInTaxons) }} {{ form_row(form.taxons) }} @@ -33,8 +33,8 @@
-

{{ 'bitbag_sylius_cms_plugin.ui.content_elements.title'|trans }}

- {% include '@BitBagSyliusCmsPlugin/Template/form.html.twig' with {ajax_url: path('bitbag_sylius_cms_plugin_admin_ajax_template_content_by_id', {'id': 'REPLACE_ID'}) } %} +

{{ 'sylius_cms_plugin.ui.content_elements.title'|trans }}

+ {% include '@BitBagSyliusCmsPlugin/Template/form.html.twig' with {ajax_url: path('sylius_cms_plugin_admin_ajax_template_content_by_id', {'id': 'REPLACE_ID'}) } %}
{{ form_row(form.contentElements) }} diff --git a/src/Resources/views/Block/preview.html.twig b/src/Resources/views/Block/preview.html.twig index b34fb16e0..9d8eb74cb 100755 --- a/src/Resources/views/Block/preview.html.twig +++ b/src/Resources/views/Block/preview.html.twig @@ -7,7 +7,7 @@ {% block content %}
- {{ bitbag_cms_render_content_elements(block) }} + {{ sylius_cms_render_content_elements(block) }}
{% endblock %} diff --git a/src/Resources/views/Form/theme.html.twig b/src/Resources/views/Form/theme.html.twig index 6b2a39579..00ee34cdb 100755 --- a/src/Resources/views/Form/theme.html.twig +++ b/src/Resources/views/Form/theme.html.twig @@ -1,30 +1,30 @@ {% extends '@SyliusUi/Form/theme.html.twig' %} -{% block bitbag_collection_autocomplete_choice_row %} - {{ form_row(form, {'remote_url': path('bitbag_sylius_cms_plugin_admin_ajax_collection_by_name_phrase'), 'load_edit_url': path('bitbag_sylius_cms_plugin_admin_ajax_collection_by_code')}) }} +{% block sylius_collection_autocomplete_choice_row %} + {{ form_row(form, {'remote_url': path('sylius_cms_plugin_admin_ajax_collection_by_name_phrase'), 'load_edit_url': path('sylius_cms_plugin_admin_ajax_collection_by_code')}) }} {% endblock %} -{% block bitbag_page_collection_autocomplete_choice_row %} - {{ form_row(form, {'remote_url': path('bitbag_sylius_cms_plugin_admin_ajax_page_collection_by_name_phrase'), 'load_edit_url': path('bitbag_sylius_cms_plugin_admin_ajax_collection_by_code')}) }} +{% block sylius_page_collection_autocomplete_choice_row %} + {{ form_row(form, {'remote_url': path('sylius_cms_plugin_admin_ajax_page_collection_by_name_phrase'), 'load_edit_url': path('sylius_cms_plugin_admin_ajax_collection_by_code')}) }} {% endblock %} -{% block bitbag_page_autocomplete_choice_row %} - {{ form_row(form, {'remote_url': path('bitbag_sylius_cms_plugin_admin_ajax_page_by_name_phrase'), 'load_edit_url': path('bitbag_sylius_cms_plugin_admin_ajax_page_by_code')}) }} +{% block sylius_page_autocomplete_choice_row %} + {{ form_row(form, {'remote_url': path('sylius_cms_plugin_admin_ajax_page_by_name_phrase'), 'load_edit_url': path('sylius_cms_plugin_admin_ajax_page_by_code')}) }} {% endblock %} -{% block bitbag_block_autocomplete_choice_row %} - {{ form_row(form, {'remote_url': path('bitbag_sylius_cms_plugin_admin_ajax_block_by_name_phrase'), 'load_edit_url': path('bitbag_sylius_cms_plugin_admin_ajax_block_by_code')}) }} +{% block sylius_block_autocomplete_choice_row %} + {{ form_row(form, {'remote_url': path('sylius_cms_plugin_admin_ajax_block_by_name_phrase'), 'load_edit_url': path('sylius_cms_plugin_admin_ajax_block_by_code')}) }} {% endblock %} -{% block bitbag_template_page_autocomplete_choice_row %} - {{ form_row(form, {'remote_url': path('bitbag_sylius_cms_plugin_admin_ajax_template_page_by_name_phrase'), 'load_edit_url': path('bitbag_sylius_cms_plugin_admin_ajax_template_by_id')}) }} +{% block sylius_template_page_autocomplete_choice_row %} + {{ form_row(form, {'remote_url': path('sylius_cms_plugin_admin_ajax_template_page_by_name_phrase'), 'load_edit_url': path('sylius_cms_plugin_admin_ajax_template_by_id')}) }} {% endblock %} -{% block bitbag_template_block_autocomplete_choice_row %} - {{ form_row(form, {'remote_url': path('bitbag_sylius_cms_plugin_admin_ajax_template_block_by_name_phrase'), 'load_edit_url': path('bitbag_sylius_cms_plugin_admin_ajax_template_by_id')}) }} +{% block sylius_template_block_autocomplete_choice_row %} + {{ form_row(form, {'remote_url': path('sylius_cms_plugin_admin_ajax_template_block_by_name_phrase'), 'load_edit_url': path('sylius_cms_plugin_admin_ajax_template_by_id')}) }} {% endblock %} -{% block bitbag_media_autocomplete_choice_row %} +{% block sylius_media_autocomplete_choice_row %}
{{- form_widget(form, {'attr': {'class': 'autocomplete'}}) -}} @@ -55,11 +55,11 @@ {% endblock %} {% block sylius_product_autocomplete_choice_row %} - {{ form_row(form, {'remote_url': path('bitbag_sylius_cms_plugin_admin_ajax_product_by_name_phrase'), 'load_edit_url': path('sylius_admin_ajax_product_by_code')}) }} + {{ form_row(form, {'remote_url': path('sylius_cms_plugin_admin_ajax_product_by_name_phrase'), 'load_edit_url': path('sylius_admin_ajax_product_by_code')}) }} {% endblock %} {% block sylius_taxon_autocomplete_choice_row %} - {{ form_row(form, {'remote_url': path('bitbag_sylius_cms_plugin_admin_ajax_taxon_by_name_phrase'), 'load_edit_url': path('sylius_admin_ajax_taxon_by_code')}) }} + {{ form_row(form, {'remote_url': path('sylius_cms_plugin_admin_ajax_taxon_by_name_phrase'), 'load_edit_url': path('sylius_admin_ajax_taxon_by_code')}) }} {% endblock %} {% block collection_widget -%} diff --git a/src/Resources/views/Grid/Action/import.html.twig b/src/Resources/views/Grid/Action/import.html.twig index bb63c10e2..13a3c1876 100644 --- a/src/Resources/views/Grid/Action/import.html.twig +++ b/src/Resources/views/Grid/Action/import.html.twig @@ -1,4 +1,4 @@ {{ render(path( - 'bitbag_sylius_cms_plugin_admin_import_data', + 'sylius_cms_plugin_admin_import_data', {'resourceName': options.resourceCode} )) }} diff --git a/src/Resources/views/Grid/Form/_importForm.html.twig b/src/Resources/views/Grid/Form/_importForm.html.twig index 2577a1097..c00d394f7 100644 --- a/src/Resources/views/Grid/Form/_importForm.html.twig +++ b/src/Resources/views/Grid/Form/_importForm.html.twig @@ -1,15 +1,15 @@ {% form_theme form '@BitBagSyliusCmsPlugin/Form/theme.html.twig' %}
-
+
- + {{ form_widget(form.file, { 'attr': {'data-bb-cms-file': 'file'} }) }}
diff --git a/src/Resources/views/Macro/mediaWidget.html.twig b/src/Resources/views/Macro/mediaWidget.html.twig index 5816fdf0b..010f66227 100755 --- a/src/Resources/views/Macro/mediaWidget.html.twig +++ b/src/Resources/views/Macro/mediaWidget.html.twig @@ -1,7 +1,7 @@ {% macro mediaWidget(form) %} {% endmacro %} diff --git a/src/Resources/views/Macro/translationForm.html.twig b/src/Resources/views/Macro/translationForm.html.twig index 625bdef64..d2247ea67 100755 --- a/src/Resources/views/Macro/translationForm.html.twig +++ b/src/Resources/views/Macro/translationForm.html.twig @@ -13,7 +13,7 @@
{% for field in translationForm %} - {% if 'bitbag_media_autocomplete_choice' in field.vars.block_prefixes %} + {% if 'sylius_media_autocomplete_choice' in field.vars.block_prefixes %} {{ media.mediaWidget(field) }} {% elseif 'image' == field.vars.name %} {{ image.imageWidget(field) }} @@ -45,7 +45,7 @@ {% if field.vars.name == 'slug' %} {% include slugFieldTemplate with { 'slugField': translationForm.slug, 'resource': resource } %} - {% elseif 'bitbag_media_autocomplete_choice' in field.vars.block_prefixes %} + {% elseif 'sylius_media_autocomplete_choice' in field.vars.block_prefixes %} {{ media.mediaWidget(field) }} {% elseif 'image' == field.vars.name %} {{ image.imageWidget(field) }} diff --git a/src/Resources/views/Media/Crud/_form.html.twig b/src/Resources/views/Media/Crud/_form.html.twig index f5db4fe00..0f172e0d1 100755 --- a/src/Resources/views/Media/Crud/_form.html.twig +++ b/src/Resources/views/Media/Crud/_form.html.twig @@ -21,7 +21,7 @@
-

{{ 'bitbag_sylius_cms_plugin.ui.preview'|trans }}

+

{{ 'sylius_cms_plugin.ui.preview'|trans }}

{{ form_row(form.path) }} {% set type = form.type.vars.value %} diff --git a/src/Resources/views/Media/Preview/_file.html.twig b/src/Resources/views/Media/Preview/_file.html.twig index 9fe695dca..5063d701c 100644 --- a/src/Resources/views/Media/Preview/_file.html.twig +++ b/src/Resources/views/Media/Preview/_file.html.twig @@ -1,4 +1,4 @@ - + - {{ 'bitbag_sylius_cms_plugin.ui.download'|trans }} + {{ 'sylius_cms_plugin.ui.download'|trans }} diff --git a/src/Resources/views/Modal/_channelSwitch.html.twig b/src/Resources/views/Modal/_channelSwitch.html.twig index 328bd5275..2f1071d3e 100644 --- a/src/Resources/views/Modal/_channelSwitch.html.twig +++ b/src/Resources/views/Modal/_channelSwitch.html.twig @@ -3,10 +3,10 @@ {% set code = app.request.query.get('channel', selected.code) %}
-
-

{{ 'bitbag_sylius_cms_plugin.ui.load_template_confirmation_modal_text'|trans }}

+

{{ 'sylius_cms_plugin.ui.load_template_confirmation_modal_text'|trans }}

diff --git a/src/Resources/views/Modal/_localeSwitch.html.twig b/src/Resources/views/Modal/_localeSwitch.html.twig index b0fcc38cb..c47ccc04e 100644 --- a/src/Resources/views/Modal/_localeSwitch.html.twig +++ b/src/Resources/views/Modal/_localeSwitch.html.twig @@ -3,10 +3,10 @@ {% set code = app.request.query.get('locale', selected.code) %}
-
-

{{ 'bitbag_sylius_cms_plugin.ui.content_elements.title'|trans }}

- {% include '@BitBagSyliusCmsPlugin/Template/form.html.twig' with {ajax_url: path('bitbag_sylius_cms_plugin_admin_ajax_template_content_by_id', {'id': 'REPLACE_ID'}) } %} +

{{ 'sylius_cms_plugin.ui.content_elements.title'|trans }}

+ {% include '@BitBagSyliusCmsPlugin/Template/form.html.twig' with {ajax_url: path('sylius_cms_plugin_admin_ajax_template_content_by_id', {'id': 'REPLACE_ID'}) } %}
{{ form_row(form.contentElements) }} diff --git a/src/Resources/views/Page/Crud/_slugField.html.twig b/src/Resources/views/Page/Crud/_slugField.html.twig index e80529879..4b0839631 100755 --- a/src/Resources/views/Page/Crud/_slugField.html.twig +++ b/src/Resources/views/Page/Crud/_slugField.html.twig @@ -1,10 +1,10 @@
{{ form_label(slugField) }} {% if slugField.vars.value == null %} - {{ form_widget(slugField, {'attr': {'data-url': path('bitbag_sylius_cms_plugin_admin_ajax_generate_page_slug')}}) }} + {{ form_widget(slugField, {'attr': {'data-url': path('sylius_cms_plugin_admin_ajax_generate_page_slug')}}) }} {% else %}
- {{ form_widget(slugField, {'attr': {'readonly': 'readonly', 'data-url': path('bitbag_sylius_cms_plugin_admin_ajax_generate_page_slug')}}) }} + {{ form_widget(slugField, {'attr': {'readonly': 'readonly', 'data-url': path('sylius_cms_plugin_admin_ajax_generate_page_slug')}}) }} diff --git a/src/Resources/views/Page/link.html.twig b/src/Resources/views/Page/link.html.twig index 363066a63..44e002e8f 100644 --- a/src/Resources/views/Page/link.html.twig +++ b/src/Resources/views/Page/link.html.twig @@ -1,5 +1,5 @@ {% if page != null %} - {{ block.name }} {% endif %} - +
- {{ bitbag_cms_render_block(block.code) }} + {{ sylius_cms_render_block(block.code) }}
{% endfor %} diff --git a/src/Resources/views/Shop/Media/Show/file.html.twig b/src/Resources/views/Shop/Media/Show/file.html.twig index 2a03c5d81..d153e888d 100755 --- a/src/Resources/views/Shop/Media/Show/file.html.twig +++ b/src/Resources/views/Shop/Media/Show/file.html.twig @@ -3,10 +3,10 @@

{{ media.name|raw }}

{% endif %} -

{{ bitbag_cms_render_content(media) }}

+

{{ sylius_cms_render_content(media) }}

-
+ - {{ 'bitbag_sylius_cms_plugin.ui.download'|trans }} + {{ 'sylius_cms_plugin.ui.download'|trans }}
diff --git a/src/Resources/views/Shop/Media/Show/image.html.twig b/src/Resources/views/Shop/Media/Show/image.html.twig index 8eb2c4cc9..5e007d8cf 100755 --- a/src/Resources/views/Shop/Media/Show/image.html.twig +++ b/src/Resources/views/Shop/Media/Show/image.html.twig @@ -11,6 +11,6 @@ {% endif %} {% if media.content %} - {{ bitbag_cms_render_content(media) }} + {{ sylius_cms_render_content(media) }} {% endif %}
diff --git a/src/Resources/views/Shop/Media/Show/video.html.twig b/src/Resources/views/Shop/Media/Show/video.html.twig index 6c75e4aa9..8e72f8c2d 100755 --- a/src/Resources/views/Shop/Media/Show/video.html.twig +++ b/src/Resources/views/Shop/Media/Show/video.html.twig @@ -5,5 +5,5 @@ -

{{ bitbag_cms_render_content(media) }}

+

{{ sylius_cms_render_content(media) }}

diff --git a/src/Resources/views/Shop/Media/index.html.twig b/src/Resources/views/Shop/Media/index.html.twig index d50ac920d..f558736dc 100755 --- a/src/Resources/views/Shop/Media/index.html.twig +++ b/src/Resources/views/Shop/Media/index.html.twig @@ -1,7 +1,7 @@ {% for item in media %}
- {{ bitbag_cms_render_media(item.code) }} + {{ sylius_cms_render_media(item.code) }}
{% endfor %} diff --git a/src/Resources/views/Shop/Page/Error/_notPublished.html.twig b/src/Resources/views/Shop/Page/Error/_notPublished.html.twig index ae4e57005..7500260fe 100644 --- a/src/Resources/views/Shop/Page/Error/_notPublished.html.twig +++ b/src/Resources/views/Shop/Page/Error/_notPublished.html.twig @@ -1,3 +1,3 @@

- {{ 'bitbag_sylius_cms_plugin.ui.page_will_be_publish_at'|trans }} : {{ publishAt|date('Y/m/d H:i') }} + {{ 'sylius_cms_plugin.ui.page_will_be_publish_at'|trans }} : {{ publishAt|date('Y/m/d H:i') }}

diff --git a/src/Resources/views/Shop/Page/Show/_collections.html.twig b/src/Resources/views/Shop/Page/Show/_collections.html.twig index 0dd9e995d..66a291e3b 100755 --- a/src/Resources/views/Shop/Page/Show/_collections.html.twig +++ b/src/Resources/views/Shop/Page/Show/_collections.html.twig @@ -1,6 +1,6 @@ {% if page.collections|length > 0 %} - {{ 'bitbag_sylius_cms_plugin.ui.collections'|trans }}: + {{ 'sylius_cms_plugin.ui.collections'|trans }}: {% for collection in page.collections %} - {{ collection.name }} + {{ collection.name }} {% endfor %} {% endif %} diff --git a/src/Resources/views/Shop/Page/Show/_link.html.twig b/src/Resources/views/Shop/Page/Show/_link.html.twig index 3c7549f80..06a9d9e78 100755 --- a/src/Resources/views/Shop/Page/Show/_link.html.twig +++ b/src/Resources/views/Shop/Page/Show/_link.html.twig @@ -1 +1 @@ -{{ page.name }} +{{ page.name }} diff --git a/src/Resources/views/Shop/Page/index.html.twig b/src/Resources/views/Shop/Page/index.html.twig index 21264943a..4aee00151 100755 --- a/src/Resources/views/Shop/Page/index.html.twig +++ b/src/Resources/views/Shop/Page/index.html.twig @@ -5,7 +5,7 @@ {% block content %} {% if resources.data|length > 0 %} - {{ render(path('bitbag_sylius_cms_plugin_shop_collection_show', {'code' : app.request.get('collectionCode'), 'template' : '@BitBagSyliusCmsPlugin/Shop/Page/Index/_collection.html.twig'})) }} + {{ render(path('sylius_cms_plugin_shop_collection_show', {'code' : app.request.get('collectionCode'), 'template' : '@BitBagSyliusCmsPlugin/Shop/Page/Index/_collection.html.twig'})) }} {% endif %}
@@ -14,7 +14,7 @@
{% for page in resources.data %}
- +

{{ page.name }}

diff --git a/src/Resources/views/Shop/Page/show.html.twig b/src/Resources/views/Shop/Page/show.html.twig index 67dcd96fe..f7b970dab 100755 --- a/src/Resources/views/Shop/Page/show.html.twig +++ b/src/Resources/views/Shop/Page/show.html.twig @@ -31,7 +31,7 @@ -
{{ bitbag_cms_render_content_elements(page) }}
+
{{ sylius_cms_render_content_elements(page) }}
{% if page.collections is not empty %}
diff --git a/src/Resources/views/Shop/Page/teaser.html.twig b/src/Resources/views/Shop/Page/teaser.html.twig index 144056983..2175db567 100644 --- a/src/Resources/views/Shop/Page/teaser.html.twig +++ b/src/Resources/views/Shop/Page/teaser.html.twig @@ -2,7 +2,7 @@
{% if page.teaserImage %} - +
{{ page.teaserTitle }} @@ -11,7 +11,7 @@ {% endif %}
{% if page.teaserTitle %} - +

{{ page.teaserTitle }}

{% endif %} @@ -19,8 +19,8 @@
{{ page.teaserContent }}
- - {{ 'bitbag_sylius_cms_plugin.ui.read_more'|trans }}... + + {{ 'sylius_cms_plugin.ui.read_more'|trans }}...
{{ page.createdAt|date('Y-m-d') }}
diff --git a/src/Resources/views/Shop/Product/_pagesByCollection.html.twig b/src/Resources/views/Shop/Product/_pagesByCollection.html.twig index a8e01f3bc..89f49c82f 100644 --- a/src/Resources/views/Shop/Product/_pagesByCollection.html.twig +++ b/src/Resources/views/Shop/Product/_pagesByCollection.html.twig @@ -22,7 +22,7 @@ {{ page.descriptionWhenLinked }}

- {{ 'bitbag_sylius_cms_plugin.ui.read_more'|trans }} + {{ 'sylius_cms_plugin.ui.read_more'|trans }}
{% endif %} diff --git a/src/Resources/views/Template/Crud/_form.html.twig b/src/Resources/views/Template/Crud/_form.html.twig index 838dd4336..d2f10949e 100644 --- a/src/Resources/views/Template/Crud/_form.html.twig +++ b/src/Resources/views/Template/Crud/_form.html.twig @@ -10,7 +10,7 @@
-

{{ 'bitbag_sylius_cms_plugin.ui.content_elements.title'|trans }}

+

{{ 'sylius_cms_plugin.ui.content_elements.title'|trans }}

{{ form_row(form.contentElements) }} diff --git a/src/Resources/views/Template/form.html.twig b/src/Resources/views/Template/form.html.twig index c53272e25..1c11a6730 100644 --- a/src/Resources/views/Template/form.html.twig +++ b/src/Resources/views/Template/form.html.twig @@ -1,12 +1,12 @@
-
{{ 'bitbag_sylius_cms_plugin.ui.use_page_template'|trans }}
+
{{ 'sylius_cms_plugin.ui.use_page_template'|trans }}
diff --git a/src/Twig/Extension/RenderBlockExtension.php b/src/Twig/Extension/RenderBlockExtension.php index 1be2b99fe..693f4708f 100644 --- a/src/Twig/Extension/RenderBlockExtension.php +++ b/src/Twig/Extension/RenderBlockExtension.php @@ -23,7 +23,7 @@ public function __construct(private RenderBlockRuntimeInterface $blockRuntime) public function getFunctions(): array { return [ - new TwigFunction('bitbag_cms_render_block', [$this->blockRuntime, 'renderBlock'], ['is_safe' => ['html']]), + new TwigFunction('sylius_cms_render_block', [$this->blockRuntime, 'renderBlock'], ['is_safe' => ['html']]), ]; } } diff --git a/src/Twig/Extension/RenderCollectionExtension.php b/src/Twig/Extension/RenderCollectionExtension.php index a19c7d4bc..17acdafb7 100644 --- a/src/Twig/Extension/RenderCollectionExtension.php +++ b/src/Twig/Extension/RenderCollectionExtension.php @@ -24,7 +24,7 @@ public function getFunctions(): array { return [ new TwigFunction( - 'bitbag_cms_render_collection', + 'sylius_cms_render_collection', [$this->collectionRuntime, 'renderCollection'], ['is_safe' => ['html']], ), diff --git a/src/Twig/Extension/RenderContentElementsExtension.php b/src/Twig/Extension/RenderContentElementsExtension.php index d9ccc0748..285400930 100644 --- a/src/Twig/Extension/RenderContentElementsExtension.php +++ b/src/Twig/Extension/RenderContentElementsExtension.php @@ -20,7 +20,7 @@ public function getFunctions(): array { return [ new TwigFunction( - 'bitbag_cms_render_content_elements', + 'sylius_cms_render_content_elements', [RenderContentElementsRuntime::class, 'render'], ['is_safe' => ['html']], ), diff --git a/src/Twig/Extension/RenderContentExtension.php b/src/Twig/Extension/RenderContentExtension.php index eeb58b3d4..301a92157 100644 --- a/src/Twig/Extension/RenderContentExtension.php +++ b/src/Twig/Extension/RenderContentExtension.php @@ -19,7 +19,7 @@ final class RenderContentExtension extends AbstractExtension public function getFunctions(): array { return [ - new TwigFunction('bitbag_cms_render_content', [RenderContentRuntime::class, 'renderContent'], ['is_safe' => ['html']]), + new TwigFunction('sylius_cms_render_content', [RenderContentRuntime::class, 'renderContent'], ['is_safe' => ['html']]), ]; } } diff --git a/src/Twig/Extension/RenderMediaExtension.php b/src/Twig/Extension/RenderMediaExtension.php index 34a88cf2f..eaaffc800 100755 --- a/src/Twig/Extension/RenderMediaExtension.php +++ b/src/Twig/Extension/RenderMediaExtension.php @@ -23,7 +23,7 @@ public function __construct(private RenderMediaRuntimeInterface $mediaRuntime) public function getFunctions(): array { return [ - new TwigFunction('bitbag_cms_render_media', [$this->mediaRuntime, 'renderMedia'], ['is_safe' => ['html']]), + new TwigFunction('sylius_cms_render_media', [$this->mediaRuntime, 'renderMedia'], ['is_safe' => ['html']]), ]; } } diff --git a/src/Twig/Extension/RenderPageLinkExtension.php b/src/Twig/Extension/RenderPageLinkExtension.php index d2c2469c8..02d5d9256 100644 --- a/src/Twig/Extension/RenderPageLinkExtension.php +++ b/src/Twig/Extension/RenderPageLinkExtension.php @@ -19,11 +19,11 @@ class RenderPageLinkExtension extends AbstractExtension public function getFunctions(): array { return [ - new TwigFunction('bitbag_cms_render_page_link', [RenderPageLinkRuntime::class, 'renderLinkForCode'], [ + new TwigFunction('sylius_cms_render_page_link', [RenderPageLinkRuntime::class, 'renderLinkForCode'], [ 'needs_environment' => true, 'is_safe' => ['html'], ]), - new TwigFunction('bitbag_cms_get_page_url', [RenderPageLinkRuntime::class, 'getLinkForCode']), + new TwigFunction('sylius_cms_get_page_url', [RenderPageLinkRuntime::class, 'getLinkForCode']), ]; } } diff --git a/src/Twig/Runtime/RenderPageLinkRuntime.php b/src/Twig/Runtime/RenderPageLinkRuntime.php index 5030f4676..60ee00304 100644 --- a/src/Twig/Runtime/RenderPageLinkRuntime.php +++ b/src/Twig/Runtime/RenderPageLinkRuntime.php @@ -49,6 +49,6 @@ public function getLinkForCode( throw new NotFoundHttpException('Page for code "' . $code . '" not found'); } - return $this->router->generate('bitbag_sylius_cms_plugin_shop_page_show', ['slug' => $page->getSlug()]); + return $this->router->generate('sylius_cms_plugin_shop_page_show', ['slug' => $page->getSlug()]); } } diff --git a/tests/Application/config/routes/bitbag_sylius_cms_plugin.yaml b/tests/Application/config/routes/bitbag_sylius_cms_plugin.yaml index ed40b4bbf..fc20d7fa5 100644 --- a/tests/Application/config/routes/bitbag_sylius_cms_plugin.yaml +++ b/tests/Application/config/routes/bitbag_sylius_cms_plugin.yaml @@ -1,2 +1,2 @@ -bitbag_sylius_cms_plugin: +sylius_cms_plugin: resource: "@BitBagSyliusCmsPlugin/Resources/config/routing.yml" diff --git a/tests/Application/templates/bundles/SyliusAdminBundle/Layout/_scripts.html.twig b/tests/Application/templates/bundles/SyliusAdminBundle/Layout/_scripts.html.twig index 4ff9f3038..41bc02b0c 100644 --- a/tests/Application/templates/bundles/SyliusAdminBundle/Layout/_scripts.html.twig +++ b/tests/Application/templates/bundles/SyliusAdminBundle/Layout/_scripts.html.twig @@ -1,5 +1,5 @@ {{ encore_entry_script_tags('admin-entry', null, 'admin') }} {{ encore_entry_script_tags('bitbag-cms-admin', null, 'cms_admin') }} diff --git a/tests/Application/templates/bundles/SyliusShopBundle/Homepage/index.html.twig b/tests/Application/templates/bundles/SyliusShopBundle/Homepage/index.html.twig index f64bf32bd..8ae211012 100755 --- a/tests/Application/templates/bundles/SyliusShopBundle/Homepage/index.html.twig +++ b/tests/Application/templates/bundles/SyliusShopBundle/Homepage/index.html.twig @@ -3,14 +3,14 @@ {% block content %}
- {{ bitbag_cms_render_block('homepage_textarea') }} - {{ bitbag_cms_render_block('homepage_products_carousel') }} - {{ bitbag_cms_render_block('homepage_products_grid') }} - {{ bitbag_cms_render_block('homepage_taxons_list') }} - {{ bitbag_cms_render_block('homepage_products_carousel_by_taxon') }} - {{ bitbag_cms_render_block('homepage_products_grid_by_taxon') }} + {{ sylius_cms_render_block('homepage_textarea') }} + {{ sylius_cms_render_block('homepage_products_carousel') }} + {{ sylius_cms_render_block('homepage_products_grid') }} + {{ sylius_cms_render_block('homepage_taxons_list') }} + {{ sylius_cms_render_block('homepage_products_carousel_by_taxon') }} + {{ sylius_cms_render_block('homepage_products_grid_by_taxon') }}
diff --git a/tests/Application/templates/bundles/SyliusShopBundle/Product/show.html.twig b/tests/Application/templates/bundles/SyliusShopBundle/Product/show.html.twig index 5a041c8c7..0bb5b1efd 100755 --- a/tests/Application/templates/bundles/SyliusShopBundle/Product/show.html.twig +++ b/tests/Application/templates/bundles/SyliusShopBundle/Product/show.html.twig @@ -4,7 +4,7 @@ {% include '@SyliusShop/Product/Show/_breadcrumb.html.twig' %} - {{ bitbag_cms_render_block('specified_products_banner', null, product) }} + {{ sylius_cms_render_block('specified_products_banner', null, product) }}
@@ -60,5 +60,5 @@ {% include '@SyliusShop/Product/Show/_associations.html.twig' %} - {{ bitbag_cms_render_block('specified_products_in_taxons', null, product) }} + {{ sylius_cms_render_block('specified_products_in_taxons', null, product) }} {% endblock %} diff --git a/tests/Application/templates/bundles/SyliusShopBundle/Taxon/Header/_content.html.twig b/tests/Application/templates/bundles/SyliusShopBundle/Taxon/Header/_content.html.twig index ebda07e93..fde0b25b9 100644 --- a/tests/Application/templates/bundles/SyliusShopBundle/Taxon/Header/_content.html.twig +++ b/tests/Application/templates/bundles/SyliusShopBundle/Taxon/Header/_content.html.twig @@ -3,4 +3,4 @@
{{ taxon.description }}
-{{ bitbag_cms_render_block('taxon_t_shirts_banner', null, taxon) }} +{{ sylius_cms_render_block('taxon_t_shirts_banner', null, taxon) }} diff --git a/tests/Application/templates/bundles/SyliusShopBundle/layout.html.twig b/tests/Application/templates/bundles/SyliusShopBundle/layout.html.twig index 1dd334d10..940b6fe12 100755 --- a/tests/Application/templates/bundles/SyliusShopBundle/layout.html.twig +++ b/tests/Application/templates/bundles/SyliusShopBundle/layout.html.twig @@ -103,12 +103,12 @@