Go for it!

モーターサイクルと自転車とキャンプの日々。

symfony 1.0から1.1へ

symfony 1.0から1.1へアップグレードした際のメモ。

symfony 1.0で作成したプロジェクトにfrontendという名前のアプリケーションが存在する状態です。

プロジェクトのトップディレクトリで作業。

$ cd project_top

不要なコンフィグファイルをガンガン削除。

$ rm config/config.php
$ rm apps/frontend/config/config.php
$ rm apps/frontend/config/config.php
$ rm apps/frontend/config/i18n.yml
$ rm apps/frontend/config/logging.yml

symfonyのディレクトリからProjectConfiguration.class.phpをコピーしてくる。

$ cp /some/where/symfony/task/generator/skeleton/project/config/ProjectConfiguration.class.php ./config/

コピーしたファイルはスケルトンなので、ファイル内の##SYMFONY_LIB_DIR##をsymfonyのディレクトリに置換する。

$ vi config/ProjectConfiguration.class.php

差分とるとこんなかんじ。

— /some/where/symfony/task/generator/skeleton/project/config/ProjectConfiguration.class.php    2008-07-09 16:48:25.000000000 +0900
+++ ./config/ProjectConfiguration.class.php 2008-07-09 17:33:53.000000000 +0900
@@ -1,6 +1,6 @@
 < ?php

-require_once ‘##SYMFONY_LIB_DIR##/autoload/sfCoreAutoload.class.php’; +require_once ‘/some/where/symfony/autoload/sfCoreAutoload.class.php’; sfCoreAutoload::register();

class ProjectConfiguration extends sfProjectConfiguration

[ad#text_wide]