From 99527aa1f58031a754d3dff9d27ceac629509abf Mon Sep 17 00:00:00 2001 From: Fabien Potencier Date: Thu, 23 Mar 2017 15:38:10 -0700 Subject: [PATCH] fixed cache:* commands (we really need console to be able to run them) --- recipes/symfony/framework-bundle/manifest.json | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/recipes/symfony/framework-bundle/manifest.json b/recipes/symfony/framework-bundle/manifest.json index aff0de12..a35f6086 100644 --- a/recipes/symfony/framework-bundle/manifest.json +++ b/recipes/symfony/framework-bundle/manifest.json @@ -18,10 +18,10 @@ }, "makefile": [ "cache-clear:", - "\t@bin/console cache:clear --no-warmup", + "\t@test -f bin/console && bin/console cache:clear --no-warmup || rm -rf var/cache/*", ".PHONY: cache-clear", "cache-warmup: cache-clear", - "\t@bin/console cache:warmup", + "\t@test -f bin/console && bin/console cache:warmup || echo "cannot warmup the cache (needs symfony/console)"", ".PHONY: cache-warmup", "serve:", "\t@echo \"\\033[32;49mServer listening on http://127.0.0.1:8000\\033[39m\"",