Fix various compatibility issues with PHP 8

This commit is contained in:
Frédéric Guillot
2022-02-08 21:44:00 -08:00
committed by Frédéric Guillot
parent f5bb55bdb8
commit 4bf3b0d459
411 changed files with 99 additions and 26046 deletions

View File

@@ -0,0 +1,23 @@
<?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')
;