Development

Changeset 10550

You must first sign up to be able to contribute.

Changeset 10550

Show
Ignore:
Timestamp:
07/31/08 19:06:05 (5 years ago)
Author:
Kris.Wallsmith
Message:

sfGenerateControllerTaskPlugin: migrated README to Markdown

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • plugins/sfGenerateControllerTaskPlugin/trunk/README

    r10232 r10550  
    1 = sfGenerateControllerTaskPlugin = 
    2  
    3 Easily generate controllers for your symfony apps. 
    4  
    5 == Installation == 
    6  
    7 {{{ 
    8 $ ./symfony plugin-install http://plugins.symfony-project.com/sfGenerateControllerTaskPlugin 
    9 }}} 
    10  
    11 == Usage == 
     1Usage 
     2----- 
    123 
    134The `generate:controller` task creates a front controller in your project's `web/` directory: 
    145 
    15 {{{ 
    16 $ ./symfony generate:controller frontend dev 
    17 }}} 
     6    ./symfony generate:controller frontend dev 
    187 
    198Traffic to this controller can be restricted by IP address by using the `--allowed-ip` option: 
    209 
    21 {{{ 
    22 $ ./symfony generate:controller frontend dev --allowed-ip="127.0.0.1" 
    23 }}} 
     10    ./symfony generate:controller frontend dev --allowed-ip="127.0.0.1" 
    2411 
    2512This common use case can also be accomplished using the `localhost` shortcut (which also adds the IPv6 equivalent): 
    2613 
    27 {{{ 
    28 $ ./symfony generate:controller frontend dev --allowed-ip="localhost" 
    29 }}} 
     14    ./symfony generate:controller frontend dev --allowed-ip="localhost" 
    3015 
    3116If you want to use a filename other than the symfony default filename, use the `--filename` option: 
    3217 
    33 {{{ 
    34 $ ./symfony generate:controller frontend dev --filename="index" 
    35 }}} 
     18    ./symfony generate:controller frontend dev --filename="index" 
    3619 
    3720The controller can be configured to listen to the server for configuration variables using the `check-server` option: 
    3821 
    39 {{{ 
    40 $ ./symfony generate:controller frontend prod --check-server 
    41 }}} 
     22    ./symfony generate:controller frontend prod --check-server 
    4223 
    4324This option will add logic to your controller to first look for `SF_APPLICATION`, `SF_ENVIRONMENT` and `SF_DEBUG` keys in the `$_SERVER` array. If these keys are not found, the command arguments are used as fallback values. 
     
    4526Using the `check-server` option you can create an `index.php` controller that can dispatch any application, depending on what `SetEnv` directives exist in the requested `VirtualHost` configuration. This feature is Apache-specific. 
    4627 
    47 {{{ 
    48 $ ./symfony generate:controller frontend prod --filename="index" --check-server --force 
    49 }}} 
     28    ./symfony generate:controller frontend prod --filename="index" --check-server --force 
    5029 
    51 == Changelog == 
     30Changelog 
     31--------- 
    5232 
    53 === 1.1.0-DEV === 
     33### 1.1.0 
    5434 
    5535 * Added option to check server for configuration values 
    56  * Added exception if file already exists and `force` option to overwrite 
     36 * Added exception if file already exists and `--force` option to overwrite 
     37 * Migrated `README` to Markdown for new plugins system 
    5738 
    58 === 1.0.0 === 
     39### 1.0.0 
    5940 
    6041 * Initial public release 
    61  
    62 == Maintainers == 
    63  
    64  * Kris Wallsmith 
  • plugins/sfGenerateControllerTaskPlugin/trunk/package.xml

    r10195 r10550  
    1111    <active>yes</active> 
    1212  </lead> 
    13   <date>2008-07-09</date> 
     13  <date>2008-07-31</date> 
    1414  <version> 
    15     <release>1.0.0</release> 
    16     <api>1.0.0</api> 
     15    <release>1.1.0</release> 
     16    <api>1.1.0</api> 
    1717  </version> 
    1818  <stability>