Ejemplo n.º 1
0
 /**
  * Load function definitions
  *
  * @param  array|Zend\Server\Definition $definition
  * @return void
  */
 public function loadFunctions($definition)
 {
     if (!is_array($definition) && !$definition instanceof \Zend\Server\Definition) {
         throw new Exception('Invalid definition provided to loadFunctions()');
     }
     foreach ($definition as $key => $method) {
         $this->_table->addMethod($method, $key);
         $this->_addMethodServiceMap($method);
     }
 }