OroCRM Forums

Covering OroCRM topics, including community updates and company announcements.

Forums OroCRM Can I override .php files from the "Component" folder?

This topic contains 3 replies, has 2 voices, and was last updated by  Makheshvara 4 months, 1 week ago.

  • Creator
    Topic
  • #37852

    Makheshvara
    Participant

    Hi everyone,

    I met a lot of helpful tips on how to override files from the “Bundle” folder. (For example, let’s say – vendor/oro/platform/src/Oro/Bundle/MessageQueueBundle)

    But did not find about the folder “Component”. (For example, let’s say – vendor/oro/platform/src/Oro/Component/MessageQueue)

    This is real?

    I need the “component” section for the modified creation of records in the database – “MessageProcessor”.

    Any advice or suggestion will be important.

    Thank you.

Viewing 3 replies - 1 through 3 (of 3 total)
  • Author
    Replies
  • #37853

    Makheshvara
    Participant

    Addition,

    I can change in the “vendor/…/Component/…”.

    But I would like to override the files so that there would be no loss of code when updating the system or other operations.

    #37854
    Michael
    Michael
    Keymaster

    Overriding files is a bad practice.
    Override the dependencies in the container instead:

    #37856

    Makheshvara
    Participant

    Thanks for your reply. And thanks for the quick response!

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

You must be logged in to reply to this topic.

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

Yes No