diff --git a/src/Controller/Action/CreateNewWishlistAction.php b/src/Controller/Action/CreateNewWishlistAction.php index ac1f49fd..7d0a807f 100644 --- a/src/Controller/Action/CreateNewWishlistAction.php +++ b/src/Controller/Action/CreateNewWishlistAction.php @@ -23,32 +23,20 @@ final class CreateNewWishlistAction { - private FormFactoryInterface $formFactory; - private MessageBusInterface $commandBus; - private Environment $twigEnvironment; - private FlashBagInterface $flashBag; private TranslatorInterface $translator; - private UrlGeneratorInterface $urlGenerator; - public function __construct( - FormFactoryInterface $formFactory, MessageBusInterface $commandBus, - Environment $twigEnvironment, FlashBagInterface $flashBag, - TranslatorInterface $translator, - UrlGeneratorInterface $urlGenerator + TranslatorInterface $translator ) { - $this->formFactory = $formFactory; $this->commandBus = $commandBus; - $this->twigEnvironment = $twigEnvironment; $this->flashBag = $flashBag; $this->translator = $translator; - $this->urlGenerator = $urlGenerator; } public function __invoke(Request $request): Response diff --git a/src/Resources/assets/shop/js/handleCopyToWishlistListModal.js b/src/Resources/assets/shop/js/handleCopyToWishlistListModal.js index 197b0ffd..ff26a251 100644 --- a/src/Resources/assets/shop/js/handleCopyToWishlistListModal.js +++ b/src/Resources/assets/shop/js/handleCopyToWishlistListModal.js @@ -1,7 +1,6 @@ import { CreateCopyToWishlistsListModal } from './copyToWishlistsListModal' const copyToWishlistBtn = document.querySelector('[data-bb-wl-list-modal-target="choose-wishlist-button"]') -console.log(copyToWishlistBtn); const setAddWishlistModal = () => { copyToWishlistBtn.addEventListener('click', (e) => { e.preventDefault(); @@ -30,7 +29,6 @@ const setAddWishlistModal = () => { try { const response = await fetch(url, requestConfig); const data = await response.json(); - console.log(data); wishlistsBtn.classList.add('bb-copy-to-wishlist-sukces') setTimeout(() => { wishlistsBtn.classList.remove('bb-copy-to-wishlist-sukces') diff --git a/src/Resources/config/services.yml b/src/Resources/config/services.yml index 37effbb9..ef663c31 100644 --- a/src/Resources/config/services.yml +++ b/src/Resources/config/services.yml @@ -260,12 +260,9 @@ services: bitbag_sylius_wishlist_plugin.controller.action.create_new_wishlist: class: BitBag\SyliusWishlistPlugin\Controller\Action\CreateNewWishlistAction arguments: - - "@form.factory" - "@sylius.command_bus" - - "@twig" - "@session.flash_bag" - "@translator" - - "@router" tags: - { name: controller.service_arguments }