Sylius / RefundPlugin

Basic refunds functionality for Sylius
MIT License
63 stars 68 forks source link

[Bug] CreditMemoFactory has a dependency on a non-existent service "sylius_refund.factory.credit_memo" #411

Open umpirsky opened 1 year ago

umpirsky commented 1 year ago

SyliusRefundPlugin version affected: 1.3.0

Description

/srv/sylius # bin/console doctrine:migrations:migrate

In DecoratorServicePass.php line 84:

  The service "Sylius\RefundPlugin\Factory\CreditMemoFactory" has a dependency on a non-existent service "sylius_refund.factory.credit_memo".                                                                                                                                     

Steps to reproduce
Just follow installation insructions from README.

Possible Solution
Where is sylius_refund.factory.credit_memo service defined?

JordiDekker commented 1 year ago

@umpirsky Please check if you have the following configuration:

# config/packages/sylius_refund.yaml
imports:
    - { resource: "@SyliusRefundPlugin/Resources/config/app/config.yml" }

Also activating the Snappy bundle looks required:

// config/bundles.php

Knp\Bundle\SnappyBundle\KnpSnappyBundle::class => ['all' => true],
Sylius\RefundPlugin\SyliusRefundPlugin::class => ['all' => true],