From 5db1aa95e62a94f51edb8ffd2335a119b1ffe91c Mon Sep 17 00:00:00 2001 From: "Michael J. Rubinsky" Date: Sun, 5 Sep 2010 14:09:25 -0400 Subject: [PATCH] No reason to have the filebased state driver as an option in Horde now that we have a fully functional history driver. --- horde/config/conf.xml | 30 ++++++++++-------------------- horde/rpc.php | 17 +++-------------- 2 files changed, 13 insertions(+), 34 deletions(-) diff --git a/horde/config/conf.xml b/horde/config/conf.xml index a050194b8..5c1364260 100644 --- a/horde/config/conf.xml +++ b/horde/config/conf.xml @@ -1853,26 +1853,16 @@ State Storage Settings - history - - - horde_activesync_device - horde_activesync_state - horde_activesync_map - horde_activesync_device_users - - - - - /tmp - - - + + horde_activesync_device + horde_activesync_state + horde_activesync_map + horde_activesync_device_users + Logging diff --git a/horde/rpc.php b/horde/rpc.php index a35a20a2c..d085af8d5 100644 --- a/horde/rpc.php +++ b/horde/rpc.php @@ -101,21 +101,10 @@ case 'ActiveSync': $params['logger'] = new Horde_Log_Logger(new Horde_Log_Handler_Stream(fopen($conf['activesync']['logging']['path'], 'a'))); } - switch ($conf['activesync']['state']['driver']) { - case 'file': - $stateMachine = new Horde_ActiveSync_State_File($conf['activesync']['state']['params']); - break; - - case 'history': - $state_params = $conf['activesync']['state']['params']; - $state_params['db'] = $injector->getInstance('Horde_Db_Adapter_Base'); - $stateMachine = new Horde_ActiveSync_State_History($state_params); - break; - } - - /* TODO: Probably want to bind a factory to injector for this? */ + $state_params = $conf['activesync']['state']['params']; + $state_params['db'] = $injector->getInstance('Horde_Db_Adapter_Base'); + $stateMachine = new Horde_ActiveSync_State_History($state_params); $params['registry'] = $registry; - $driver_params = array( 'connector' => new Horde_ActiveSync_Driver_Horde_Connector_Registry($params), 'ping' => $conf['activesync']['ping'], -- 2.11.0