Example #1
0
File: Factory.php Project: cwcw/cms
 /**
  * Provide the connector with all needed dependencies to do its job
  *
  * @param Streamwide_Engine_Call_Leg_Connector $connector
  * @return void
  */
 protected function _setConnectorDependencies(Streamwide_Engine_Call_Leg_Connector $connector)
 {
     if (isset($this->_params['leftCallLeg'])) {
         $connector->setLeftCallLeg($this->_params['leftCallLeg']);
     }
     if (isset($this->_params['rightCallLeg'])) {
         $connector->setRightCallLeg($this->_params['rightCallLeg']);
     }
     if (isset($this->_params['connectionParams'])) {
         $connector->setConnectionParams($this->_params['connectionParams']);
     }
     if (isset($this->_params['options'])) {
         $connector->setOptions($this->_params['options']);
     }
 }