diff --git a/README.rst b/README.rst index 88e74bff..beb4d6b6 100644 --- a/README.rst +++ b/README.rst @@ -200,19 +200,10 @@ uninstall it later. Don't remove or modify these separators. ``makefile`` Configurator ~~~~~~~~~~~~~~~~~~~~~~~~~ -Adds new tasks to the ``Makefile`` file stored in the root of the Symfony project. -The value is a simple array where each element is a new line (Symfony Flex adds -a ``PHP_EOL`` character after each line): - -.. code-block:: json - - { - "makefile": [ - "cache-clear:", - "\t@test -f bin/console && bin/console cache:clear --no-warmup || rm -rf var/cache/*", - ".PHONY: cache-clear", - ] - } +Adds new tasks to the ``Makefile`` file stored in the root of the Symfony +project. Unlike other configurators, there is no specific entry in the manifest +file. Define tasks by creating a ``Makefile`` file at the root of the recipe +directory (Symfony Flex adds a ``PHP_EOL`` character after each line). Similar to the ``env`` configurator, the contents are copied into the ``Makefile`` file and wrapped with section separators (``###> your-recipe-name-here ###``) diff --git a/symfony/framework-bundle/3.3/Makefile b/symfony/framework-bundle/3.3/Makefile new file mode 100644 index 00000000..5928579d --- /dev/null +++ b/symfony/framework-bundle/3.3/Makefile @@ -0,0 +1,14 @@ +cache-clear: + @test -f bin/console && bin/console cache:clear --no-warmup || rm -rf var/cache/* +.PHONY: cache-clear + +cache-warmup: cache-clear + @test -f bin/console && bin/console cache:warmup || echo "cannot warmup the cache (needs symfony/console)" +.PHONY: cache-warmup + +serve: + @echo "\033[32;49mServer listening on http://127.0.0.1:8000\033[39m" + @echo "Quit the server with CTRL-C." + @echo "Run \033[32mcomposer require symfony/web-server-bundle\033[39m for a better web server" + php -S 127.0.0.1:8000 -t web +.PHONY: serve diff --git a/symfony/framework-bundle/3.3/manifest.json b/symfony/framework-bundle/3.3/manifest.json index 68ad7e2e..77983ed3 100644 --- a/symfony/framework-bundle/3.3/manifest.json +++ b/symfony/framework-bundle/3.3/manifest.json @@ -16,22 +16,6 @@ "APP_DEBUG": "1", "APP_SECRET": "%generate(secret)%" }, - "makefile": [ - "cache-clear:", - "\t@test -f bin/console && bin/console cache:clear --no-warmup || rm -rf var/cache/*", - ".PHONY: cache-clear", - "", - "cache-warmup: cache-clear", - "\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\"", - "\t@echo \"Quit the server with CTRL-C.\"", - "\t@echo \"Run \\033[32mcomposer require symfony/web-server-bundle\\033[39m for a better web server\"", - "\tphp -S 127.0.0.1:8000 -t web", - ".PHONY: serve" - ], "gitignore": [ ".env", "/var/",