Development

#529 ([PATCH ON 0.7.1320] /data/symfony/tasks/sfPakeGenerator.php to allow for custom module skeletons)

You must first sign up to be able to contribute.

Ticket #529 (closed enhancement: fixed)

Opened 2 years ago

Last modified 2 years ago

[PATCH ON 0.7.1320] /data/symfony/tasks/sfPakeGenerator.php to allow for custom module skeletons

Reported by: mabs29 Assigned to:
Priority: minor Milestone: 0.6.3
Component: Version: 0.7.X
Keywords: pake, generator, symfony, module, new, skeleton Cc:
Qualification:

Description

It's pretty simple, but useful. I got sick of modifying the module skeleton (especially the moduleActionsTest.php file) and found an easy way to customise the skeleton files for my projects.

The change is very straight forward: if you have a ##PROJECT_DIR##/data/skeleton/module directory, then it uses that for the skeleton instead of ##PEAR_DIR##/data/symfony/skeleton/module.

To populate the custom skeleton: rsync ##PEAR_DIR##/data/symfony/skeleton/module ##PROJECT_DIR##/data/skeleton/.

Then customise the skeleton and symfony module app newmodule will generate the custom files instead of the vanilla symfony files.

I suppose you could add the same for app skeleton, but I haven't found that to be as useful, since the app skeleton has very little in it anyway.

Attachments

sfPakeGenerator-extension.diff (1.3 kB) - added by mabs29 on 05/10/06 17:56:02.
The patch to sfPakeGenerator.php for customising the module skeleton

Change History

05/10/06 17:56:02 changed by mabs29

  • attachment sfPakeGenerator-extension.diff added.

The patch to sfPakeGenerator.php for customising the module skeleton

06/16/06 16:14:41 changed by fabien

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

in r1463