16 lines
390 B
PHP
16 lines
390 B
PHP
<?php
|
|
|
|
spl_autoload_register(function($className) {
|
|
if($className[0] == '\\') {
|
|
$className = substr($className, 1);
|
|
}
|
|
|
|
// Leave if class should not be handled by this autoloader
|
|
if(strpos($className, 'UnitedPrototype\\GoogleAnalytics') !== 0) return;
|
|
|
|
$classPath = strtr(substr($className, strlen('UnitedPrototype')), '\\', '/') . '.php';
|
|
|
|
require(__DIR__ . $classPath);
|
|
});
|
|
|
|
?>
|