mirror of https://github.com/avecms/AVE.cms.git
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
24 lines
630 B
24 lines
630 B
8 years ago
|
<?php
|
||
|
|
||
|
Swift_DependencyContainer::getInstance()
|
||
|
->register('cache')
|
||
|
->asAliasOf('cache.array')
|
||
|
|
||
|
->register('tempdir')
|
||
|
->asValue('/tmp')
|
||
|
|
||
|
->register('cache.null')
|
||
|
->asSharedInstanceOf('Swift_KeyCache_NullKeyCache')
|
||
|
|
||
|
->register('cache.array')
|
||
|
->asSharedInstanceOf('Swift_KeyCache_ArrayKeyCache')
|
||
|
->withDependencies(array('cache.inputstream'))
|
||
|
|
||
|
->register('cache.disk')
|
||
|
->asSharedInstanceOf('Swift_KeyCache_DiskKeyCache')
|
||
|
->withDependencies(array('cache.inputstream', 'tempdir'))
|
||
|
|
||
|
->register('cache.inputstream')
|
||
|
->asNewInstanceOf('Swift_KeyCache_SimpleKeyCacheInputStream')
|
||
|
;
|