I’m starting with a Symfony2 project. I know the framework basics but I have a question:
Where is the right place to pot those helper classes I create for help or for the business logic?
I’m starting with a Symfony2 project. I know the framework basics but I have
Share
Max’s answer is correct. However I question the path he recommends for your code.
from http://symfony.com/doc/current/cookbook/bundles/best_practices.html
That says your Services should be placed in a folder called ‘DependencyInjection’, not ‘Services’. In full, it should be src/Foo/BarBundle/DependencyInjection
I say this as someone that had the former and has just finished moving them all to the latter (!)