Development

#457 ([PATCH] init-batch symfony command line option)

You must first sign up to be able to contribute.

Ticket #457 (closed enhancement: fixed)

Opened 7 years ago

Last modified 7 years ago

[PATCH] init-batch symfony command line option

Reported by: Jan.Blaha@unet.cz Assigned to:
Priority: minor Milestone: 1.0.0
Component: Version: 0.6.2
Keywords: init batch pake Cc:
Qualification:

Description

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

  1. application name
  2. batch script name without .php suffix

and two optional arguments

  1. environment (prod or dev)
  2. 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.

Attachments

batch.php (0.7 kB) - added by Jan.Blaha@unet.cz on 04/24/06 12:04:01.
Skeleton of batch file
symfony-sfPakeGenerator.patch (1.6 kB) - added by Jan.Blaha@unet.cz on 04/24/06 12:05:29.
patch that provides init-batch command

Change History

04/24/06 12:04:01 changed by Jan.Blaha@unet.cz

  • attachment batch.php added.

Skeleton of batch file

04/24/06 12:05:29 changed by Jan.Blaha@unet.cz

  • attachment symfony-sfPakeGenerator.patch added.

patch that provides init-batch command

06/25/06 16:52:13 changed by pookey

good work - would love to see this in trunk

07/05/06 11:02:00 changed by fabien

  • status changed from new to closed.
  • resolution set to fixed.
  • milestone changed from 0.8.0 to 1.0.0.

in r1567