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:
#!/usr/bin/env php
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
chdir(dirname(__FILE__));
require_once(dirname(__FILE__).'/config/ProjectConfiguration.class.php');
$configuration = new ProjectConfiguration();
include($configuration->getSymfonyLibDir().'/command/cli.php');
à
#!/usr/bin/env php
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
chdir(dirname(__FILE__));
require_once(dirname(__FILE__).'/config/ProjectConfiguration.class.php');
$configuration = new ProjectConfiguration();
include($configuration->getSymfonyLibDir().'/command/cli.php');
Il faut ensuite créer le fichier //config/ProjectConfiguration.class.php// avec le contenu suivant:
On peut deja voir si tout est correct avec la commande:
$ ./symfony -V
Symfony 1.1 arrive avec un nouveau système de scripts/batch appelé task. On lance celle qui s'occupe de mettre à jour le projet pour être compatible avec Symfony 1.1:
$ ./symfony project:upgrade1.1
On peut aussi eviter certains problemes désintallant le package //phing// installé via //pear//:
# pear uninstall phing/phing