Service registration in symfony

How does SuiteCRM V8 handle service registration and discovery within its Symfony implementation?

You can define Symfony services under extensions directory and they will be picked up on a cache clear.

Normally you would replicate the directory structure of the core code, when applicable, but this is just a best-practice, not mandatory.

Several of these articles include Symfony services definitions:

P.S. - you’re asking quite a number of questions today… :sweat_smile: you want us to write a book for you with everything?

I was given many questions from my dev team so I am asking on their behalf. And hopefully others can benefit from these answers.

Yes. I read all your questions, but many I don’t know the answer, and others I can’t find the time to explain. Make sure your dev team sees all those videos.

I suggest a couple of things for your learning process:

  • pull more questions together into a single thread, and try to write what you already consulted and understood: for example, many questions boil down to the SuiteCRM/Symfony connection. They can be investigated by trying variations, understading core mechanisms, from existing documentation, even if the docs are rather thin at the moment

  • turn your questions to the style of “how can we learn”, “how can we experiment”, “how can we investigate”, “how can we debug or trace the code”, because working with v8 at the moment is more that kind of exercise, learn-as-you-go, learn how to navigate the problem to get your own answers.

I don’t mean this in any way as a rebuke, it’s really my most positive and honest advice for you (and others) at the moment. I wish we had more and better docs, but we’ll have to write them if we want them.

Hi,

So the old method was to work with the custom directory to modify/extend modules and also create new modules.
How would we do this now correctly, is there any good code examples of doing precisely this. A good more complete code example?
Learning from code directly is a lot more beneficial - for me at least.

@NJS are you working with @rossrawlins ? Just trying to understand what is going on in this thread :slight_smile:

Have you watched the videos with examples (code examples like you want)?

Yes we work together

And this :point_up: ?

For many of the questions you have in the other threads, this is actually what will take you further.

EDIT: and also - if you ask question from those starting points, you will get more engagement and more answers, I think. For example: there are examples there with back-end services, if you get them working you can then ask about further issues.

1 Like

Indeed, we have gotten some answers to question there in. The questions that have been asked in the forum are ones we have been unable to find answers for.