BitBagCommerce / SyliusVueStorefrontPlugin

Sylius plugin integrating Sylius with Vue Storefront
45 stars 24 forks source link

dependency on a non-existent service "bitbag_vue_storefront_plugin.command_bus" #94

Closed crashbtz closed 3 years ago

crashbtz commented 4 years ago

Hi,

When I install the plugin on Sylius 1.7.6, I have an error message saying:

The service "bitbag_sylius_vue_storefront_plugin.api.cart.create_cart" has a dependency on a non-existent service "bitbag_vue_storefront_plugin.command_bus".

Am I doing something wrong?

Thanks

Codeweld commented 4 years ago

Hi, do you have this service specified in src/Resources/config/config.yaml? We haven't tested this plugin on Sylius 1.7 though and there might be some issues.

crashbtz commented 4 years ago

No the service is defined anywhere. But I don't get it, the "bitbag_vue_storefront_plugin.command_bus" service should not be defined in the plugin if you reference it?

Codeweld commented 4 years ago

Please run bin/console debug:config framework and send me block related to messenger

crashbtz commented 4 years ago

here what it says

sylius

Codeweld commented 4 years ago

Have you checked how the plugin behaves on Sylius 1.6? If not, please try. As I mentioned before we had no time to update it to Sylius 1.7 yet, maybe this problem is somehow related.

mraivaras commented 4 years ago

I also facing the same issue on Sylius 1.6.0

Codeweld commented 4 years ago

Ok, I'll have a look into this as fast as possible. Thank you!

EvgKonkin commented 4 years ago

Hey. The problem will be solved if you create a file: /config/packages/command_bus.yaml

framework:
  messenger:
    buses:
      bitbag_vue_storefront_plugin.command_bus:
        middleware:
          - doctrine_transaction
crashbtz commented 4 years ago

Yes indeed or if we import

- { resource: "@SyliusVueStorefrontPlugin/Resources/config/config.yml" }
Codeweld commented 3 years ago

You have to add the following line to the end of the imports section in your config/packages/_sylius.yaml:

- { resource: "@SyliusVueStorefrontPlugin/Resources/config/config.yaml" }

It's also mentioned in the new updated README. I'm closing this one as it's resolved.