Development

Changeset 7516

You must first sign up to be able to contribute.

Changeset 7516

Show
Ignore:
Timestamp:
02/16/08 16:03:25 (1 year ago)
Author:
fabien
Message:

moved default routing suffix configuration from settings.yml to factories.yml

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • branches/1.1/UPGRADE

    r7439 r7516  
    403403 
    404404The `sf_timeout` setting is not used anymore. To change the session timeout, 
    405 you now have to edit the `factories.yml` instead if the `settings.yml`, 
     405you now have to edit `factories.yml` instead of the `settings.yml`, 
    406406and change the parameters of the `user` factory: 
    407407 
     
    412412        param: 
    413413          timeout:     1800     # session timeout in seconds 
     414 
     415Routing default suffix 
     416---------------------- 
     417 
     418The `sf_suffix` setting is not used anymore. To change the default suffix, 
     419you now have to edit `factories.yml` instead of `settings.yml`, 
     420and change the parameters of the `routing` factory: 
     421 
     422    [yml] 
     423    all: 
     424      routing: 
     425        class: sfPatternRouting 
     426        param: 
     427          load_configuration: true 
     428          suffix:             .     # Default suffix for generated URLs. If set to a single dot (.), no suffix is added. Possible values: .html, .php, and so on. 
    414429 
    415430`php.yml` configuration file 
  • branches/1.1/lib/config/config/factories.yml

    r6721 r7516  
    4646    param: 
    4747      load_configuration: true 
     48      suffix:             . 
    4849 
    4950  logger: 
  • branches/1.1/lib/config/config/settings.yml

    r7501 r7516  
    3131 
    3232    # Routing settings 
    33     suffix:                 .         # Default suffix for generated URLs. If set to a single dot (.), no suffix is added. Possible values: .html, .php, and so on. 
    3433    no_script_name:         off       # Enable the front controller name in generated URLs 
    3534 
  • branches/1.1/lib/config/sfFactoryConfigHandler.class.php

    r6721 r7516  
    162162 
    163163        case 'routing': 
    164           $instances[] = sprintf("  \$class = sfConfig::get('sf_factory_routing', '%s');\n  \$this->factories['routing'] = new \$class(\$this->dispatcher, array_merge(array('auto_shutdown' => false, 'suffix' => sfConfig::get('sf_suffix'), 'default_module' => sfConfig::get('sf_default_module'), 'default_action' => sfConfig::get('sf_default_action'), 'logging' => sfConfig::get('sf_logging_enabled')), sfConfig::get('sf_factory_routing_parameters', %s)));", $class, var_export(is_array($parameters) ? $parameters : array(), true)); 
     164          $instances[] = sprintf("  \$class = sfConfig::get('sf_factory_routing', '%s');\n  \$this->factories['routing'] = new \$class(\$this->dispatcher, array_merge(array('auto_shutdown' => false, 'default_module' => sfConfig::get('sf_default_module'), 'default_action' => sfConfig::get('sf_default_action'), 'logging' => sfConfig::get('sf_logging_enabled')), sfConfig::get('sf_factory_routing_parameters', %s)));", $class, var_export(is_array($parameters) ? $parameters : array(), true)); 
    165165          if (isset($parameters['load_configuration']) && $parameters['load_configuration']) 
    166166          { 
  • branches/1.1/lib/task/generator/skeleton/app/app/config/factories.yml

    r6721 r7516  
    6363#  routing: 
    6464#    class: sfPatternRouting 
     65#    param: 
     66#      load_configuration: true 
     67#      suffix:             . 
  • branches/1.1/lib/task/generator/skeleton/app/app/config/settings.yml

    r7501 r7516  
    5353#    # Routing settings 
    5454#    relative_url_root:                # Default URL prefix. Use this when your symfony project is installed in a sub directory of the apache document root. 
    55 #    suffix:                 .         # Default suffix for generated URLs. If set to a single dot (.), no suffix is added. Possible values: .html, .php, and so on. 
    5655#    no_script_name:         off       # Enable the front controller name in generated URLs 
    5756# 

The Sensio Labs Network

Since 1998, Sensio Labs has been promoting the Open-Source software movement by providing quality web application development, training, consulting, and supporting several large Open-Source projects.