against official docs The picture about our code Sometimes you can’t rewrite a whole project, because it’s crazy But sometimes it makes sense! All of us wants to rewrite a legacy project, isn’t it? :)
and analytics (when custom properties of Entity stored in 2 database tables) • Ugly model with CMS API • Lets find "entity" by id: • Where is entities? CIBlockElement::GetByID($id);
have Front Controller. You need to create file for each url manually: /news/index.php?ELEMENT_ID=1 • We wanted to have Controllers and Actions • People says, Symfony is not MVC?
• When I looked at it, I sad "YES". Such useful ways to work with objects I have not seen yet! • Doctrine helped us a little to understand what DDD is • It is impossible to compare the API of CMS and Doctrine ORM
Bundle’s structure We created this bundle for storing files for all application (js, css, base entities) If your bundles cannot be used as standalone bundles in other Symfony projects - it makes no sense
will have common Symfony kernel and services and it’s bad • If we will deploy code with a bugs for Media archive it may affect Charity Fund and fund will be down. But what about money for children? • Media Archive is more high load then fund. If Archive is down because of high load - fund is down also • If we want to run application on many instances, we will see - monolith application is not best case for scaling
you will migrate to Symfony, you need to ask yourself question: will whole parts of old application migrate or maybe it makes sense to think about standalone services • At the beginning such thing is easy to understand, but often it is easy to forgot • We decided to divide bundles into 2 standalone services. But it is not easy and we need time for it.