| 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 | | /** |
|---|