ZF-9877: Initialize Zend_Translate cache from application configuration

Issue Type: Improvement Created: 2010-05-22T02:08:14.000+0000 Last Updated: 2010-06-22T13:51:37.000+0000 Status: Resolved Fix version(s): - 1.10.6 (22/Jun/10)

Reporter: Paryank Kansara (paryankkansara) Assignee: Thomas Weidner (thomas) Tags: - Zend_Application

  • Zend_Cache
  • Zend_Translate

Related issues: - ZF-10034



We can define almost all the options for Zend_Translate through application configuration file using Zend_Application. But I also want to use cache with Zend_Translate. Currently, we cannot define cache for Zend_Translate from application configuration. We should have a feature so that we can define cache manager template name in translate resource options and cache can be initialized automatically.


Posted by Thomas Weidner (thomas) on 2010-05-22T02:37:49.000+0000

Actually you can not assign a cache by option as it is added statically. This is the first things which have to be added for this issue.

Therefor reassigning the issue to myself.

Posted by Thomas Weidner (thomas) on 2010-06-06T14:57:49.000+0000

Feature implemented.

You can now set the cache within the options of Zend_Translate and it's adapters.

Feel free to propose any further improvement to the propert component.

Posted by Paryank Kansara (paryankkansara) on 2010-06-06T16:05:34.000+0000

Thanks for implementing this feature.

It would be nice if we could also assign cache manager template name as an argument to Zend_Translate_Adapter::setCache() because, we cannot define instance of Zend_Cache_Core in configuration file. So defining cache manager template name should automatically assign cache instance to it.

Have you found an issue?

See the Overview section for more details.


© 2006-2018 by Zend, a Rogue Wave Company. Made with by awesome contributors.

This website is built using zend-expressive and it runs on PHP 7.