Changeset 7255
- Timestamp:
- 02/01/08 02:12:24 (10 months ago)
- Files:
-
- branches/dwhittle/1.1/data/config/autoload.yml (modified) (1 diff)
- branches/dwhittle/1.1/data/skeleton/project/data/sql (deleted)
- branches/dwhittle/1.1/data/skeleton/project/lib/model (deleted)
- branches/dwhittle/1.1/lib/autoload (copied) (copied from branches/1.1/lib/autoload)
- branches/dwhittle/1.1/lib/autoload/sfAutoload.class.php (copied) (copied from branches/1.1/lib/autoload/sfAutoload.class.php)
- branches/dwhittle/1.1/lib/autoload/sfCoreAutoload.class.php (copied) (copied from branches/1.1/lib/autoload/sfCoreAutoload.class.php) (6 diffs)
- branches/dwhittle/1.1/lib/autoload/sfSimpleAutoload.class.php (copied) (copied from branches/1.1/lib/autoload/sfSimpleAutoload.class.php)
- branches/dwhittle/1.1/lib/command/sfSymfonyCommandApplication.class.php (modified) (5 diffs)
- branches/dwhittle/1.1/lib/plugins/sfCompat10Plugin/test/bootstrap/unit.php (modified) (1 diff)
- branches/dwhittle/1.1/lib/plugins/sfPropelPlugin/lib/task/sfPropelBaseTask.class.php (modified) (1 diff)
- branches/dwhittle/1.1/lib/plugins/sfPropelPlugin/lib/task/sfPropelBuildAllLoadTask.class.php (modified) (1 diff)
- branches/dwhittle/1.1/lib/plugins/sfPropelPlugin/lib/task/sfPropelBuildAllTask.class.php (modified) (1 diff)
- branches/dwhittle/1.1/lib/plugins/sfPropelPlugin/lib/task/sfPropelBuildDbTask.class.php (modified) (1 diff)
- branches/dwhittle/1.1/lib/plugins/sfPropelPlugin/lib/task/sfPropelBuildFormsTask.class.php (modified) (1 diff)
- branches/dwhittle/1.1/lib/plugins/sfPropelPlugin/lib/task/sfPropelBuildModelTask.class.php (modified) (1 diff)
- branches/dwhittle/1.1/lib/plugins/sfPropelPlugin/lib/task/sfPropelBuildSchemaTask.class.php (modified) (1 diff)
- branches/dwhittle/1.1/lib/plugins/sfPropelPlugin/lib/task/sfPropelBuildSqlTask.class.php (modified) (1 diff)
- branches/dwhittle/1.1/lib/plugins/sfPropelPlugin/lib/task/sfPropelDataDumpTask.class.php (modified) (1 diff)
- branches/dwhittle/1.1/lib/plugins/sfPropelPlugin/lib/task/sfPropelDataLoadTask.class.php (modified) (1 diff)
- branches/dwhittle/1.1/lib/plugins/sfPropelPlugin/lib/task/sfPropelGenerateCrudTask.class.php (modified) (1 diff)
- branches/dwhittle/1.1/lib/plugins/sfPropelPlugin/lib/task/sfPropelInitAdminTask.class.php (modified) (1 diff)
- branches/dwhittle/1.1/lib/plugins/sfPropelPlugin/lib/task/sfPropelInsertSqlTask.class.php (modified) (1 diff)
- branches/dwhittle/1.1/lib/plugins/sfPropelPlugin/lib/task/sfPropelSchemaToXmlTask.class.php (modified) (1 diff)
- branches/dwhittle/1.1/lib/plugins/sfPropelPlugin/lib/task/sfPropelSchemaToYmlTask.class.php (modified) (1 diff)
- branches/dwhittle/1.1/lib/task/generator/sfGenerateAppTask.class.php (modified) (1 diff)
- branches/dwhittle/1.1/lib/task/generator/sfGenerateControllerTask.class.php (modified) (1 diff)
- branches/dwhittle/1.1/lib/task/generator/sfGenerateModuleTask.class.php (modified) (1 diff)
- branches/dwhittle/1.1/lib/task/generator/sfGenerateProjectTask.class.php (modified) (1 diff)
- branches/dwhittle/1.1/lib/task/plugin/sfPluginAddChannelTask.class.php (modified) (1 diff)
- branches/dwhittle/1.1/lib/task/plugin/sfPluginInstallTask.class.php (modified) (1 diff)
- branches/dwhittle/1.1/lib/task/plugin/sfPluginListTask.class.php (modified) (1 diff)
- branches/dwhittle/1.1/lib/task/plugin/sfPluginUninstallTask.class.php (modified) (1 diff)
- branches/dwhittle/1.1/lib/task/plugin/sfPluginUpgradeTask.class.php (modified) (1 diff)
- branches/dwhittle/1.1/lib/util/sfAutoload.class.php (deleted)
- branches/dwhittle/1.1/lib/util/sfCore.class.php (modified) (1 diff)
- branches/dwhittle/1.1/lib/util/sfSimpleAutoload.class.php (deleted)
- branches/dwhittle/1.1/test/bin/prove.php (modified) (1 diff)
- branches/dwhittle/1.1/test/bootstrap/unit.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
branches/dwhittle/1.1/data/config/autoload.yml
r5386 r7255 1 1 autoload: 2 # symfony core3 symfony:4 name: symfony5 path: %SF_SYMFONY_LIB_DIR%6 recursive: on7 exclude: [vendor, plugins]8 2 9 3 # plugins branches/dwhittle/1.1/lib/autoload/sfCoreAutoload.class.php
r7247 r7255 150 150 'sfConfig' => 'config', 151 151 'sfConfigCache' => 'config', 152 'sfConfigDimension' => 'config', 152 153 'sfConfigHandler' => 'config', 153 154 'sfDatabaseConfigHandler' => 'config', … … 201 202 'sfFilter' => 'filter', 202 203 'sfFilterChain' => 'filter', 203 'sfRenderingFilter' => 'filter',204 204 'sfForm' => 'form', 205 205 'sfFormField' => 'form', … … 243 243 'sfNoLogger' => 'log', 244 244 'sfWebDebugLogger' => 'log', 245 'sfCommentOptimizer' => 'optimizer', 246 'sfConditionOptimizer' => 'optimizer', 247 'sfConstantOptimizer' => 'optimizer', 248 'sfOptimizer' => 'optimizer', 249 'sfWhitespaceOptimizer' => 'optimizer', 245 250 'sfPearDownloader' => 'plugin', 246 251 'sfPearEnvironment' => 'plugin', … … 275 280 'sfStorage' => 'storage', 276 281 'sfCacheClearTask' => 'task/cache', 282 'sfCacheGenerateTask' => 'task/cache', 283 'sfCacheOptimizeTask' => 'task/cache', 277 284 'sfConfigureAuthorTask' => 'task/configure', 278 285 'sfConfigureDatabaseTask' => 'task/configure', … … 310 317 'sfLoggerUpgrade' => 'task/project/upgrade1.1', 311 318 'sfPropelUpgrade' => 'task/project/upgrade1.1', 319 'sfRenderingFilterUpgrade' => 'task/project/upgrade1.1', 312 320 'sfSingletonUpgrade' => 'task/project/upgrade1.1', 313 321 'sfUpgrade' => 'task/project/upgrade1.1', … … 323 331 'sfSecurityUser' => 'user', 324 332 'sfUser' => 'user', 333 'CartesianIterator' => 'util', 325 334 'sfBrowser' => 'util', 326 335 'sfCallable' => 'util', branches/dwhittle/1.1/lib/command/sfSymfonyCommandApplication.class.php
r6412 r7255 19 19 class sfSymfonyCommandApplication extends sfCommandApplication 20 20 { 21 protected22 $autoloader = null;23 24 21 /** 25 22 * Configures the current symfony command application. … … 40 37 } 41 38 42 require_once($this->options['symfony_lib_dir'].'/util/sfCore.class.php');43 require_once($this->options['symfony_lib_dir'].'/ config/sfConfig.class.php');44 require_once($this->options['symfony_lib_dir'].'/util/sfSimpleAutoload.class.php');39 // initialize symfony core autoloading 40 require_once($this->options['symfony_lib_dir'].'/autoload/sfCoreAutoload.class.php'); 41 sfCoreAutoload::getInstance()->register(); 45 42 46 43 // application … … 84 81 85 82 /** 86 * Returns the autoloader object.87 *88 * @param object The autoloader object89 */90 public function getAutoloader()91 {92 return $this->autoloader;93 }94 95 /**96 83 * Initializes the environment variables and include path. 97 84 * … … 132 119 else 133 120 { 134 require_once(sfConfig::get('sf_symfony_lib_dir').'/util/sfToolkit.class.php');135 121 $cache = sfToolkit::getTmpDir().DIRECTORY_SEPARATOR.sprintf('sf_autoload_cmd_%s.data', md5(__FILE__)); 136 122 } … … 138 124 $this->autoloader = sfSimpleAutoload::getInstance($cache); 139 125 $this->autoloader->register(); 140 141 require_once(sfConfig::get('sf_symfony_lib_dir').'/util/sfFinder.class.php');142 $finder = sfFinder::type('file')->ignore_version_control()->prune('test')->prune('vendor')->name('*.php');143 $this->autoloader->addFiles($finder->in(sfConfig::get('sf_symfony_lib_dir')));144 126 $this->autoloader->addDirectory(sfConfig::get('sf_root_dir').'/plugins'); 145 127 } branches/dwhittle/1.1/lib/plugins/sfCompat10Plugin/test/bootstrap/unit.php
r5386 r7255 15 15 sfConfig::set('sf_symfony_data_dir', realpath($_test_dir.'/../data')); 16 16 17 require_once(dirname(__FILE__).'/../../../../ util/sfSimpleAutoload.class.php');17 require_once(dirname(__FILE__).'/../../../../autoload/sfSimpleAutoload.class.php'); 18 18 require_once(dirname(__FILE__).'/../../../../util/sfToolkit.class.php'); 19 19 $autoload = sfSimpleAutoload::getInstance(sfToolkit::getTmpDir().DIRECTORY_SEPARATOR.sprintf('sf_autoload_unit_%s.data', md5(__FILE__))); branches/dwhittle/1.1/lib/plugins/sfPropelPlugin/lib/task/sfPropelBaseTask.class.php
r7198 r7255 33 33 if (!self::$done) 34 34 { 35 $libDir = dirname(__FILE__).DIRECTORY_SEPARATOR.'..'; 36 35 37 $autoloader = sfSimpleAutoload::getInstance(); 36 $autoloader->addDirectory(dirname(__FILE__).DIRECTORY_SEPARATOR.'..'.DIRECTORY_SEPARATOR.'vendor'.DIRECTORY_SEPARATOR.'creole'); 37 $autoloader->addDirectory(dirname(__FILE__).DIRECTORY_SEPARATOR.'..'.DIRECTORY_SEPARATOR.'vendor'.DIRECTORY_SEPARATOR.'propel'); 38 $autoloader->addDirectory($libDir.DIRECTORY_SEPARATOR.'vendor'.DIRECTORY_SEPARATOR.'creole'); 39 $autoloader->addDirectory($libDir.DIRECTORY_SEPARATOR.'vendor'.DIRECTORY_SEPARATOR.'propel'); 40 $autoloader->addDirectory($libDir.DIRECTORY_SEPARATOR.'creole'); 41 $autoloader->addDirectory($libDir.DIRECTORY_SEPARATOR.'propel'); 42 $autoloader->addDirectory($libDir.DIRECTORY_SEPARATOR.'task'); 38 43 $autoloader->addDirectory(sfConfig::get('sf_root_dir').DIRECTORY_SEPARATOR.'lib'.DIRECTORY_SEPARATOR.'model'); 39 44 $autoloader->addDirectory(sfConfig::get('sf_root_dir').DIRECTORY_SEPARATOR.'lib'.DIRECTORY_SEPARATOR.'form'); 45 $autoloader->register(); 40 46 41 47 self::$done = true; branches/dwhittle/1.1/lib/plugins/sfPropelPlugin/lib/task/sfPropelBuildAllLoadTask.class.php
r6707 r7255 8 8 * file that was distributed with this source code. 9 9 */ 10 11 require_once(dirname(__FILE__).'/sfPropelBaseTask.class.php'); 10 12 11 13 /** branches/dwhittle/1.1/lib/plugins/sfPropelPlugin/lib/task/sfPropelBuildAllTask.class.php
r6707 r7255 8 8 * file that was distributed with this source code. 9 9 */ 10 11 require_once(dirname(__FILE__).'/sfPropelBaseTask.class.php'); 10 12 11 13 /** branches/dwhittle/1.1/lib/plugins/sfPropelPlugin/lib/task/sfPropelBuildDbTask.class.php
r6707 r7255 8 8 * file that was distributed with this source code. 9 9 */ 10 11 require_once(dirname(__FILE__).'/sfPropelBaseTask.class.php'); 10 12 11 13 /** branches/dwhittle/1.1/lib/plugins/sfPropelPlugin/lib/task/sfPropelBuildFormsTask.class.php
r6707 r7255 8 8 * file that was distributed with this source code. 9 9 */ 10 11 require_once(dirname(__FILE__).'/sfPropelBaseTask.class.php'); 10 12 11 13 /** branches/dwhittle/1.1/lib/plugins/sfPropelPlugin/lib/task/sfPropelBuildModelTask.class.php
r6707 r7255 8 8 * file that was distributed with this source code. 9 9 */ 10 11 require_once(dirname(__FILE__).'/sfPropelBaseTask.class.php'); 10 12 11 13 /** branches/dwhittle/1.1/lib/plugins/sfPropelPlugin/lib/task/sfPropelBuildSchemaTask.class.php
r6707 r7255 8 8 * file that was distributed with this source code. 9 9 */ 10 11 require_once(dirname(__FILE__).'/sfPropelBaseTask.class.php'); 10 12 11 13 /** branches/dwhittle/1.1/lib/plugins/sfPropelPlugin/lib/task/sfPropelBuildSqlTask.class.php
r6707 r7255 8 8 * file that was distributed with this source code. 9 9 */ 10 11 require_once(dirname(__FILE__).'/sfPropelBaseTask.class.php'); 10 12 11 13 /** branches/dwhittle/1.1/lib/plugins/sfPropelPlugin/lib/task/sfPropelDataDumpTask.class.php
r6707 r7255 8 8 * file that was distributed with this source code. 9 9 */ 10 11 require_once(dirname(__FILE__).'/sfPropelBaseTask.class.php'); 10 12 11 13 /** branches/dwhittle/1.1/lib/plugins/sfPropelPlugin/lib/task/sfPropelDataLoadTask.class.php
r6707 r7255 8 8 * file that was distributed with this source code. 9 9 */ 10 11 require_once(dirname(__FILE__).'/sfPropelBaseTask.class.php'); 10 12 11 13 /** branches/dwhittle/1.1/lib/plugins/sfPropelPlugin/lib/task/sfPropelGenerateCrudTask.class.php
r6884 r7255 8 8 * file that was distributed with this source code. 9 9 */ 10 11 require_once(dirname(__FILE__).'/sfPropelBaseTask.class.php'); 10 12 11 13 /** branches/dwhittle/1.1/lib/plugins/sfPropelPlugin/lib/task/sfPropelInitAdminTask.class.php
r6707 r7255 8 8 * file that was distributed with this source code. 9 9 */ 10 11 require_once(dirname(__FILE__).'/sfPropelBaseTask.class.php'); 10 12 11 13 /** branches/dwhittle/1.1/lib/plugins/sfPropelPlugin/lib/task/sfPropelInsertSqlTask.class.php
r6707 r7255 8 8 * file that was distributed with this source code. 9 9 */ 10 11 require_once(dirname(__FILE__).'/sfPropelBaseTask.class.php'); 10 12 11 13 /** branches/dwhittle/1.1/lib/plugins/sfPropelPlugin/lib/task/sfPropelSchemaToXmlTask.class.php
r6707 r7255 8 8 * file that was distributed with this source code. 9 9 */ 10 11 require_once(dirname(__FILE__).'/sfPropelBaseTask.class.php'); 10 12 11 13 /** branches/dwhittle/1.1/lib/plugins/sfPropelPlugin/lib/task/sfPropelSchemaToYmlTask.class.php
r6707 r7255 8 8 * file that was distributed with this source code. 9 9 */ 10 11 require_once(dirname(__FILE__).'/sfPropelBaseTask.class.php'); 10 12 11 13 /** branches/dwhittle/1.1/lib/task/generator/sfGenerateAppTask.class.php
r6932 r7255 8 8 * file that was distributed with this source code. 9 9 */ 10 11 require_once(dirname(__FILE__).'/sfGeneratorBaseTask.class.php'); 10 12 11 13 /** branches/dwhittle/1.1/lib/task/generator/sfGenerateControllerTask.class.php
r6932 r7255 8 8 * file that was distributed with this source code. 9 9 */ 10 11 require_once(dirname(__FILE__).'/sfGeneratorBaseTask.class.php'); 10 12 11 13 /** branches/dwhittle/1.1/lib/task/generator/sfGenerateModuleTask.class.php
r6932 r7255 8 8 * file that was distributed with this source code. 9 9 */ 10 11 require_once(dirname(__FILE__).'/sfGeneratorBaseTask.class.php'); 10 12 11 13 /** branches/dwhittle/1.1/lib/task/generator/sfGenerateProjectTask.class.php
r6932 r7255 8 8 * file that was distributed with this source code. 9 9 */ 10 11 require_once(dirname(__FILE__).'/sfGeneratorBaseTask.class.php'); 10 12 11 13 /** branches/dwhittle/1.1/lib/task/plugin/sfPluginAddChannelTask.class.php
r6932 r7255 8 8 * file that was distributed with this source code. 9 9 */ 10 11 require_once(dirname(__FILE__).'/sfPluginBaseTask.class.php'); 10 12 11 13 /** branches/dwhittle/1.1/lib/task/plugin/sfPluginInstallTask.class.php
r6932 r7255 8 8 * file that was distributed with this source code. 9 9 */ 10 11 require_once(dirname(__FILE__).'/sfPluginBaseTask.class.php'); 10 12 11 13 /** branches/dwhittle/1.1/lib/task/plugin/sfPluginListTask.class.php
r6932 r7255 8 8 * file that was distributed with this source code. 9 9 */ 10 11 require_once(dirname(__FILE__).'/sfPluginBaseTask.class.php'); 10 12 11 13 /** branches/dwhittle/1.1/lib/task/plugin/sfPluginUninstallTask.class.php
r6932 r7255 8 8 * file that was distributed with this source code. 9 9 */ 10 11 require_once(dirname(__FILE__).'/sfPluginBaseTask.class.php'); 10 12 11 13 /** branches/dwhittle/1.1/lib/task/plugin/sfPluginUpgradeTask.class.php
r6932 r7255 8 8 * file that was distributed with this source code. 9 9 */ 10 11 require_once(dirname(__FILE__).'/sfPluginBaseTask.class.php'); 10 12 11 13 /** branches/dwhittle/1.1/lib/util/sfCore.class.php
r7075 r7255 126 126 static public function initConfiguration($sf_symfony_lib_dir, $sf_symfony_data_dir, $test = false, $sf_dimension = null) 127 127 { 128 // YAML support 129 require_once($sf_symfony_lib_dir.DIRECTORY_SEPARATOR.'util'.DIRECTORY_SEPARATOR.'sfYaml.class.php'); 130 131 // APC cache support 132 require_once($sf_symfony_lib_dir.DIRECTORY_SEPARATOR.'cache'.DIRECTORY_SEPARATOR.'sfCache.class.php'); 133 require_once($sf_symfony_lib_dir.DIRECTORY_SEPARATOR.'cache'.DIRECTORY_SEPARATOR.'sfAPCCache.class.php'); 134 135 // config support 136 require_once($sf_symfony_lib_dir.DIRECTORY_SEPARATOR.'config'.DIRECTORY_SEPARATOR.'sfConfig.class.php'); 137 require_once($sf_symfony_lib_dir.DIRECTORY_SEPARATOR.'config'.DIRECTORY_SEPARATOR.'sfConfigCache.class.php'); 138 require_once($sf_symfony_lib_dir.DIRECTORY_SEPARATOR.'config'.DIRECTORY_SEPARATOR.'sfConfigHandler.class.php'); 139 require_once($sf_symfony_lib_dir.DIRECTORY_SEPARATOR.'config'.DIRECTORY_SEPARATOR.'sfYamlConfigHandler.class.php'); 140 require_once($sf_symfony_lib_dir.DIRECTORY_SEPARATOR.'config'.DIRECTORY_SEPARATOR.'sfAutoloadConfigHandler.class.php'); 141 require_once($sf_symfony_lib_dir.DIRECTORY_SEPARATOR.'config'.DIRECTORY_SEPARATOR.'sfRootConfigHandler.class.php'); 142 require_once($sf_symfony_lib_dir.DIRECTORY_SEPARATOR.'config'.DIRECTORY_SEPARATOR.'sfLoader.class.php'); 143 144 // exceptions 145 require_once($sf_symfony_lib_dir.DIRECTORY_SEPARATOR.'exception'.DIRECTORY_SEPARATOR.'sfException.class.php'); 146 require_once($sf_symfony_lib_dir.DIRECTORY_SEPARATOR.'exception'.DIRECTORY_SEPARATOR.'sfConfigurationException.class.php'); 147 require_once($sf_symfony_lib_dir.DIRECTORY_SEPARATOR.'exception'.DIRECTORY_SEPARATOR.'sfCacheException.class.php'); 148 require_once($sf_symfony_lib_dir.DIRECTORY_SEPARATOR.'exception'.DIRECTORY_SEPARATOR.'sfParseException.class.php'); 149 150 // utils 151 require_once($sf_symfony_lib_dir.DIRECTORY_SEPARATOR.'util'.DIRECTORY_SEPARATOR.'sfParameterHolder.class.php'); 152 require_once($sf_symfony_lib_dir.DIRECTORY_SEPARATOR.'util'.DIRECTORY_SEPARATOR.'sfToolkit.class.php'); 153 154 // autoloading 155 require_once($sf_symfony_lib_dir.DIRECTORY_SEPARATOR.'util'.DIRECTORY_SEPARATOR.'sfAutoload.class.php'); 128 require_once($sf_symfony_lib_dir.'/autoload/sfCoreAutoload.class.php'); 129 sfCoreAutoload::getInstance()->register(); 156 130 157 131 // in debug mode, load timer classes and start global timer 158 132 if (SF_DEBUG) 159 133 { 160 require_once($sf_symfony_lib_dir.DIRECTORY_SEPARATOR.'debug'.DIRECTORY_SEPARATOR.'sfTimerManager.class.php');161 require_once($sf_symfony_lib_dir.DIRECTORY_SEPARATOR.'debug'.DIRECTORY_SEPARATOR.'sfTimer.class.php');162 134 sfConfig::set('sf_timer_start', microtime(true)); 163 135 } branches/dwhittle/1.1/test/bin/prove.php
r7195 r7255 26 26 27 27 $h = new lime_symfony(new lime_output_color()); 28 28 29 $h->base_dir = realpath(dirname(__FILE__).'/..'); 29 30 require_once(dirname(__FILE__).'/../../lib/util/sfSimpleAutoload.class.php'); 30 require_once(dirname(__FILE__).'/../../lib/autoload/sfSimpleAutoload.class.php'); 31 31 require_once(dirname(__FILE__).'/../../lib/util/sfToolkit.class.php'); 32 33 32 $autoload = sfSimpleAutoload::getInstance(sfToolkit::getTmpDir().DIRECTORY_SEPARATOR.sprintf('sf_autoload_unit_%s.data', md5(__FILE__))); 34 33 $autoload->removeCache(); 34 35 // update sfCoreAutoload 36 require_once(dirname(__FILE__).'/../../lib/autoload/sfCoreAutoload.class.php'); 37 sfCoreAutoload::make(); 35 38 36 39 // cache autoload files branches/dwhittle/1.1/test/bootstrap/unit.php
r6871 r7255 23 23 sfConfig::set('sf_symfony_data_dir', realpath($_test_dir.'/../data')); 24 24 25 require_once(dirname(__FILE__).'/../../lib/ util/sfSimpleAutoload.class.php');25 require_once(dirname(__FILE__).'/../../lib/autoload/sfSimpleAutoload.class.php'); 26 26 require_once(dirname(__FILE__).'/../../lib/util/sfToolkit.class.php'); 27 27 $autoload = sfSimpleAutoload::getInstance(sfToolkit::getTmpDir().DIRECTORY_SEPARATOR.sprintf('sf_autoload_unit_%s.data', md5(__FILE__)));