File tree Expand file tree Collapse file tree 3 files changed +18
-29
lines changed
symfony/framework-bundle/3.3 Expand file tree Collapse file tree 3 files changed +18
-29
lines changed Original file line number Diff line number Diff line change @@ -200,19 +200,10 @@ uninstall it later. Don't remove or modify these separators.
200
200
``makefile `` Configurator
201
201
~~~~~~~~~~~~~~~~~~~~~~~~~
202
202
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).
216
207
217
208
Similar to the ``env `` configurator, the contents are copied into the ``Makefile ``
218
209
file and wrapped with section separators (``###> your-recipe-name-here ### ``)
Original file line number Diff line number Diff line change
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
Original file line number Diff line number Diff line change 16
16
"APP_DEBUG" : " 1" ,
17
17
"APP_SECRET" : " %generate(secret)%"
18
18
},
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
- " \t php -S 127.0.0.1:8000 -t web" ,
33
- " .PHONY: serve"
34
- ],
35
19
"gitignore" : [
36
20
" .env" ,
37
21
" /var/" ,
You can’t perform that action at this time.
0 commit comments