MarketplaceWebService\Client.php代码classMarketplaceWebService_ClientimplementsMarketplaceWebService_Interface{/**@varstring*/private$awsAccessKeyId=null;/**@varstring*/private$awsSecretAccessKey=null;/**@vararray*/private$config=array('ServiceURL'=>null,'UserAgent'=>'PHPClientLibrary/2011-08-01(Language=PHP5)','SignatureVersion'=>2,'SignatureMethod'=>'HmacSHA256','ProxyHost'=>null,'ProxyPort'=>-1,'MaxErrorRetry'=>3,);}文件名与类名不一样,类名就是路径,以_为分隔符。这路情况下如何写autoload规则。假设我的目录结构如下:amazon-src--MarketplaceWebService---Client.php---Model-----GetReportResult.php-.gitignore-composer.json-README.mdAutoload应该如何定义,以及如何调用MarketplaceWebService_Client与MarketplaceWebService_Model_GetReportResult两个类?
添加回答
举报
0/150
提交
取消