gearman-go/example/exec-worker/lib/bootstrap.php

12 lines
253 B
PHP
Raw Normal View History

2012-11-22 17:15:20 +08:00
<?php
function autoloader($class) {
$names = split("_", $class);
if (count($names) > 1) {
include implode(DIRECTORY_SEPARATOR, $names) . '.php';
} else {
include $class . '.php';
}
}
spl_autoload_register('autoloader');