OroCommerce Forums

Covering OroCommerce topics, including community updates and company announcements.

Forums Forums OroCommerce The service "… " has a dependency on a non-existent

This topic contains 4 replies, has 3 voices, and was last updated by  Guillaume Deneux 1 year, 8 months ago.

Starting from March 1, 2020 the forum has been switched to the read-only mode. Please head to StackOverflow for support.

  • Creator
  • #37517

    Guillaume Deneux

    I am trying to overload the service: oro_rfp.form.type.request
    I followed the documentation: https://symfony.com/doc/2.8/service_container/service_decoration.html
    But I have the following error that appears when clearing the cache:
    I don’t understand what i have to do.

    Thank you for your help

Viewing 4 replies - 1 through 4 (of 4 total)
  • Author
  • #37518

    “By convention, the old app.mailer service is renamed to app.decorating_mailer.inner, so you can inject it into your new service.” – they meant that the original service becomes available as NEW_SERVICE_ID.inner, or in your case custom_rfp.decorating_rfp_request_decorator.inner


    Guillaume Deneux

    I thought I tried it. Thank you!
    So now I have :

    La classe :

    But now I have the following error:

    The type name specified for the service “oro_rfp.form.type.frontend_request” does not match the actual name. Expected “Oro\Bundle\RFPBundle\Form\Type\Frontend\RequestType”, given “Custom\RFPBundle\Form\Type\Frontend\DecoratingRequestType”

    Do you have an idea of the problem ? I spent several hours without success ..

    Andrey Yatsenko
    Andrey Yatsenko

    Form types should not be decorated like regular services.
    Instead, it’s recommended to use form type extensions where you can update the original form type


    Guillaume Deneux

    Great, that’s what I needed, it works, thank you!

Viewing 4 replies - 1 through 4 (of 4 total)

The forum ‘OroCommerce’ is closed to new topics and replies.

You will be redirected to [title]. Would you like to continue?

Yes No