Changeset 2683

Show
Ignore:
Timestamp:
08/19/08 16:58:44 (5 months ago)
Author:
david
Message:

Close #815

Location:
branches/1.0
Files:
2 modified

Legend:

Unmodified
Added
Removed
  • branches/1.0/CHANGELOG

    r2679 r2683  
    66 
    77ADD: Allow skipping of template auto-assigns (#605) (David) 
     8 
     9CHG: Make AgaviContext implementation configurable (#815) (David) 
    810 
    911FIX: Some config handlers use PHP-5.3-reserved-word "NAMESPACE" as constant (#810) (David, Benjamin Börngen-Schmidt) 
  • branches/1.0/src/core/AgaviContext.class.php

    r2550 r2683  
    3535 * @version    $Id$ 
    3636 */ 
    37 final class AgaviContext 
     37class AgaviContext 
    3838{ 
    3939  /** 
     
    122122 
    123123  /** 
    124    * Constuctor method, intentionally made private so the context cannot be 
     124   * Constuctor method, intentionally made protected so the context cannot be 
    125125   * created directly. 
    126126   * 
     
    131131   * @since      0.9.0 
    132132   */ 
    133   private function __construct($name) 
     133  protected function __construct($name) 
    134134  { 
    135135    $this->name = $name; 
     
    246246      $profile = strtolower($profile); 
    247247      if(!isset(self::$instances[$profile])) { 
    248         $class = __CLASS__; 
     248        $class = AgaviConfig::get('core.context_implementation', __CLASS__); 
    249249        self::$instances[$profile] = new $class($profile); 
    250250        self::$instances[$profile]->initialize();