diff --git a/cache/adapter-bundle/1.1/config/packages/cache_adapter.yaml b/cache/adapter-bundle/1.1/config/packages/cache_adapter.yaml new file mode 100644 index 00000000..a9317d57 --- /dev/null +++ b/cache/adapter-bundle/1.1/config/packages/cache_adapter.yaml @@ -0,0 +1,5 @@ +cache_adapter: + providers: + default: + factory: "cache.factory.%env(DEFAULT_CACHE_PROVIDER)%" + options: "%env(json:DEFAULT_CACHE_PROVIDER_OPTIONS)%" diff --git a/cache/adapter-bundle/1.1/manifest.json b/cache/adapter-bundle/1.1/manifest.json new file mode 100644 index 00000000..b7db6a29 --- /dev/null +++ b/cache/adapter-bundle/1.1/manifest.json @@ -0,0 +1,13 @@ +{ + "bundles": { + "Cache\\AdapterBundle\\CacheAdapterBundle": ["all"] + }, + "copy-from-recipe": { + "config/": "%CONFIG_DIR%/" + }, + "env": { + "#1": "Provider types described at: See http://www.php-cache.com/en/latest/symfony/adapter-bundle/#configuration", + "DEFAULT_CACHE_PROVIDER": "array", + "DEFAULT_CACHE_PROVIDER_OPTIONS": "[]" + } +} diff --git a/cache/adapter-bundle/1.1/post-install.txt b/cache/adapter-bundle/1.1/post-install.txt new file mode 100644 index 00000000..5b8a14ab --- /dev/null +++ b/cache/adapter-bundle/1.1/post-install.txt @@ -0,0 +1,2 @@ + Next for CacheAdapterBundle + Download the adapters you want to use from http://www.php-cache.com/en/latest/#cache-pool-implementations. diff --git a/cache/cache-bundle/1.0/config/packages/cache.yaml b/cache/cache-bundle/1.0/config/packages/cache.yaml new file mode 100644 index 00000000..6049cb01 --- /dev/null +++ b/cache/cache-bundle/1.0/config/packages/cache.yaml @@ -0,0 +1,33 @@ +cache: + session: + enabled: "%env(bool:SESSION_CACHE_ENABLED)%" + service_id: "cache.provider.default" + use_tagging: true + ttl: 7200 + router: + enabled: "%env(bool:ROUTER_CACHE_ENABLED)%" + service_id: "cache.provider.default" + ttl: 86400 + logging: + enabled: "%env(bool:APP_DEBUG)%" + logger: "logger" + level: "info" + annotation: + enabled: "%env(bool:ANNOTATION_CACHE_ENABLED)%" + service_id: "cache.provider.default" + use_tagging: true + serializer: + enabled: "%env(bool:SERIALIZER_CACHE_ENABLED)%" + service_id: "cache.provider.default" + use_tagging: true + validation: + enabled: "%env(bool:VALIDATION_CACHE_ENABLED)%" + service_id: "cache.provider.default" + use_tagging: true + +framework: + annotations: + cache: 'cache.service.annotation' + validation: + cache: 'cache.service.validation' + diff --git a/cache/cache-bundle/1.0/manifest.json b/cache/cache-bundle/1.0/manifest.json new file mode 100644 index 00000000..3a925da9 --- /dev/null +++ b/cache/cache-bundle/1.0/manifest.json @@ -0,0 +1,15 @@ +{ + "bundles": { + "Cache\\CacheBundle\\CacheBundle": ["all"] + }, + "copy-from-recipe": { + "config/": "%CONFIG_DIR%/" + }, + "env": { + "SESSION_CACHE_ENABLED": "true", + "ROUTER_CACHE_ENABLED": "true", + "ANNOTATION_CACHE_ENABLED": "true", + "SERIALIZER_CACHE_ENABLED": "true", + "VALIDATION_CACHE_ENABLED": "true" + } +}