Skip to content

Commit

Permalink
OP-290: Change namespace from BitBag\SyliusCmsPlugin\ to Sylius\CmsPl…
Browse files Browse the repository at this point in the history
…ugin\
  • Loading branch information
jkindly committed Aug 26, 2024
1 parent 5799d5e commit ded6ce3
Show file tree
Hide file tree
Showing 465 changed files with 1,296 additions and 1,296 deletions.
2 changes: 1 addition & 1 deletion UPGRADE.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion behat.yml.dist
Original file line number Diff line number Diff line change
Expand Up @@ -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: ~

Expand Down
6 changes: 3 additions & 3 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -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"]
},
Expand Down
4 changes: 2 additions & 2 deletions doc/content_elements.md
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down Expand Up @@ -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
Expand Down
8 changes: 4 additions & 4 deletions doc/importing-resources.md
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand All @@ -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
{
Expand All @@ -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;
Expand Down
2 changes: 1 addition & 1 deletion doc/installation.md
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down
2 changes: 1 addition & 1 deletion doc/media.md
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down
4 changes: 2 additions & 2 deletions phpspec.yml.dist
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
suites:
main:
namespace: BitBag\SyliusCmsPlugin
psr4_prefix: BitBag\SyliusCmsPlugin
namespace: Sylius\CmsPlugin
psr4_prefix: Sylius\CmsPlugin
2 changes: 1 addition & 1 deletion phpunit.xml.dist
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
</testsuites>

<php>
<server name="KERNEL_CLASS" value="Tests\BitBag\SyliusCmsPlugin\Application\Kernel" />
<server name="KERNEL_CLASS" value="Tests\Sylius\CmsPlugin\Application\Kernel" />
<server name="IS_DOCTRINE_ORM_SUPPORTED" value="true"/>
<server name="EXPECTED_RESPONSE_DIR" value="../Responses/Expected"/>
<env name="APP_SECRET" value="''" />
Expand Down
6 changes: 3 additions & 3 deletions spec/Assigner/ChannelsAssignerSpec.php
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
12 changes: 6 additions & 6 deletions spec/Assigner/CollectionsAssignerSpec.php
Original file line number Diff line number Diff line change
Expand Up @@ -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
{
Expand Down
8 changes: 4 additions & 4 deletions spec/Assigner/LocalesAssignerSpec.php
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand Down
8 changes: 4 additions & 4 deletions spec/Assigner/ProductsAssignerSpec.php
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand Down
8 changes: 4 additions & 4 deletions spec/Assigner/ProductsInTaxonsAssignerSpec.php
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand Down
8 changes: 4 additions & 4 deletions spec/Assigner/TaxonsAssignerSpec.php
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand Down
12 changes: 6 additions & 6 deletions spec/Controller/Action/Admin/UploadEditorImageActionSpec.php
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
8 changes: 4 additions & 4 deletions spec/Entity/BlockSpec.php
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand Down
6 changes: 3 additions & 3 deletions spec/Entity/CollectionSpec.php
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
8 changes: 4 additions & 4 deletions spec/Entity/MediaSpec.php
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
6 changes: 3 additions & 3 deletions spec/Entity/MediaTranslationSpec.php
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand Down
8 changes: 4 additions & 4 deletions spec/Entity/PageSpec.php
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand Down
8 changes: 4 additions & 4 deletions spec/Entity/PageTranslationSpec.php
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand Down
10 changes: 5 additions & 5 deletions spec/EventListener/MediaUploadListenerSpec.php
Original file line number Diff line number Diff line change
Expand Up @@ -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
{
Expand Down
4 changes: 2 additions & 2 deletions spec/Exception/ImportFailedExceptionSpec.php
Original file line number Diff line number Diff line change
Expand Up @@ -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
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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
{
Expand Down
Loading

0 comments on commit ded6ce3

Please sign in to comment.