💾 Archived View for ja.ckdaw.net › post › playing-around-with-symfony-service-container captured on 2024-12-17 at 09:43:52. Gemini links have been rewritten to link to archived content

View Raw

More Information

-=-=-=-=-=-=-

Playing Around With Symfony Service Container

Lately, I've been playing around with the Symfony Service Container. For some reason, I've never really liked it that much and I've prefered Pimple that comes with Silex framework. Defining services in YML files instead of plain PHP always felt odd.

Symfony Service Container

Pimple

Silex

But I think I've changed my mind now. I've just created a largish project in Symfony and now I quite like the Symfony way of defining the services. It gives you a nice distinction between configuration and your business logic. Defining the services in YML is just the configuration part, and PHP is only used for real code. That's actually pretty nice and feels good after you get used to it.

November 30, 2015

Site Navigation

Home

About This Site

Privacy Policy

© 2024 Jackdaw's Nest