cache_deps.php 634B

1234567891011121314151617181920212223242526
  1. <?php
  2. Swift_DependencyContainer::getInstance()
  3. -> register('cache')
  4. -> asAliasOf('cache.array')
  5. -> register('tempdir')
  6. -> asValue('/tmp')
  7. -> register('cache.null')
  8. -> asSharedInstanceOf('Swift_KeyCache_NullKeyCache')
  9. -> register('cache.array')
  10. -> asSharedInstanceOf('Swift_KeyCache_ArrayKeyCache')
  11. -> withDependencies(array('cache.inputstream'))
  12. -> register('cache.disk')
  13. -> asSharedInstanceOf('Swift_KeyCache_DiskKeyCache')
  14. -> withDependencies(array('cache.inputstream', 'tempdir'))
  15. -> register('cache.inputstream')
  16. -> asNewInstanceOf('Swift_KeyCache_SimpleKeyCacheInputStream')
  17. ;