News Feed
Sections




News Archive
Looking for more information on how to do PHP the right way? Check out PHP: The Right Way

Fabien Potencier's Blog:
Symfony Service Container The Need for Speed
April 03, 2009 @ 12:03:24

Fabien Potencier has posted another article about dependency injection and the Symfony service container. In this part of the series he looks at the "need for speed" - reducing the need for the XML/YAML parsing of the same information on every request via a new tool, the PHP dumper.

With the introduction of the XML and YAML configuration files, you might have became a bit sceptic about the performance of the container itself. Even if services are lazy loading, reading a bunch of XML or YAML files on each request and creating objects by using introspection is probably not very efficient in PHP. [...] How can you have the best of both world? That's quite simply. The Symfony Dependency Injection component provides yet another built-in dumper: a PHP dumper.

The dumper lets you convert the service container into regular PHP code (expanding the container's functionality out into a Container class based on the XML/YAML configuration.

1 comment voice your opinion now!
symfony need speed yaml xml service container dumper expand


blog comments powered by Disqus

Similar Posts

Pádraic Brady's Blog: Yadis: Service Discovery for Identities like OpenID

JSLabs Blog: 5 cool things you can do with Windows and PHP

PHPBuilder.com: Using XML, Part 5 - SOAP and WSDL

Paul Jones' Blog: A Bit About Benchmarks

Symfony Blog: Symfony 2 Migration to Git


Community Events





Don't see your event here?
Let us know!


version voicesoftheelephpant community podcast list tool composer framework series interview release conference artisanfiles symfony laravel opinion security introduction language library

All content copyright, 2014 PHPDeveloper.org :: info@phpdeveloper.org - Powered by the Solar PHP Framework