News Feed
Jobs Feed
Sections




News Archive
Ade Slade's Blog:
Integrating Zend Framework 1 and Pimple
January 18, 2012 @ 13:11:56

In this new post to his blog Ade Slade shows how to integrate the Pimple lightweight dependency injection container with a Zend Framework application.

This post will describe a way to integrate Zend Framework 1 and Pimple. A complete working version of the code is available on github. Thankfully, Zend Framework 2 features its own Dependency Injection Container. Happy days. Still, if you're not prepared to wait, you may find this useful.

He shows how to add a resource plugin into the Pimple container - an entity manager that's part of Doctrine. He creates his controller, pulling the manager from the Pimple container and includes a unit test for the controller too (using PHPUnit, but he also suggests Mockery).

0 comments voice your opinion now!
zendframework pimple dependencyinjection container tutorial doctrine entitymanager


blog comments powered by Disqus

Similar Posts

IBM developerWorks: Understanding the Zend Framework,Part 4: When there is no feed, Zend_HTTP_Client

PHPImpact Blog: Zend Framework: Encapsulating routes into modules

Robert Basic's Blog: Honeypot for Zend Framework

DevShed: Caching Dynamic Twitter Signature Images with PHP

PHPBuilder.com: AJAX and PHP Part 3 - Post vs. Get Requests


Community Events











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


conference introduction example interview community phpunit podcast series application functional tool code development opinion unittest testing language release framework zendframework2

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