Hello,
I have developed and published on Github a library that deeply integrates
Symfony2's DI Container with Zend Framework:
http://github.com/loicfrering/losolib.
All you need to do to use it is:
* In your application.ini:
bootstrap.path = APPLICATION_PATH "/Bootstrap.php"
bootstrap.class = "Bootstrap"
bootstrap.container.type = "symfony"
bootstrap.container.symfony.configFiles[] = APPLICATION_PATH
"/configs/services.yml"
bootstrap.container.symfony.configPaths[] = APPLICATION_PATH "/services"
bootstrap.container.symfony.cache = true
* In your Bootstrap.php:
class Bootstrap extends
LoSo_Zend_Application_Bootstrap_SymfonyContainerBootstrap
{
}
It supports service definitions by annotations and caching. You will find an
example in the sandbox folder.
Feedbacks are welcome :)
On Fri, Sep 3, 2010 at 7:17 PM, Paul <[email protected]> wrote:
> On 9/3/2010 1:09 PM, Hector Virgen wrote:
>
> Thanks Paul. I just went through the slides and the implementation looks
> great. :)
>
> Excellent! Glad I could help.
>
> --
> *Hector Virgen*
> Sr. Web Developer
> Walt Disney Parks and Resorts Online
> http://www.virgentech.com
>
>
>
> On Fri, Sep 3, 2010 at 9:49 AM, Paul <[email protected]> wrote:
>
>> That would work... I believe used this presentation from Fabien
>>
>>
>> http://www.docstoc.com/docs/22437484/Using-symfony-and-Zend-Framework-together
>>
>>
>> On 9/3/2010 12:33 PM, Hector Virgen wrote:
>>
>> Thanks, Paul. Would you recommend this approach?
>>
>> http://blog.starreveld.com/2009/11/using-symfony-di-container-with.html
>>
>> --
>> *Hector Virgen*
>> Sr. Web Developer
>> Walt Disney Parks and Resorts Online
>> http://www.virgentech.com
>>
>>
>>
>> On Fri, Sep 3, 2010 at 9:29 AM, Paul <[email protected]> wrote:
>>
>>> I recommend integrating with Symfony DI component. I use this as my
>>> bootstraps container. Much more flexible, and only instantiates object once
>>> they are called upon.
>>>
>>>
>>> On 9/3/2010 12:08 PM, Hector Virgen wrote:
>>>
>>> I'm a big fan of Zend_Applicaton's bootstrap resources and use them for
>>> just about every resource my app may need including custom ones. However,
>>> not all pages need all resources. Is it possible to lazy-load the resource
>>> so that it's instantiation is deferred until calling
>>> $bootstrap->getResource()? If not, I'll try extending the bootstrap to
>>> support this.
>>>
>>> --
>>> *Hector Virgen*
>>> Sr. Web Developer
>>> Walt Disney Parks and Resorts Online
>>> http://www.virgentech.com
>>>
>>>
>>
>
--
Loïc Frering
[email protected]