I am trying to setup a filesystem cache object using the DI. I managed to
setup the cache object with this

            'alias' => array(
                'file_cache' => 'Zend\Cache\Storage\Adapter\Filesystem',
            ),
            'file_cache' => array(
                'parameters' => array(
                    'options' => array(
                        'cacheDir' => 'data/cache',
                    ),
                ),
            ),

But couldn't figure out have to add Serialized plugin to this. I can see
there is addPlugin method in AdapterAbstract  class but can't figure out how
to translate this to DI configuration.

Is there any documentation/blog explaining how to create DI configuration by
looking at the source of the class?

--
View this message in context: 
http://zend-framework-community.634137.n4.nabble.com/Struggling-to-understand-ZF2-DI-tp4630122.html
Sent from the Zend Framework mailing list archive at Nabble.com.

-- 
List: [email protected]
Info: http://framework.zend.com/archives
Unsubscribe: [email protected]


Reply via email to