Skip to content

Commit

Permalink
OP-291 remove services directory
Browse files Browse the repository at this point in the history
  • Loading branch information
PiotrSzymanski2000 committed Jun 7, 2024
1 parent 221f80e commit de5a739
Show file tree
Hide file tree
Showing 14 changed files with 17 additions and 17 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@

use BitBag\SyliusWishlistPlugin\Command\Wishlist\ExportSelectedProductsFromWishlistToPdfInterface;
use BitBag\SyliusWishlistPlugin\CommandHandler\Wishlist\ExportSelectedProductsFromWishlistToPdfHandler;
use BitBag\SyliusWishlistPlugin\Services\Exporter\WishlistToPdfExporterInterface;
use BitBag\SyliusWishlistPlugin\Exporter\WishlistToPdfExporterInterface;
use Doctrine\Common\Collections\Collection;
use PhpSpec\ObjectBehavior;

Expand Down
2 changes: 1 addition & 1 deletion spec/Processor/VariantPdfModelProcessorSpec.php
Original file line number Diff line number Diff line change
Expand Up @@ -12,10 +12,10 @@
namespace spec\BitBag\SyliusWishlistPlugin\Processor;

use BitBag\SyliusWishlistPlugin\Command\Wishlist\WishlistItem;
use BitBag\SyliusWishlistPlugin\Generator\ModelCreatorInterface;
use BitBag\SyliusWishlistPlugin\Model\VariantPdfModelInterface;
use BitBag\SyliusWishlistPlugin\Processor\VariantPdfModelProcessor;
use BitBag\SyliusWishlistPlugin\Processor\VariantPdfModelProcessorInterface;
use BitBag\SyliusWishlistPlugin\Services\Generator\ModelCreatorInterface;
use Doctrine\Common\Collections\ArrayCollection;
use PhpSpec\ObjectBehavior;

Expand Down
4 changes: 2 additions & 2 deletions spec/Services/Exporter/DomPdfWishlistExporterSpec.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,10 @@

namespace spec\BitBag\SyliusWishlistPlugin\Services\Exporter;

use BitBag\SyliusWishlistPlugin\Exporter\DomPdfWishlistExporter;
use BitBag\SyliusWishlistPlugin\Exporter\DomPdfWishlistExporterInterface;
use BitBag\SyliusWishlistPlugin\Factory\DomPdfFactoryInterface;
use BitBag\SyliusWishlistPlugin\Model\VariantPdfModelInterface;
use BitBag\SyliusWishlistPlugin\Services\Exporter\DomPdfWishlistExporter;
use BitBag\SyliusWishlistPlugin\Services\Exporter\DomPdfWishlistExporterInterface;
use Doctrine\Common\Collections\ArrayCollection;
use Dompdf\Dompdf;
use PhpSpec\ObjectBehavior;
Expand Down
4 changes: 2 additions & 2 deletions spec/Services/Generator/ModelCreatorSpec.php
Original file line number Diff line number Diff line change
Expand Up @@ -12,11 +12,11 @@
namespace spec\BitBag\SyliusWishlistPlugin\Services\Generator;

use BitBag\SyliusWishlistPlugin\Command\Wishlist\WishlistItemInterface;
use BitBag\SyliusWishlistPlugin\Generator\ModelCreator;
use BitBag\SyliusWishlistPlugin\Generator\ModelCreatorInterface;
use BitBag\SyliusWishlistPlugin\Model\Factory\VariantPdfModelFactoryInterface;
use BitBag\SyliusWishlistPlugin\Model\VariantPdfModelInterface;
use BitBag\SyliusWishlistPlugin\Resolver\VariantImageToDataUriResolverInterface;
use BitBag\SyliusWishlistPlugin\Services\Generator\ModelCreator;
use BitBag\SyliusWishlistPlugin\Services\Generator\ModelCreatorInterface;
use PhpSpec\ObjectBehavior;
use Sylius\Bundle\OrderBundle\Controller\AddToCartCommandInterface;
use Sylius\Component\Core\Model\OrderItemInterface;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
namespace BitBag\SyliusWishlistPlugin\CommandHandler\Wishlist;

use BitBag\SyliusWishlistPlugin\Command\Wishlist\ExportSelectedProductsFromWishlistToPdfInterface;
use BitBag\SyliusWishlistPlugin\Services\Exporter\WishlistToPdfExporterInterface;
use BitBag\SyliusWishlistPlugin\Exporter\WishlistToPdfExporterInterface;
use Symfony\Component\Messenger\Attribute\AsMessageHandler;

#[AsMessageHandler]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@

declare(strict_types=1);

namespace BitBag\SyliusWishlistPlugin\Services\Exporter;
namespace BitBag\SyliusWishlistPlugin\Exporter;

use BitBag\SyliusWishlistPlugin\Factory\DomPdfFactoryInterface;
use Doctrine\Common\Collections\Collection;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@

declare(strict_types=1);

namespace BitBag\SyliusWishlistPlugin\Services\Exporter;
namespace BitBag\SyliusWishlistPlugin\Exporter;

use Doctrine\Common\Collections\Collection;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@

declare(strict_types=1);

namespace BitBag\SyliusWishlistPlugin\Services\Exporter;
namespace BitBag\SyliusWishlistPlugin\Exporter;

use BitBag\SyliusWishlistPlugin\Processor\VariantPdfModelProcessorInterface;
use Doctrine\Common\Collections\Collection;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@

declare(strict_types=1);

namespace BitBag\SyliusWishlistPlugin\Services\Exporter;
namespace BitBag\SyliusWishlistPlugin\Exporter;

use Doctrine\Common\Collections\Collection;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@

declare(strict_types=1);

namespace BitBag\SyliusWishlistPlugin\Services\Generator;
namespace BitBag\SyliusWishlistPlugin\Generator;

use BitBag\SyliusWishlistPlugin\Command\Wishlist\WishlistItemInterface;
use BitBag\SyliusWishlistPlugin\Model\Factory\VariantPdfModelFactoryInterface;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@

declare(strict_types=1);

namespace BitBag\SyliusWishlistPlugin\Services\Generator;
namespace BitBag\SyliusWishlistPlugin\Generator;

use BitBag\SyliusWishlistPlugin\Command\Wishlist\WishlistItemInterface;
use BitBag\SyliusWishlistPlugin\Model\VariantPdfModelInterface;
Expand Down
2 changes: 1 addition & 1 deletion src/Processor/VariantPdfModelProcessor.php
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,8 @@
namespace BitBag\SyliusWishlistPlugin\Processor;

use BitBag\SyliusWishlistPlugin\Command\Wishlist\WishlistItem;
use BitBag\SyliusWishlistPlugin\Generator\ModelCreatorInterface;
use BitBag\SyliusWishlistPlugin\Model\VariantPdfModel;
use BitBag\SyliusWishlistPlugin\Services\Generator\ModelCreatorInterface;
use Doctrine\Common\Collections\ArrayCollection;
use Doctrine\Common\Collections\Collection;

Expand Down
4 changes: 2 additions & 2 deletions src/Resources/config/services/exporter.xml
Original file line number Diff line number Diff line change
Expand Up @@ -5,12 +5,12 @@
http://symfony.com/schema/dic/services/services-1.0.xsd">

<services>
<service id="bitbag_sylius_wishlist_plugin.services.exporter" class="BitBag\SyliusWishlistPlugin\Services\Exporter\WishlistToPdfExporter">
<service id="bitbag_sylius_wishlist_plugin.services.exporter" class="BitBag\SyliusWishlistPlugin\Exporter\WishlistToPdfExporter">
<argument type="service" id="bitbag_sylius_wishlist_plugin.processor.variant_pdf_model_processor"/>
<argument type="service" id="bitbag_sylius_wishlist_plugin.services.exporter.dom_pdf_wishlist_exporter"/>
</service>

<service id="bitbag_sylius_wishlist_plugin.services.exporter.dom_pdf_wishlist_exporter" class="BitBag\SyliusWishlistPlugin\Services\Exporter\DomPdfWishlistExporter">
<service id="bitbag_sylius_wishlist_plugin.services.exporter.dom_pdf_wishlist_exporter" class="BitBag\SyliusWishlistPlugin\Exporter\DomPdfWishlistExporter">
<argument type="service" id="twig"/>
<argument type="service" id="bitbag_sylius_wishlist_plugin.custom_factory.dom_pdf"/>
</service>
Expand Down
2 changes: 1 addition & 1 deletion src/Resources/config/services/generator.xml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
http://symfony.com/schema/dic/services/services-1.0.xsd">

<services>
<service id="bitbag_sylius_wishlist_plugin.services.generator.model_creator" class="BitBag\SyliusWishlistPlugin\Services\Generator\ModelCreator">
<service id="bitbag_sylius_wishlist_plugin.services.generator.model_creator" class="BitBag\SyliusWishlistPlugin\Generator\ModelCreator">
<argument type="service" id="bitbag_sylius_wishlist_plugin.resolver.variant_image_path_resolver"/>
<argument type="service" id="bitbag_sylius_wishlist_plugin.model.factory.variant_pdf_model_factory"/>
<argument type="service" id="request_stack"/>
Expand Down

0 comments on commit de5a739

Please sign in to comment.