Answer the question
In order to leave comments, you need to log in
How to change config type in symfony 2 bundle?
I continue to communicate with symfony 2 and I liked such a thing as annotations. The question arose, is it possible to change the configuration type to annotations in an existing bundle?
Now I get acquainted and work only with test bundles (they can be recreated without problems), but if in the future you still need to change the configuration to annotations, can this be done, say, with some kind of console command (since it is not enough to fix the config file alone) ?
Answer the question
In order to leave comments, you need to log in
No. And yes, annotations are good of course, but moderate your joy and do not try to do everything in annotations. This is not always convenient. When you have validation + mappings + jmsserializer + something else configured through annotations in your entities, you will be upset when you cannot navigate all this quickly.
I personally prefer to use annotations only for routing in controllers and for some things that I want to configure (deserialization of a request from json to an entity for example). I put everything else in yml.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question