You cannot 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
644 B
PHP
24 lines
644 B
PHP
<?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')
|
|
;
|