【发布时间】:2012-11-25 16:31:15
【问题描述】:
第一:
谢谢你这个伟大的“Restler”!
我的背景:
我使用 Restler 3 构建我自己的 API 并返回我的用户的总分(关于游戏)。
示例:“www.mysite.com/api/score/12345” => 返回用户 id“12345”的总分(json 对象)
但是,要获得总分(来自不同的游戏),我需要使用我自己的库(称为“scorers”)及其类:
- 供应商/damGames/scorers/scoreGameA.class.php
- 供应商/damGames/scorers/scoreGameB.class.php
- 供应商/damGames/scorers/scoreGameC.class.php
- 等等...
我的问题是:
要加载我的库的类,我应该使用“Luracast\Restler\AutoLoader”吗?我不明白怎么...否则,我该怎么办?
谢谢!
【问题讨论】:
标签: autoloader restler