Permalink
Browse files

added app.yml

  • Loading branch information...
1 parent 1dff399 commit 0e3db3202bfe83dbaacc9c4db56a4c4f995c2a7e @melimato melimato committed May 24, 2011
Showing with 11 additions and 4 deletions.
  1. +7 −0 config/app.yml
  2. +4 −4 lib/sfMongoSessionStorage.class.php
View
@@ -0,0 +1,7 @@
+#all:
+# sfMongoSessionStorage:
+# host: localhost
+# port: 27017
+# db_name: db_name
+# collection_name: session
+
@@ -33,13 +33,13 @@ class sfMongoSessionStorage extends sfSessionStorage
public function initialize($options = array())
{
$options = array_merge(array(
- 'db_name' => sfConfig::get('app_mongodb_database'),
- 'collection_name' => 'mongo_session',
+ 'db_name' => sfConfig::get('app_sfMongoSessionStorage_db_name'),
+ 'collection_name' => sfConfig::get('app_sfMongoSessionStorage_collection_name', 'mongo_session'),
'db_id_col' => 'sess_id',
'db_data_col' => 'sess_data',
'db_time_col' => 'sess_time',
- 'host' => sfConfig::get('app_mongodb_host', 'localhost'),
- 'port' => sfConfig::get('app_mongodb_port', '27017'),
+ 'host' => sfConfig::get('app_sfMongoSessionStorage_host', 'localhost'),
+ 'port' => sfConfig::get('app_sfMongoSessionStorage_port', '27017'),
), $options);
// disable auto_start

0 comments on commit 0e3db32

Please sign in to comment.