From 7d7a4519541abf1b99f5c4ff6f3bed67eb027afc Mon Sep 17 00:00:00 2001 From: "Georges.L" Date: Fri, 11 May 2018 18:29:14 +0200 Subject: [PATCH 1/4] Add recipe for phpfastcache/phpfastcache-bundle --- .../3.0/config/packages/phpfastcache.yaml | 18 ++++++++++++++++++ .../phpfastcache-bundle/3.0/manifest.json | 13 +++++++++++++ 2 files changed, 31 insertions(+) create mode 100644 phpfastcache/phpfastcache-bundle/3.0/config/packages/phpfastcache.yaml create mode 100644 phpfastcache/phpfastcache-bundle/3.0/manifest.json diff --git a/phpfastcache/phpfastcache-bundle/3.0/config/packages/phpfastcache.yaml b/phpfastcache/phpfastcache-bundle/3.0/config/packages/phpfastcache.yaml new file mode 100644 index 00000000..f9375f78 --- /dev/null +++ b/phpfastcache/phpfastcache-bundle/3.0/config/packages/phpfastcache.yaml @@ -0,0 +1,18 @@ +phpfastcache: + twig_driver: "filecache" # This option must be a valid declared driver, in our example: "filecache" + twig_block_debug: false # This option will wrap CACHE/ENDCACHE blocks with block debug as HTML comment + drivers: + filecache: + type: Files + parameters: + path: "%env(PHPFASTCACHE_FILECACHE_PATH)%" + +# Define your drivers here. The example below connects to database 0 of the default Redis server. +# +# See https://github.com/snc/SncRedisBundle/blob/master/Resources/doc/index.md for instructions on +# how to configure the bundle. +# +# memorycache: +# type: redis # or "predis" +# path: "%env(PHPFASTCACHE_REDIS_URL)%" +# database: 0 diff --git a/phpfastcache/phpfastcache-bundle/3.0/manifest.json b/phpfastcache/phpfastcache-bundle/3.0/manifest.json new file mode 100644 index 00000000..71839a8e --- /dev/null +++ b/phpfastcache/phpfastcache-bundle/3.0/manifest.json @@ -0,0 +1,13 @@ +{ + "bundles": { + "Phpfastcache\\Bundle\\PhpfastcacheBundle": ["all"] + }, + "copy-from-recipe": { + "config/": "%CONFIG_DIR%/" + }, + "env": { + "#1": "Avoid special chars in the file cache path such as: @, %, :, +, ~, etc.", + "PHPFASTCACHE_FILECACHE_PATH": "%kernel.cache_dir%/phpfastcache/" + }, + "aliases": ["phpfastcache"] +} From 5f44fbb4818700718f7486d277154c99a3b7242e Mon Sep 17 00:00:00 2001 From: "Georges.L" Date: Fri, 11 May 2018 18:30:53 +0200 Subject: [PATCH 2/4] Removed unsupported aliases --- phpfastcache/phpfastcache-bundle/3.0/manifest.json | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/phpfastcache/phpfastcache-bundle/3.0/manifest.json b/phpfastcache/phpfastcache-bundle/3.0/manifest.json index 71839a8e..887c4aed 100644 --- a/phpfastcache/phpfastcache-bundle/3.0/manifest.json +++ b/phpfastcache/phpfastcache-bundle/3.0/manifest.json @@ -8,6 +8,5 @@ "env": { "#1": "Avoid special chars in the file cache path such as: @, %, :, +, ~, etc.", "PHPFASTCACHE_FILECACHE_PATH": "%kernel.cache_dir%/phpfastcache/" - }, - "aliases": ["phpfastcache"] + } } From aea2f476a041f271d3ad5b345cd70461a1bc87be Mon Sep 17 00:00:00 2001 From: "Georges.L" Date: Sat, 12 May 2018 17:27:30 +0200 Subject: [PATCH 3/4] Updated wiki link --- .../phpfastcache-bundle/3.0/config/packages/phpfastcache.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/phpfastcache/phpfastcache-bundle/3.0/config/packages/phpfastcache.yaml b/phpfastcache/phpfastcache-bundle/3.0/config/packages/phpfastcache.yaml index f9375f78..1fd360fc 100644 --- a/phpfastcache/phpfastcache-bundle/3.0/config/packages/phpfastcache.yaml +++ b/phpfastcache/phpfastcache-bundle/3.0/config/packages/phpfastcache.yaml @@ -9,7 +9,7 @@ phpfastcache: # Define your drivers here. The example below connects to database 0 of the default Redis server. # -# See https://github.com/snc/SncRedisBundle/blob/master/Resources/doc/index.md for instructions on +# See https://github.com/PHPSocialNetwork/phpfastcache-bundle/wiki for instructions on # how to configure the bundle. # # memorycache: From 69fe0792a6a3af366c70402c190256e588559e29 Mon Sep 17 00:00:00 2001 From: "Georges.L" Date: Wed, 23 May 2018 01:57:53 +0200 Subject: [PATCH 4/4] Fixed @Nyholm feedback --- .../3.0/config/packages/phpfastcache.yaml | 5 ----- 1 file changed, 5 deletions(-) diff --git a/phpfastcache/phpfastcache-bundle/3.0/config/packages/phpfastcache.yaml b/phpfastcache/phpfastcache-bundle/3.0/config/packages/phpfastcache.yaml index 1fd360fc..66f47352 100644 --- a/phpfastcache/phpfastcache-bundle/3.0/config/packages/phpfastcache.yaml +++ b/phpfastcache/phpfastcache-bundle/3.0/config/packages/phpfastcache.yaml @@ -11,8 +11,3 @@ phpfastcache: # # See https://github.com/PHPSocialNetwork/phpfastcache-bundle/wiki for instructions on # how to configure the bundle. -# -# memorycache: -# type: redis # or "predis" -# path: "%env(PHPFASTCACHE_REDIS_URL)%" -# database: 0