M
M
magary42016-07-29 11:39:24
symfony
magary4, 2016-07-29 11:39:24

How to organize a project inside? repository? service?

There is some access to products,
classes
BaseProcuduct
Product
BaseProperty,
etc. now it's all in the Classes folder the old fashioned way,
I understand correctly that Symphony suggests calling it Repository?
what's the difference between a repository and a service?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
A
Alexey Romanenko, 2016-07-29
@slimus

You need to read: symfony.com/doc/current/doctrine.html and symfony.com/doc/current/service_container.html and symfony.com/doc/current/best_practices/index.html

O
Oleg Krasavin, 2016-07-29
@okwinza

About the repository: https://habrahabr.ru/post/248505/
What is a Service Layer and why put all the business logic there: martinfowler.com/eaaCatalog/serviceLayer.html

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question