Development

ref/TaskGenerateApp (diff)

You must first sign up to be able to contribute.

Changes from Version 1 of ref/TaskGenerateApp

Show
Ignore:
Author:
bshirley (IP: 206.231.146.2)
Timestamp:
01/22/09 17:33:23 (9 years ago)
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • ref/TaskGenerateApp

    v0 v1  
     1= generate:app = 
     2   {{{symfony generate:app [--escaping-strategy="..."] [--csrf-secret="..."] application}}} 
     3 
     4This is one of the base symfony tasks.  It will generate an application within an existing project.  Typical applications might include [wiki:ref/DirFrontend frontend] or [wiki:ref/DirBackend backend], but are not limited in their name. 
     5 
     6Symfony contains a collection of generation tasks that assist in generating code and standard directory structure automatically.  In addition to this task, they include [wiki:ref/TaskGenerateProject generate:project], [wiki:ref/TaskGenerateModule generate:module], and [wiki:ref/TaskGenerateTask generate:task]. 
     7 
     8== Arguments == 
     9 
     10 * {{{application}}} - the name of the application you wish to generate 
     11optional: 
     12 * {{{--escaping-strategy=on}}} - you can have code included that will prevent cross-site scripting (XSS) attacks; this enables output escaping; if you are developing a site that will be publicly accessible, and are in doubt, you should include this option. 
     13 * {{{--csrf-secret=SomethingP4ssw0rdLike}}} - this will cause a secret session token to be used to try to prevent Cross-Site Request Forgery (CSRF) 
     14 
     15Both of the optional arguments can me adjusted at any time during development by changing configuration values in the [wiki:ref/FileSettingsYml settings.yml] file. 
     16 
     17See also, the [wiki:ref/TaskOverview list of options] available to all symfony tasks. 
     18 
     19 
     20== Examples == 
     21 
     22From [http://www.symfony-project.org/jobeet/1_2/Propel/en/12 Jobeet, Chapter 12]: 
     23 
     24{{{ 
     25    $ php symfony generate:app --escaping-strategy=on --csrf-secret=UniqueSecret1 backend 
     26}}} 
     27 
     28== References == 
     29 
     30