/** * 生成由provider定义的WSDL * @return string 生成的WSDL字符串 */ public function generateWsdl() { $providerClass = is_object($this->provider) ? get_class($this->provider) : \Sky\Sky::import($this->provider, true); $generator = \Sky\Sky::createComponent($this->generatorConfig); $wsdl = $generator->generateWsdl($providerClass, $this->namespace, $this->encoding); return $wsdl; }
/** * 设置模块的namespace * @param array $namespace 要导入的namespace列表。 */ public function setImport($namespaces) { foreach ($namespaces as $namespace) { Sky::import($namespace); } }