Différences
Ci-dessous, les différences entre deux révisions de la page.
Prochaine révision | Révision précédente | ||
mise_a_jour_vers_symfony_1.1 [2008/07/01 11:01] – créée madko | mise_a_jour_vers_symfony_1.1 [2012/10/30 22:47] (Version actuelle) – modification externe 127.0.0.1 | ||
---|---|---|---|
Ligne 1: | Ligne 1: | ||
- | # pear upgrade-all | + | On met à jour Symfony avec la commande suivante: |
+ | < | ||
+ | # pear upgrade-all | ||
+ | </ | ||
+ | |||
+ | A la racine du projet, il faut editer le fichier //symfony// pour passer de: | ||
+ | < | ||
+ | # | ||
+ | <?php | ||
+ | |||
+ | /* | ||
+ | * This file is part of the symfony package. | ||
+ | * (c) 2004-2006 Fabien Potencier < | ||
+ | * | ||
+ | * For the full copyright and license information, | ||
+ | * file that was distributed with this source code. | ||
+ | */ | ||
+ | |||
+ | chdir(dirname(__FILE__)); | ||
+ | require_once(dirname(__FILE__).'/ | ||
+ | $configuration = new ProjectConfiguration(); | ||
+ | include($configuration-> | ||
+ | </ | ||
+ | |||
+ | à | ||
+ | |||
+ | < | ||
+ | # | ||
+ | <?php | ||
+ | |||
+ | /* | ||
+ | * This file is part of the symfony package. | ||
+ | * (c) 2004-2006 Fabien Potencier < | ||
+ | * | ||
+ | * For the full copyright and license information, | ||
+ | * file that was distributed with this source code. | ||
+ | */ | ||
+ | |||
+ | chdir(dirname(__FILE__)); | ||
+ | require_once(dirname(__FILE__).'/ | ||
+ | $configuration = new ProjectConfiguration(); | ||
+ | include($configuration-> | ||
+ | </ | ||
+ | |||
+ | Il faut ensuite créer le fichier // | ||
+ | < | ||
+ | <?php | ||
+ | |||
+ | require_once '/ | ||
+ | sfCoreAutoload:: | ||
+ | |||
+ | class ProjectConfiguration extends sfProjectConfiguration | ||
+ | { | ||
+ | public function setup() | ||
+ | { | ||
+ | } | ||
+ | } | ||
+ | </ | ||
+ | |||
+ | On peut deja voir si tout est correct avec la commande: | ||
+ | < | ||
+ | $ ./symfony -V | ||
+ | </ | ||
+ | |||
+ | Symfony 1.1 arrive avec un nouveau système de scripts/ | ||
+ | < | ||
+ | $ ./symfony project: | ||
+ | </ | ||
+ | |||
+ | On peut aussi eviter certains problemes désintallant le package //phing// installé via //pear//: | ||
+ | < | ||
+ | # pear uninstall phing/ | ||
+ | </ |