PHP Classes

File: vendor/swiftmailer/swiftmailer/lib/dependency_maps/cache_deps.php

Recommend this page to a friend!
  Packages of Abed Nego Ragil Putra   Laravel Blogging Platform   vendor/swiftmailer/swiftmailer/lib/dependency_maps/cache_deps.php   Download  
File: vendor/swiftmailer/swiftmailer/lib/dependency_maps/cache_deps.php
Role: Example script
Content type: text/plain
Description: Example script
Class: Laravel Blogging Platform
Manage blog posts using Laravel and Bootstrap
Author: By
Last change:
Date: 8 months ago
Size: 630 bytes
 

Contents

Class file image Download
<?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')
;