Better HN
topnewbestaskshowjobs
Log inSign up

julesm

2 karma · joined Aug 28, 2011 (15y ago) · 2 submissions

Submissions

comment 15y ago · link · parent

I have a few years experience with CakePHP, Symfony 1 and I have also been playing around with Ruby on Rails a bit.

Now, I just finished going through the Symfony 2 internals to see what is so different from Symfony 1. I have to say that, when I realized the paradigm change, I had a WOW moment.

I mean most of the frameworks gravitate around the classical "MVC monilith active record framework" and they all resemble more or less Rails.

Symfony 2 isn't even a MVC framework (although it separates concerns very well), I mean it doesn't even have a Model!!!

At the core it's a Kernel object that is responsible for building a Service Container for dependency injection, into which all sorts of Components get pluged-in as services. And along the way it triggers lots of events to which you can attach listeners.

That's it! Everything else you augment by choosing the kind component you want to use and by configuring the Service Container.

After the little bit I played around with Ruby on Rails I have to say that Ruby is much nicer then PHP, but as a framework I really like where Symfony 2 was taken.

comment 15y ago · link · parent

what's different from diigo.com?