Development

Changeset 7438

You must first sign up to be able to contribute.

Changeset 7438

Show
Ignore:
Timestamp:
02/09/08 18:08:36 (7 months ago)
Author:
fabien
Message:

removed sfSymfonyCommandApplication::initializeAutoloader() method

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • branches/1.1/lib/command/sfSymfonyCommandApplication.class.php

    r7370 r7438  
    4040 
    4141    $this->initializeEnvironment($this->options['symfony_lib_dir']); 
    42     $this->initializeAutoloader(); 
    4342    $this->initializeTasks(); 
    4443  } 
     
    9695 
    9796  /** 
    98    * Initializes the autoloader object. 
    99    * 
    100    * If we are not using the symfony CLI in the context of a specific application, 
    101    * then the system temp directory will be used for the autoloader cache instead. 
    102    */ 
    103   protected function initializeAutoloader() 
    104   { 
    105     if (is_dir(sfConfig::get('sf_app_base_cache_dir'))) 
    106     { 
    107       $cache = sfConfig::get('sf_app_base_cache_dir').DIRECTORY_SEPARATOR.'autoload_cmd.data'; 
    108     } 
    109     else 
    110     { 
    111       $cache = sfToolkit::getTmpDir().DIRECTORY_SEPARATOR.sprintf('sf_autoload_cmd_%s.data', md5(__FILE__)); 
    112     } 
    113  
    114     $this->autoloader = sfSimpleAutoload::getInstance($cache); 
    115     $this->autoloader->register(); 
    116     $this->autoloader->addDirectory(sfConfig::get('sf_plugins_dir')); 
    117   } 
    118  
    119   /** 
    12097   * Loads all available tasks. 
    12198   *