Symfony Console - create a file?

very new to symfony and using the command line interface:

Usage:
 command [options] [arguments]

Options:
 --help (-h)           Display this help message
 --quiet (-q)          Do not output any message
etc...

I wanted to know if there is a way to create files directly from this interface? So something similar to the one "echo 'This Worked' > test.php"in the Symfony console, which allows me to output code tests to new or existing files on my server.

I can already write to SQL using doctrine:query:sqland wondered if there is anything to write local files?

+4
source share
1 answer

You can simply create a console command that will do this: http://symfony.com/doc/current/console.html

+1
source

Source: https://habr.com/ru/post/1651909/


All Articles