This program is free software: you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
Inheritance: extends Threaded, implements ClassLoader
示例#1
0
 public function run()
 {
     if (!interface_exists("ClassLoader", false)) {
         require \pocketmine\PATH . "src/spl/ClassLoader.php";
     }
     if (!class_exists("BaseClassLoader", false)) {
         require \pocketmine\PATH . "src/spl/BaseClassLoader.php";
     }
     $autoloader = new \BaseClassLoader();
     $autoloader->addPath(\pocketmine\PATH . "src");
     $autoloader->register(true);
 }
示例#2
0
 public function run()
 {
     if (!\interface_exists("ClassLoader", \false)) {
         require \pocketmine\PATH . "src/spl/ClassLoader.php";
     }
     if (!\class_exists("BaseClassLoader", \false)) {
         require \pocketmine\PATH . "src/spl/BaseClassLoader.php";
     }
     $autoloader = new \BaseClassLoader();
     $autoloader->addPath(\pocketmine\PATH . "src");
     $autoloader->addPath(\pocketmine\PATH . "src" . DIRECTORY_SEPARATOR . "spl");
     $autoloader->register(\true);
 }