Development

Changeset 8562

You must first sign up to be able to contribute.

Changeset 8562

Show
Ignore:
Timestamp:
04/20/08 01:39:10 (5 months ago)
Author:
fabien
Message:

optimized sfCoreAutoload to not use dirname() for each included class

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • branches/1.1/lib/autoload/sfCoreAutoload.class.php

    r8428 r8562  
    3030    $instance = null; 
    3131 
     32  protected 
     33    $baseDir = ''; 
     34 
    3235  protected function __construct() 
    3336  { 
     37    $this->baseDir = dirname(__FILE__).'/../'; 
    3438  } 
    3539 
     
    8791    } 
    8892 
    89     require dirname(__FILE__).'/../'.$this->classes[$class].'/'.$class.'.class.php'; 
     93    require $this->baseDir.$this->classes[$class].'/'.$class.'.class.php'; 
    9094 
    9195    return true;