im a huge laravel fan, i have been using it for a while and i have no complains .
the problem is i have this client who wants this app made with symfony2 (very specific )
can you guys give me some pointers like the equivalent for each major element of laravel in symfony (mvc structure model where controller where orm doctrine)
i have read about bundle but i just cant grasp how it works everyone says it's a directory of files........ can you guys tell me what's the equivalent of bundles in laravel like that i think i can understand
thank you guys
-
2Trying to understand one framework by comparing it to other frameworks seldom ends well. Work through the Symfony getting started section and try to think the "Symfony" way. Don't worry. They share many of the same components and philosophy.Cerad– Cerad2016-08-09 19:52:27 +00:00Commented Aug 9, 2016 at 19:52
-
i thought that way because many of laravel component are symfony'sAyoub– Ayoub2016-08-09 19:55:33 +00:00Commented Aug 9, 2016 at 19:55
-
Yes, and that’s a good starting point. But: the Symfony full stack framework is about how these components play together – and this is something which cannot be easily explained by comparing it with Laravel. Moreover: IMHO, you shouldn’t think about bundles too much for your application. I’d suggest reading the “Symfony best practices”, as it explains a motiviation behind bundles (or rather: when to use or not to use) and suggests a simple filesystem/project layout.BlueM– BlueM2016-08-10 10:08:44 +00:00Commented Aug 10, 2016 at 10:08
Add a comment
|
1 Answer
Some examples:
- Bundles is like packages.
- Symfony doesn't have IoC container, read this to use dependency injection: http://symfony.com/doc/current/service_container/injection_types.html
I think this is the most important for starting if you are using laravel. If you need more help just write.