From 3cd2b977ae3da27b236f7a4c845f1d01ae3b175c Mon Sep 17 00:00:00 2001 From: Fabien Potencier Date: Mon, 20 Mar 2017 17:19:33 -0700 Subject: [PATCH] moved some logic to the Makefile to make it more robust and reusable --- recipes/symfony/framework-bundle/manifest.json | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/recipes/symfony/framework-bundle/manifest.json b/recipes/symfony/framework-bundle/manifest.json index 5a4a3536..aff0de12 100644 --- a/recipes/symfony/framework-bundle/manifest.json +++ b/recipes/symfony/framework-bundle/manifest.json @@ -8,8 +8,7 @@ "web/": "%WEB_DIR%/" }, "composer-scripts": { - "cache:clear --no-warmup": "symfony-cmd", - "cache:warmup": "symfony-cmd", + "make cache-warmup": "script", "assets:install --symlink --relative %WEB_DIR%": "symfony-cmd" }, "env": { @@ -18,6 +17,12 @@ "APP_SECRET": "Ju$tChang3it!" }, "makefile": [ + "cache-clear:", + "\t@bin/console cache:clear --no-warmup", + ".PHONY: cache-clear", + "cache-warmup: cache-clear", + "\t@bin/console cache:warmup", + ".PHONY: cache-warmup", "serve:", "\t@echo \"\\033[32;49mServer listening on http://127.0.0.1:8000\\033[39m\"", "\t@echo \"Quit the server with CTRL-C.\"",