Development

Upgrade1.1-PatchSymfonyFile (diff)

You must first sign up to be able to contribute.

Changes from Version 1 of Upgrade1.1-PatchSymfonyFile

Show
Ignore:
Author:
GaryFx (IP: 71.232.85.188)
Timestamp:
08/11/08 01:09:21 (9 years ago)
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • Upgrade1.1-PatchSymfonyFile

    v0 v1  
     1Your existing project directory has, at the topmost level, a file named symfony with contents that look like (after the copyright notice): 
     2{{{ 
     3chdir(dirname(__FILE__)); 
     4include('config/config.php'); 
     5include($sf_symfony_data_dir.'/bin/symfony.php'); 
     6}}} 
     7 
     8This file needs to be updated to use the new configuration mechanism.  If you haven't changed this file from the 1.0 original, you can simply copy the new skeleton from the 1.1 tree, {{{$SYMFONY_1_1/lib/task/generator/skeleton/project/symfony}}}.  If you have changed it, you should edit it as follows. 
     9 
     10You should change it to look like: 
     11{{{ 
     12chdir(dirname(__FILE__)); 
     13require_once(dirname(__FILE__).'/config/ProjectConfiguration.class.php'); 
     14$configuration = new ProjectConfiguration(); 
     15include($configuration->getSymfonyLibDir().'/command/cli.php'); 
     16}}}