コード例 #1
0
ファイル: Service.php プロジェクト: appcelerator/entourage
 public static function crawlServices()
 {
     $directory = dirname(__FILE__) . "/@@services-path@@";
     if (!is_dir($directory)) {
         throw new Exception("no services directory found on server");
     }
     $files = Appcelerator_Service::collectFiles($directory, array());
     foreach ($files as $path => $classname) {
         Appcelerator_Service::crawlClass($path, $classname);
     }
 }