示例#1
0
 public function load()
 {
     Paladin::getRouter()->get("/get-ignore-list", function () {
         // Creating the ignore list
         $ignoreList = array();
         // Reading the ignore list
         $file = fopen(self::IGNORE_LIST_FILES, "a+");
         while (($line = fgets($file)) !== false) {
             $ignoreList[sizeof($ignoreList)] = trim($line);
         }
         fclose($file);
         return new JsonResponse($ignoreList);
     });
 }