Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Symfony EventDispatcherExtension configuration error #821

Open
grekpg opened this issue Oct 31, 2019 · 1 comment
Open

Symfony EventDispatcherExtension configuration error #821

grekpg opened this issue Oct 31, 2019 · 1 comment

Comments

@grekpg
Copy link

grekpg commented Oct 31, 2019

I try add to config payum evens extension

payum.extension.event_dispatcher:
  class: Payum\Core\Bridge\Symfony\Extension\EventDispatcherExtension
  arguments: ["@event_dispatcher"]
  public: true
  tags:
    - { name: payum.extension, all: true, prepend: false }

get error

Argument 1 passed to Payum\Core\Gateway::addExtension() must implement interface Payum\Core\Extension\ExtensionInterface, string given, called in /application/vendor/payum/core/Payum/Core/CoreGatewayFactory.php on line 249

@grekpg
Copy link
Author

grekpg commented Nov 1, 2019

I found working solution

payum.extension.event_dispatcher:
  class: Payum\Core\Bridge\Symfony\Extension\EventDispatcherExtension
  arguments: ["@event_dispatcher"]
  public: true
  tags:
    - { name: payum.extension, all: true, prepend: true }

change prepend: false to prepend: true

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant