Skip to content

Commit d4e1755

Browse files
committed
changed the way we reference Makefiles
1 parent 223b140 commit d4e1755

File tree

3 files changed

+18
-29
lines changed

3 files changed

+18
-29
lines changed

README.rst

Lines changed: 4 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -200,19 +200,10 @@ uninstall it later. Don't remove or modify these separators.
200200
``makefile`` Configurator
201201
~~~~~~~~~~~~~~~~~~~~~~~~~
202202

203-
Adds new tasks to the ``Makefile`` file stored in the root of the Symfony project.
204-
The value is a simple array where each element is a new line (Symfony Flex adds
205-
a ``PHP_EOL`` character after each line):
206-
207-
.. code-block:: json
208-
209-
{
210-
"makefile": [
211-
"cache-clear:",
212-
"\t@test -f bin/console && bin/console cache:clear --no-warmup || rm -rf var/cache/*",
213-
".PHONY: cache-clear",
214-
]
215-
}
203+
Adds new tasks to the ``Makefile`` file stored in the root of the Symfony
204+
project. Unlike other configurators, there is no specific entry in the manifest
205+
file. Define tasks by creating a ``Makefile`` file at the root of the recipe
206+
directory (Symfony Flex adds a ``PHP_EOL`` character after each line).
216207

217208
Similar to the ``env`` configurator, the contents are copied into the ``Makefile``
218209
file and wrapped with section separators (``###> your-recipe-name-here ###``)

symfony/framework-bundle/3.3/Makefile

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
cache-clear:
2+
@test -f bin/console && bin/console cache:clear --no-warmup || rm -rf var/cache/*
3+
.PHONY: cache-clear
4+
5+
cache-warmup: cache-clear
6+
@test -f bin/console && bin/console cache:warmup || echo "cannot warmup the cache (needs symfony/console)"
7+
.PHONY: cache-warmup
8+
9+
serve:
10+
@echo "\033[32;49mServer listening on http://127.0.0.1:8000\033[39m"
11+
@echo "Quit the server with CTRL-C."
12+
@echo "Run \033[32mcomposer require symfony/web-server-bundle\033[39m for a better web server"
13+
php -S 127.0.0.1:8000 -t web
14+
.PHONY: serve

symfony/framework-bundle/3.3/manifest.json

Lines changed: 0 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -16,22 +16,6 @@
1616
"APP_DEBUG": "1",
1717
"APP_SECRET": "%generate(secret)%"
1818
},
19-
"makefile": [
20-
"cache-clear:",
21-
"\t@test -f bin/console && bin/console cache:clear --no-warmup || rm -rf var/cache/*",
22-
".PHONY: cache-clear",
23-
"",
24-
"cache-warmup: cache-clear",
25-
"\t@test -f bin/console && bin/console cache:warmup || echo \"cannot warmup the cache (needs symfony/console)\"",
26-
".PHONY: cache-warmup",
27-
"",
28-
"serve:",
29-
"\t@echo \"\\033[32;49mServer listening on http://127.0.0.1:8000\\033[39m\"",
30-
"\t@echo \"Quit the server with CTRL-C.\"",
31-
"\t@echo \"Run \\033[32mcomposer require symfony/web-server-bundle\\033[39m for a better web server\"",
32-
"\tphp -S 127.0.0.1:8000 -t web",
33-
".PHONY: serve"
34-
],
3519
"gitignore": [
3620
".env",
3721
"/var/",

0 commit comments

Comments
 (0)