I created a bundle in Symfony2 that contains my webapp. In there I have some Entities that are mapped to my MySQL-Database. They are located in Acme\MyBundle\Entities
.
Now I have created some helper classes that I will not just use in MyBundle
, so I outsourced them into a separate bundle (e.g. Acme\MyHelperBundle
). Everything is clear until here.
But where exactly do I put business logic files? Do I put them into
Acme\MyHelperBundle\Entities
orAcme\MyHelperBundle\Resources
orAcme\MyHelperBundle\Resources\src
And what would be a good namespace for these helper classes?
create a model folder and in that make a class where you put the business logic and create a service of that class and used that classes anywhere in the project.