From 14b1318eb2b8100d748fcedea1c46ca4809d6f31 Mon Sep 17 00:00:00 2001 From: Ben Klang Date: Tue, 16 Mar 2010 16:44:27 -0400 Subject: [PATCH] Shout: Add VFS initialization for voice prompts --- shout/config/conf.xml | 6 ++++++ shout/lib/Application.php | 17 ++++++++++++----- 2 files changed, 18 insertions(+), 5 deletions(-) diff --git a/shout/config/conf.xml b/shout/config/conf.xml index 869af7166..9138f8d05 100644 --- a/shout/config/conf.xml +++ b/shout/config/conf.xml @@ -78,5 +78,11 @@ + + + IVR Prompt Storage Settings + + + diff --git a/shout/lib/Application.php b/shout/lib/Application.php index cdbaaa483..9b230d678 100644 --- a/shout/lib/Application.php +++ b/shout/lib/Application.php @@ -65,6 +65,11 @@ class Shout_Application extends Horde_Registry_Application /** * TODO */ + public $vfs = null; + + /** + * TODO + */ static protected $_perms = array(); /** @@ -74,12 +79,14 @@ class Shout_Application extends Horde_Registry_Application */ protected function _init() { - $this->storage = Shout_Driver::factory('storage'); - $this->extensions = Shout_Driver::factory('extensions'); - $this->devices = Shout_Driver::factory('devices'); - $this->dialplan = Shout_Driver::factory('dialplan'); - try { + $this->storage = Shout_Driver::factory('storage'); + $this->extensions = Shout_Driver::factory('extensions'); + $this->devices = Shout_Driver::factory('devices'); + $this->dialplan = Shout_Driver::factory('dialplan'); + $conf = $GLOBALS['conf']; + $this->vfs = VFS::singleton($conf['vfs']['driver'], $conf['vfs']['params']); + $accounts = $this->storage->getAccounts(); } catch (Shout_Exception $e) { $GLOBALS['notification']->push($e); -- 2.11.0