Changeset 7370
- Timestamp:
- 02/06/08 15:00:37 (7 months ago)
- Files:
-
- branches/1.1/lib/autoload/sfCoreAutoload.class.php (modified) (1 diff)
- branches/1.1/lib/command/sfSymfonyCommandApplication.class.php (modified) (1 diff)
- branches/1.1/lib/config/sfCompileConfigHandler.class.php (modified) (1 diff)
- branches/1.1/lib/debug/sfWebDebug.class.php (modified) (1 diff)
- branches/1.1/lib/exception/data/exception.php (modified) (1 diff)
- branches/1.1/lib/plugin/sfSymfonyPluginManager.class.php (modified) (1 diff)
- branches/1.1/lib/util/sfCore.class.php (modified) (1 diff)
- branches/1.1/test/bin/loc.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
branches/1.1/lib/autoload/sfCoreAutoload.class.php
r7322 r7370 8 8 * file that was distributed with this source code. 9 9 */ 10 11 /** 12 * The current symfony version. 13 */ 14 define('SYMFONY_VERSION', '1.1.0-DEV'); 10 15 11 16 /** branches/1.1/lib/command/sfSymfonyCommandApplication.class.php
r7333 r7370 37 37 // application 38 38 $this->setName('symfony'); 39 $this->setVersion( sfCore::VERSION);39 $this->setVersion(SYMFONY_VERSION); 40 40 41 41 $this->initializeEnvironment($this->options['symfony_lib_dir']); branches/1.1/lib/config/sfCompileConfigHandler.class.php
r5062 r7370 90 90 91 91 // save current symfony release 92 file_put_contents(sfConfig::get('sf_config_cache_dir').'/VERSION', sfCore::VERSION);92 file_put_contents(sfConfig::get('sf_config_cache_dir').'/VERSION', SYMFONY_VERSION); 93 93 94 94 return $retval; branches/1.1/lib/debug/sfWebDebug.class.php
r7322 r7370 273 273 <a href="#" onclick="sfWebDebugToggleMenu(); return false;">'.image_tag(sfConfig::get('sf_web_debug_web_dir').'/images/sf.png').'</a> 274 274 <ul id="sfWebDebugDetails" class="menu"> 275 <li>'. sfCore::VERSION.'</li>275 <li>'.SYMFONY_VERSION.'</li> 276 276 <li><a href="#" onclick="sfWebDebugShowDetailsFor(\'sfWebDebugConfig\'); return false;">'.image_tag(sfConfig::get('sf_web_debug_web_dir').'/images/config.png').' vars & config</a></li> 277 277 '.$cacheLink.' branches/1.1/lib/exception/data/exception.php
r7294 r7370 51 51 52 52 <p id="footer"> 53 symfony v.<?php echo sfCore::VERSION ?> - php <?php echo PHP_VERSION ?><br />53 symfony v.<?php echo SYMFONY_VERSION ?> - php <?php echo PHP_VERSION ?><br /> 54 54 for help resolving this issue, please visit <a href="http://www.symfony-project.org/">http://www.symfony-project.org/</a>. 55 55 </p> branches/1.1/lib/plugin/sfSymfonyPluginManager.class.php
r6490 r7370 135 135 $symfony->setAPIVersion('1.1.0'); 136 136 $symfony->setAPIStability('stable'); 137 $symfony->setReleaseVersion(preg_replace('/\-\w+$/', '', sfCore::VERSION));138 $symfony->setReleaseStability(false === strpos( sfCore::VERSION, 'DEV') ? 'stable' : 'beta');137 $symfony->setReleaseVersion(preg_replace('/\-\w+$/', '', SYMFONY_VERSION)); 138 $symfony->setReleaseStability(false === strpos(SYMFONY_VERSION, 'DEV') ? 'stable' : 'beta'); 139 139 $symfony->setDate(date('Y-m-d')); 140 140 $symfony->setDescription('symfony'); branches/1.1/lib/util/sfCore.class.php
r7335 r7370 19 19 class sfCore 20 20 { 21 /**22 * The current symfony version.23 */24 const VERSION = '1.1.0-DEV';25 26 21 /** 27 22 * Bootstraps the symfony environment. branches/1.1/test/bin/loc.php
r4854 r7370 5 5 require_once($root_dir.'/lib/util/sfFinder.class.php'); 6 6 7 require_once($root_dir.'/lib/util/sfCoreAutoload.class.php'); 7 8 require_once($root_dir.'/lib/util/sfCore.class.php'); 8 $version = sfCore::VERSION;9 $version = SYMFONY_VERSION; 9 10 10 11 printf("symfony LOC (%s)\n", $version);