run(); } /* function autoload($className) { if (strpos($className, "iniRepo")) { //Only worry about oru classes $path_includes = __DIR__."/includes/".str_replace('\\', DIRECTORY_SEPARATOR, str_replace("cooini\\iniRepo\\","", $className)).".php"; $path_plugin = __DIR__."/".str_replace('\\', DIRECTORY_SEPARATOR, str_replace("cooini\\iniRepo\\","", $className)).".php"; if (file_exists($path_includes)) include_once($path_includes); elseif (file_exists($path_plugin)) include_once $path_plugin; } } */ $loader = require_once "vendor/autoload.php"; $loader->addPsr4("cooini\\iniRepo\\", __DIR__."/"); $loader->register(true); //spl_autoload_register('cooini\iniRepo\autoload'); run_Inirepo();