This enhancement makes it easy to create new batch processes. Small modification of sfPakeGenerator.php and symfony now recognizes init-batch command line option.
It provides simple but useful task: copies the new skeleton batch file (that resides in sf_symfony_data_dir/symfony/skeleton/batch/batch.php) and replaces some common tokens.
The option has two required arguments
- application name
- batch script name without .php suffix
and two optional arguments
- environment (prod or dev)
- debug mode (true or false)
The command (in the project directory):
symfony init-batch frontend process dev true
creates process.php in batch directory, that operates in debug mode of development environment.