nette/nette — pull request #535 by Andrewsville (2012-02-15 11:00:46+00:00)
Title: Allow passing a custom cache storage to the Configurator

Currently it is hardcoded in the Configurator that it caches to the filesystem. If someone wants to cache somewhere else they have to subclass the Configurator just to alter about four lines of code.

This patch allows a custom cache storage (imagine APC as a perfect example) to be injected to the Configurator to be used for the generated container as well as by RobotLoader. To my best knowledge this patch is backwards compatible with the current status as well as with applications that already have their containers and autoload lists cached in the filesystem.