@@ -258,23 +258,22 @@ Displays contents in the command console after the package has been installed.
258
258
Avoid outputting meaningless information and use it only when you need to show
259
259
help messages or the next step actions.
260
260
261
- The contents are defined as a simple array of strings (Symfony Flex adds a
262
- ``PHP_EOL `` character after each line). `Symfony Console styles and colors `_
263
- are supported too:
261
+ The contents must be defined in a file named `` post-install.txt `` (Symfony Flex
262
+ adds a ``PHP_EOL `` character after each line). `Symfony Console styles and
263
+ colors `_ are supported too:
264
264
265
- .. code-block :: json
265
+ .. code-block :: text
266
266
267
- {
268
- "post-install-output" : [
269
- " <fg=blue> What's next? </>" ,
270
- " " ,
271
- " * <fg=blue>Run</> your application:" ,
272
- " 1. Execute the <comment>make serve</comment> command;" ,
273
- " 2. Browse to the <comment>http://localhost:8000/</comment> URL." ,
274
- " " ,
275
- " * <fg=blue>Read</> the documentation at <comment>https://symfony.com/doc</comment>"
276
- ]
277
- }
267
+ <bg=blue;fg=white> </>
268
+ <bg=blue;fg=white> What's next? </>
269
+ <bg=blue;fg=white> </>
270
+
271
+ * <fg=blue>Run</> your application:
272
+ 1. Change to the project directory
273
+ 2. Execute the <comment>make serve</> command;
274
+ 3. Browse to the <comment>http://localhost:8000/</> URL.
275
+
276
+ * <fg=blue>Read</> the documentation at <comment>https://symfony.com/doc</>
278
277
279
278
Full Example
280
279
------------
@@ -302,38 +301,11 @@ one used by ``symfony/framework-bundle``:
302
301
"APP_DEBUG" : " 1" ,
303
302
"APP_SECRET" : " Ju$tChang3it!"
304
303
},
305
- "makefile" : [
306
- " cache-clear:" ,
307
- " \t @test -f bin/console && bin/console cache:clear --no-warmup || rm -rf var/cache/*" ,
308
- " .PHONY: cache-clear" ,
309
- " " ,
310
- " cache-warmup: cache-clear" ,
311
- " \t @test -f bin/console && bin/console cache:warmup || echo \" cannot warmup the cache (needs symfony/console)\" " ,
312
- " .PHONY: cache-warmup" ,
313
- " " ,
314
- " serve:" ,
315
- " \t @echo \"\\ 033[32;49mServer listening on http://127.0.0.1:8000\\ 033[39m\" " ,
316
- " \t @echo \" Quit the server with CTRL-C.\" " ,
317
- " \t @echo \" Run \\ 033[32mcomposer require symfony/web-server-bundle\\ 033[39m for a better web server\" " ,
318
- " \t php -S 127.0.0.1:8000 -t web" ,
319
- " .PHONY: serve"
320
- ],
321
304
"gitignore" : [
322
305
" .env" ,
323
306
" /var/" ,
324
307
" /vendor/" ,
325
308
" /web/bundles/"
326
- ],
327
- "post-install-output" : [
328
- " <bg=blue;fg=white> </>" ,
329
- " <bg=blue;fg=white> What's next? </>" ,
330
- " <bg=blue;fg=white> </>" ,
331
- " " ,
332
- " * <fg=blue>Run</> your application:" ,
333
- " 1. Execute the <comment>make serve</comment> command;" ,
334
- " 2. Browse to the <comment>http://localhost:8000/</comment> URL." ,
335
- " " ,
336
- " * <fg=blue>Read</> the documentation at <comment>https://symfony.com/doc</comment>"
337
309
]
338
310
}
339
311
0 commit comments