reasonableframework/vendor/autoload.php

12 lines
313 B
PHP
Raw Normal View History

2017-12-17 20:40:04 +00:00
<?php
2019-05-20 09:03:31 +00:00
define("VENDOR_PATH", './vendor/_dist');
2017-12-17 20:40:04 +00:00
// class loader
function my_autoloader($className) {
if(!class_exists($className)) {
$classFileName = str_replace("\\", "/", $className);
include_once(VENDOR_PATH . '/' . $classFileName . '.php');
}
}
spl_autoload_register('my_autoloader');