Skip to content

Commit 211535f

Browse files
jbcrdamonsson
authored andcommitted
fix injection + clean use
1 parent 222b709 commit 211535f

8 files changed

Lines changed: 3 additions & 9 deletions

File tree

src/Assigner/TaxonsAssigner.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,8 @@
1313
namespace BitBag\SyliusCmsPlugin\Assigner;
1414

1515
use BitBag\SyliusCmsPlugin\Entity\TaxonAwareInterface;
16-
use Sylius\Component\Taxonomy\Repository\TaxonRepositoryInterface;
1716
use Sylius\Component\Core\Model\TaxonInterface;
17+
use Sylius\Component\Taxonomy\Repository\TaxonRepositoryInterface;
1818

1919
final class TaxonsAssigner implements TaxonsAssignerInterface
2020
{

src/Controller/Action/Admin/ImportDataAction.php

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,6 @@
1616
use BitBag\SyliusCmsPlugin\Exception\ImportFailedException;
1717
use BitBag\SyliusCmsPlugin\Form\Type\ImportType;
1818
use BitBag\SyliusCmsPlugin\Processor\ImportProcessorInterface;
19-
use FOS\RestBundle\View\View;
20-
use FOS\RestBundle\View\ViewHandler;
2119
use Symfony\Component\Form\FormFactoryInterface;
2220
use Symfony\Component\HttpFoundation\File\UploadedFile;
2321
use Symfony\Component\HttpFoundation\RedirectResponse;

src/Entity/Page.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,6 @@
1212

1313
namespace BitBag\SyliusCmsPlugin\Entity;
1414

15-
use Sylius\Component\Core\Model\ImageInterface;
1615
use Sylius\Component\Resource\Model\TimestampableTrait;
1716
use Sylius\Component\Resource\Model\ToggleableTrait;
1817
use Sylius\Component\Resource\Model\TranslatableTrait;

src/Entity/SectionInterface.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,6 @@
1212

1313
namespace BitBag\SyliusCmsPlugin\Entity;
1414

15-
use Sylius\Component\Channel\Model\ChannelsAwareInterface;
1615
use Sylius\Component\Resource\Model\ResourceInterface;
1716
use Sylius\Component\Resource\Model\TranslatableInterface;
1817

src/Fixture/Factory/MediaFixtureFactory.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,6 @@
2121
use BitBag\SyliusCmsPlugin\Resolver\MediaProviderResolverInterface;
2222
use Sylius\Component\Resource\Factory\FactoryInterface;
2323
use Symfony\Component\HttpFoundation\File\File;
24-
use Sylius\Component\Channel\Repository\ChannelRepositoryInterface;
2524

2625
final class MediaFixtureFactory implements FixtureFactoryInterface
2726
{

src/Fixture/Factory/PageFixtureFactory.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,8 +21,8 @@
2121
use BitBag\SyliusCmsPlugin\Entity\PageTranslationInterface;
2222
use BitBag\SyliusCmsPlugin\Repository\PageRepositoryInterface;
2323
use BitBag\SyliusCmsPlugin\Resolver\MediaProviderResolverInterface;
24-
use Sylius\Component\Core\Repository\ProductRepositoryInterface;
2524
use Sylius\Component\Channel\Context\ChannelContextInterface;
25+
use Sylius\Component\Core\Repository\ProductRepositoryInterface;
2626
use Sylius\Component\Locale\Context\LocaleContextInterface;
2727
use Sylius\Component\Resource\Factory\FactoryInterface;
2828
use Symfony\Component\HttpFoundation\File\UploadedFile;

src/Form/Type/SectionType.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,6 @@
1313
namespace BitBag\SyliusCmsPlugin\Form\Type;
1414

1515
use BitBag\SyliusCmsPlugin\Form\Type\Translation\SectionTranslationType;
16-
use Sylius\Bundle\ChannelBundle\Form\Type\ChannelChoiceType;
1716
use Sylius\Bundle\ResourceBundle\Form\Type\AbstractResourceType;
1817
use Sylius\Bundle\ResourceBundle\Form\Type\ResourceTranslationsType;
1918
use Symfony\Component\Form\Extension\Core\Type\TextType;

src/Resources/config/services/controller.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ services:
3030
- "@session.flash_bag"
3131
- "@bitbag_sylius_cms_plugin.controller.helper.form_errors_flash"
3232
- "@translator"
33-
- "@fos_rest.view_handler.default"
33+
- "@twig"
3434

3535
bitbag_sylius_cms_plugin.controller.action.admin.upload_editor_image:
3636
class: BitBag\SyliusCmsPlugin\Controller\Action\Admin\UploadEditorImageAction

0 commit comments

Comments
 (0)