Files
wyczarujprezent.pl/modules/inpostizi/config/services/common_front.yml
Jacek Pyziak 4066f6fa31 Add InPost Pay integration to admin templates
- Created a new template for the cart rule form with custom label, switch, and choice widgets.
- Implemented the InPost Pay block in the order details template for displaying delivery method, APM, and VAT invoice request.
- Added legacy support for the order details template to maintain compatibility with older PrestaShop versions.
2025-09-14 14:38:09 +02:00

491 lines
19 KiB
YAML

# common FO configuration
services:
izi\prestashop\View\Asset\FrontAssetManager:
class: izi\prestashop\View\Asset\FrontAssetManager
public: false
arguments:
- '@inpost.izi.module'
- '@inpost.izi.context'
izi\prestashop\Hook\Front\ActionFrontControllerSetMedia:
class: izi\prestashop\Hook\Front\ActionFrontControllerSetMedia
public: false
tags:
- { name: inpost.izi.hook }
arguments:
- '@izi\prestashop\View\Asset\FrontAssetManager'
- '@inpost.izi.security.authorization_checker'
- !tagged inpost.izi.front_assets_provider
- '@izi\prestashop\Configuration\ApiConfigurationInterface'
izi\prestashop\Hook\Front\DisplayHeader:
class: izi\prestashop\Hook\Front\DisplayHeader
public: false
tags:
- { name: inpost.izi.hook }
arguments:
- '@inpost.izi.context'
- '@izi\prestashop\Configuration\GeneralConfigurationInterface'
- '@izi\prestashop\Configuration\ApiConfigurationInterface'
- '@inpost.izi.security.authorization_checker'
- '@izi\prestashop\Analytics\Cookie\Executor\CookiePersisterExecutor'
- '@izi\prestashop\Repository\BasketSessionRepository'
- '@izi\prestashop\Event\EventDispatcherInterface'
izi\prestashop\Hook\Front\ActionGetPaymentOptions:
class: izi\prestashop\Hook\Front\ActionGetPaymentOptions
public: false
tags:
- { name: inpost.izi.hook }
arguments:
- '@inpost.izi.module'
- '@izi\prestashop\Payment\PaymentCurrencyChecker'
- '@izi\prestashop\Configuration\GuiConfiguration'
- '@izi\prestashop\View\Templating\RendererInterface'
izi\prestashop\Hook\Front\DisplayIziThankYou:
class: izi\prestashop\Hook\Front\DisplayIziThankYou
public: false
tags:
- { name: inpost.izi.hook }
arguments:
- '@inpost.izi.module'
- '@izi\prestashop\Configuration\GeneralConfiguration'
izi\prestashop\Hook\Front\DisplayOrderConfirmation:
class: izi\prestashop\Hook\Front\DisplayOrderConfirmation
public: false
tags:
- { name: inpost.izi.hook }
arguments:
- '@izi\prestashop\Repository\BasketSessionRepository'
- '@inpost.izi.context'
- '@inpost.izi.module'
- '@izi\prestashop\Configuration\GeneralConfiguration'
izi\prestashop\Hook\Front\DisplayPaymentReturn:
class: izi\prestashop\Hook\Front\DisplayPaymentReturn
public: false
tags:
- { name: inpost.izi.hook }
arguments:
- '@inpost.izi.module'
- '@izi\prestashop\Configuration\GeneralConfiguration'
izi\prestashop\Hook\Front\DisplayProductActions:
class: izi\prestashop\Hook\Front\DisplayProductActions
public: false
tags:
- { name: inpost.izi.hook }
arguments:
- '@izi\prestashop\Configuration\GuiConfiguration'
- '@izi\prestashop\Configuration\GeneralConfiguration'
- '@inpost.izi.module'
- '@izi\prestashop\View\Templating\RendererInterface'
- '@inpost.izi.context'
- '@izi\prestashop\Repository\BasketSessionRepository'
izi\prestashop\Hook\Front\DisplayProductAdditionalInfo:
class: izi\prestashop\Hook\Front\DisplayProductAdditionalInfo
public: false
tags:
- { name: inpost.izi.hook }
arguments:
- '@izi\prestashop\Configuration\GuiConfiguration'
- '@izi\prestashop\Configuration\GeneralConfiguration'
- '@inpost.izi.module'
- '@izi\prestashop\View\Templating\RendererInterface'
- '@inpost.izi.context'
- '@izi\prestashop\Repository\BasketSessionRepository'
izi\prestashop\Hook\Front\DisplayShoppingCart:
class: izi\prestashop\Hook\Front\DisplayShoppingCart
public: false
tags:
- { name: inpost.izi.hook }
arguments:
- '@izi\prestashop\Configuration\GuiConfiguration'
- '@inpost.izi.module'
- '@izi\prestashop\View\Templating\RendererInterface'
izi\prestashop\Hook\Front\DisplayShoppingCartFooter:
class: izi\prestashop\Hook\Front\DisplayShoppingCartFooter
public: false
tags:
- { name: inpost.izi.hook }
arguments:
- '@izi\prestashop\Configuration\GuiConfiguration'
- '@inpost.izi.module'
- '@izi\prestashop\View\Templating\RendererInterface'
izi\prestashop\Hook\Front\DisplayExpressCheckout:
class: izi\prestashop\Hook\Front\DisplayExpressCheckout
public: false
tags:
- { name: inpost.izi.hook }
arguments:
- '@izi\prestashop\Configuration\GuiConfiguration'
- '@inpost.izi.module'
- '@izi\prestashop\View\Templating\RendererInterface'
izi\prestashop\Hook\Front\DisplayCheckoutSummaryTop:
class: izi\prestashop\Hook\Front\DisplayCheckoutSummaryTop
public: false
tags:
- { name: inpost.izi.hook }
arguments:
- '@izi\prestashop\Configuration\GuiConfiguration'
- '@izi\prestashop\Configuration\GeneralConfiguration'
- '@inpost.izi.module'
- '@izi\prestashop\View\Templating\RendererInterface'
izi\prestashop\Hook\Front\DisplayCustomerAccountFormTop:
class: izi\prestashop\Hook\Front\DisplayCustomerAccountFormTop
public: false
tags:
- { name: inpost.izi.hook }
arguments:
- '@izi\prestashop\Configuration\GuiConfiguration'
- '@inpost.izi.module'
- '@izi\prestashop\View\Templating\RendererInterface'
izi\prestashop\Hook\Front\DisplayCustomerLoginFormAfter:
class: izi\prestashop\Hook\Front\DisplayCustomerLoginFormAfter
public: false
tags:
- { name: inpost.izi.hook }
arguments:
- '@izi\prestashop\Configuration\GuiConfiguration'
- '@inpost.izi.module'
- '@izi\prestashop\View\Templating\RendererInterface'
izi\prestashop\Hook\Front\DisplayIziCartPreviewButton:
class: izi\prestashop\Hook\Front\DisplayIziCartPreviewButton
public: false
tags:
- { name: inpost.izi.hook }
arguments:
- '@izi\prestashop\Configuration\GuiConfiguration'
- '@inpost.izi.module'
- '@izi\prestashop\View\Templating\RendererInterface'
izi\prestashop\Hook\Front\DisplayIziCheckoutButton:
class: izi\prestashop\Hook\Front\DisplayIziCheckoutButton
public: false
tags:
- { name: inpost.izi.hook }
arguments:
- '@izi\prestashop\Configuration\GuiConfiguration'
- '@izi\prestashop\Configuration\GeneralConfiguration'
- '@inpost.izi.module'
- '@izi\prestashop\View\Templating\RendererInterface'
izi\prestashop\Controller\WidgetController:
class: izi\prestashop\Controller\WidgetController
public: true
arguments:
- '@inpost.izi.module'
- '@inpost.izi.context'
- '@izi\prestashop\CommandBus'
- '@inpost.izi.widget_controller_locator'
izi\prestashop\Controller\Api\BasketController:
class: izi\prestashop\Controller\Api\BasketController
public: true
arguments:
- '@inpost.izi.serializer'
- '@izi\prestashop\CommandBus'
izi\prestashop\Controller\Api\OrderController:
class: izi\prestashop\Controller\Api\OrderController
public: true
arguments:
- '@inpost.izi.serializer'
- '@izi\prestashop\CommandBus'
izi\prestashop\Controller\Api\ProductController:
class: izi\prestashop\Controller\Api\ProductController
public: true
arguments:
- '@inpost.izi.serializer'
- '@izi\prestashop\CommandBus'
izi\prestashop\Handler\GetBasketBindingKeyHandlerInterface: '@izi\prestashop\Handler\GetBasketBindingKeyHandler'
izi\prestashop\Handler\GetBasketBindingKeyHandler:
class: izi\prestashop\Handler\GetBasketBindingKeyHandler
public: false
tags:
- { name: inpost.izi.command_handler }
arguments:
- '@izi\prestashop\Repository\BasketSessionRepository'
- '@izi\prestashop\BasketApp\Basket\BasketsApiClientInterface'
- '@inpost.izi.context'
izi\prestashop\Handler\GetOrderConfirmationUrlHandlerInterface: '@izi\prestashop\Handler\GetOrderConfirmationUrlHandler'
izi\prestashop\Handler\GetOrderConfirmationUrlHandler:
class: izi\prestashop\Handler\GetOrderConfirmationUrlHandler
public: false
tags:
- { name: inpost.izi.command_handler }
arguments:
- '@izi\prestashop\Repository\BasketSessionRepository'
- '@izi\prestashop\Order\ContextCustomerUpdater'
izi\prestashop\MerchantApi\Handler\ConfirmBasketBindingHandlerInterface: '@izi\prestashop\MerchantApi\Handler\ConfirmBasketBindingHandler'
izi\prestashop\MerchantApi\Handler\ConfirmBasketBindingHandler:
class: izi\prestashop\MerchantApi\Handler\ConfirmBasketBindingHandler
public: false
tags:
- { name: inpost.izi.command_handler }
arguments:
- '@izi\prestashop\Repository\BasketSessionRepository'
- '@izi\prestashop\Builder\Basket\BasketBuilderFactory'
izi\prestashop\MerchantApi\Handler\DeleteBasketBindingHandlerInterface: '@izi\prestashop\MerchantApi\Handler\DeleteBasketBindingHandler'
izi\prestashop\MerchantApi\Handler\DeleteBasketBindingHandler:
class: izi\prestashop\MerchantApi\Handler\DeleteBasketBindingHandler
public: false
tags:
- { name: inpost.izi.command_handler }
arguments:
- '@izi\prestashop\Repository\BasketSessionRepository'
izi\prestashop\MerchantApi\Handler\GetBasketHandlerInterface: '@izi\prestashop\MerchantApi\Handler\GetBasketHandler'
izi\prestashop\MerchantApi\Handler\GetBasketHandler:
class: izi\prestashop\MerchantApi\Handler\GetBasketHandler
public: false
tags:
- { name: inpost.izi.command_handler }
arguments:
- '@izi\prestashop\Repository\BasketSessionRepository'
- '@izi\prestashop\Builder\Basket\BasketBuilderFactory'
izi\prestashop\MerchantApi\Handler\UpdateBasketHandlerInterface: '@izi\prestashop\MerchantApi\Handler\UpdateBasketHandler'
izi\prestashop\MerchantApi\Handler\UpdateBasketHandler:
class: izi\prestashop\MerchantApi\Handler\UpdateBasketHandler
public: false
tags:
- { name: inpost.izi.command_handler }
arguments:
- '@izi\prestashop\Repository\BasketSessionRepository'
- '@izi\prestashop\MerchantApi\Handler\Basket\BasketEventHandler'
- '@izi\prestashop\Builder\Basket\BasketBuilderFactory'
izi\prestashop\MerchantApi\Handler\GetProductsHandlerInterface: '@izi\prestashop\MerchantApi\Handler\GetProductsHandler'
izi\prestashop\MerchantApi\Handler\GetProductsHandler:
class: izi\prestashop\MerchantApi\Handler\GetProductsHandler
public: false
tags:
- { name: inpost.izi.command_handler }
arguments:
- '@izi\prestashop\HotProduct\HotProductRepositoryInterface'
- '@izi\prestashop\HotProduct\HotProductDataMapperInterface'
- '@izi\prestashop\BasketApp\Product\ProductsApiClientInterface'
- '@izi\prestashop\Cache\ConfigurationCache'
- '@izi\prestashop\ObjectModel\Repository\ProductRepository'
izi\prestashop\MerchantApi\Handler\AddProductToBasketHandlerInterface: '@izi\prestashop\MerchantApi\Handler\AddProductToBasketHandler'
izi\prestashop\MerchantApi\Handler\AddProductToBasketHandler:
class: izi\prestashop\MerchantApi\Handler\AddProductToBasketHandler
public: false
tags:
- { name: inpost.izi.command_handler }
arguments:
- '@izi\prestashop\Repository\BasketSessionRepository'
- '@izi\prestashop\ContextManager'
- '@izi\prestashop\CommandBusInterface'
- '@izi\prestashop\Event\EventDispatcherInterface'
- '@izi\prestashop\Builder\Basket\BasketBuilderFactory'
izi\prestashop\MerchantApi\Handler\CreateOrderHandlerInterface: '@izi\prestashop\MerchantApi\Handler\CreateOrderHandler'
izi\prestashop\MerchantApi\Handler\CreateOrderHandler:
class: izi\prestashop\MerchantApi\Handler\CreateOrderHandler
public: false
tags:
- { name: inpost.izi.command_handler }
arguments:
- '@izi\prestashop\Repository\BasketSessionRepository'
- '@izi\prestashop\CommandBusInterface'
izi\prestashop\MerchantApi\Handler\GetOrderHandlerInterface: '@izi\prestashop\MerchantApi\Handler\GetOrderHandler'
izi\prestashop\MerchantApi\Handler\GetOrderHandler:
class: izi\prestashop\MerchantApi\Handler\GetOrderHandler
public: false
tags:
- { name: inpost.izi.command_handler }
arguments:
- '@inpost.izi.object_model.order_repository'
- '@izi\prestashop\Repository\BasketSessionRepository'
- '@izi\prestashop\Analytics\BasketAnalyticsRepositoryInterface'
izi\prestashop\MerchantApi\Handler\UpdateOrderHandlerInterface: '@izi\prestashop\MerchantApi\Handler\UpdateOrderHandler'
izi\prestashop\MerchantApi\Handler\UpdateOrderHandler:
class: izi\prestashop\MerchantApi\Handler\UpdateOrderHandler
public: false
tags:
- { name: inpost.izi.command_handler }
arguments:
- '@inpost.izi.object_model.order_repository'
- '@izi\prestashop\Configuration\OrdersConfiguration'
- '@izi\prestashop\Builder\Order\OrderStatusDescriptionProvider'
- '@inpost.izi.general_logger'
izi\prestashop\MerchantApi\Handler\Order\UpdateCartMessageHandlerInterface: '@izi\prestashop\MerchantApi\Handler\Order\UpdateCartMessageHandler'
izi\prestashop\MerchantApi\Handler\Order\UpdateCartMessageHandler:
class: izi\prestashop\MerchantApi\Handler\Order\UpdateCartMessageHandler
public: false
tags:
- { name: inpost.izi.command_handler }
arguments:
- '@izi\prestashop\ObjectModel\ObjectManagerInterface'
- '@izi\prestashop\Configuration\OrdersConfiguration'
- '@izi\prestashop\Order\Message\MessageFormatterInterface'
izi\prestashop\MerchantApi\Handler\Basket\CreateCartHandlerInterface: '@izi\prestashop\MerchantApi\Handler\Basket\CreateCartHandler'
izi\prestashop\MerchantApi\Handler\Basket\CreateCartHandler:
class: izi\prestashop\MerchantApi\Handler\Basket\CreateCartHandler
public: false
tags:
- { name: inpost.izi.command_handler }
arguments:
- '@inpost.izi.context'
- '@izi\prestashop\Configuration\PrestaShopConfiguration'
- '@izi\prestashop\ObjectModel\ObjectManagerInterface'
izi\prestashop\MerchantApi\Handler\Basket\AddProductToCartHandlerInterface: '@izi\prestashop\MerchantApi\Handler\Basket\AddProductToCartHandler'
izi\prestashop\MerchantApi\Handler\Basket\AddProductToCartHandler:
class: izi\prestashop\MerchantApi\Handler\Basket\AddProductToCartHandler
public: false
tags:
- { name: inpost.izi.command_handler }
arguments:
- '@inpost.izi.context'
- '@izi\prestashop\ObjectModel\Repository\ProductRepository'
- '@izi\prestashop\Translation\LegacyTranslator'
- '@inpost.izi.general_logger'
izi\prestashop\MerchantApi\Handler\Basket\IncrementCartQuantityHandlerInterface: '@izi\prestashop\MerchantApi\Handler\Basket\IncrementCartQuantityHandler'
izi\prestashop\MerchantApi\Handler\Basket\IncrementCartQuantityHandler:
class: izi\prestashop\MerchantApi\Handler\Basket\IncrementCartQuantityHandler
public: false
tags:
- { name: inpost.izi.command_handler }
arguments:
- '@izi\prestashop\ObjectModel\Repository\ProductRepository'
- '@izi\prestashop\Translation\LegacyTranslator'
- '@inpost.izi.general_logger'
izi\prestashop\MerchantApi\Handler\Basket\BasketEventHandlerInterface: '@izi\prestashop\MerchantApi\Handler\Basket\BasketEventHandler'
izi\prestashop\MerchantApi\Handler\Basket\BasketEventHandler:
class: izi\prestashop\MerchantApi\Handler\Basket\BasketEventHandler
public: false
arguments:
- '@inpost.izi.basket_event_handler_locator'
- '@izi\prestashop\ContextManager'
- '@izi\prestashop\Event\EventDispatcherInterface'
izi\prestashop\MerchantApi\Handler\Basket\ProductsQuantityEventHandler:
class: izi\prestashop\MerchantApi\Handler\Basket\ProductsQuantityEventHandler
public: false
tags:
- { name: inpost.izi.basket_event_handler }
arguments:
- '@inpost.izi.module'
- '@inpost.izi.context'
- '@izi\prestashop\ObjectModel\ObjectManager'
- '@inpost.izi.general_logger'
izi\prestashop\MerchantApi\Handler\Basket\PromoCodesEventHandler:
class: izi\prestashop\MerchantApi\Handler\Basket\PromoCodesEventHandler
public: false
tags:
- { name: inpost.izi.basket_event_handler }
arguments:
- '@inpost.izi.module'
- '@inpost.izi.context'
- '@izi\prestashop\ObjectModel\ObjectManager'
- '@inpost.izi.general_logger'
izi\prestashop\MerchantApi\Handler\Basket\RelatedProductsEventHandler:
class: izi\prestashop\MerchantApi\Handler\Basket\RelatedProductsEventHandler
public: false
tags:
- { name: inpost.izi.basket_event_handler }
arguments:
- '@izi\prestashop\CommandBusInterface'
- '@inpost.izi.context'
izi\prestashop\MerchantApi\Firewall\MerchantApiAuthenticator:
class: izi\prestashop\MerchantApi\Firewall\MerchantApiAuthenticator
public: true # todo: make private after refactoring the front controller
arguments:
- '@izi\prestashop\MerchantApi\Firewall\SigningKeysService'
- '@inpost.izi.clock'
izi\prestashop\MerchantApi\Firewall\SigningKeysService:
class: izi\prestashop\MerchantApi\Firewall\SigningKeysService
public: false
arguments:
- '@izi\prestashop\BasketApp\Signature\SigningKeysApiClientInterface'
- '@izi\prestashop\Cache\ConfigurationCache'
inpost.izi.security.access.decision_manager:
class: Symfony\Component\Security\Core\Authorization\AccessDecisionManager
public: false
arguments:
- !tagged inpost.izi.security_voter
inpost.izi.security.authorization_checker:
class: izi\prestashop\Security\AuthorizationChecker
public: false
tags:
- { name: inpost.izi.widget_controller_dependency, key: Symfony\Component\Security\Core\Authorization\AuthorizationCheckerInterface }
arguments:
- '@inpost.izi.security.access.decision_manager'
izi\prestashop\Security\Voter\BindingWidgetVoter:
class: izi\prestashop\Security\Voter\BindingWidgetVoter
public: false
tags:
- { name: inpost.izi.security_voter }
arguments:
- '@izi\prestashop\Configuration\GeneralConfigurationInterface'
- '@inpost.izi.context'
izi\prestashop\View\Asset\Provider\Front\CommonAssetsProvider:
class: izi\prestashop\View\Asset\Provider\Front\CommonAssetsProvider
public: false
tags:
- { name: inpost.izi.front_assets_provider }
arguments:
- '@inpost.izi.module'
- '@inpost.izi.context'
- '@inpost.izi.environment'
izi\prestashop\View\Asset\Provider\Front\ProductPageAssetsProvider:
class: izi\prestashop\View\Asset\Provider\Front\ProductPageAssetsProvider
public: false
tags:
- { name: inpost.izi.front_assets_provider }
arguments:
- '@izi\prestashop\Configuration\GeneralConfigurationInterface'
- '@inpost.izi.context'
izi\prestashop\View\Asset\Provider\Front\WidgetConfigurationProvider:
class: izi\prestashop\View\Asset\Provider\Front\WidgetConfigurationProvider
public: false
tags:
- { name: inpost.izi.front_assets_provider }
arguments:
- '@inpost.izi.context'
- '@izi\prestashop\Configuration\ApiConfigurationInterface'
- '@izi\prestashop\Configuration\GeneralConfigurationInterface'
- '@izi\prestashop\Repository\BasketSessionRepository'
izi\prestashop\Order\ContextCustomerUpdater:
class: izi\prestashop\Order\ContextCustomerUpdater
public: false
arguments:
- '@inpost.izi.context'
- '@izi\prestashop\ObjectModel\ObjectManagerInterface'