Permalink
Find file
Fetching contributors…
Cannot retrieve contributors at this time
18 lines (14 sloc) 449 Bytes
<?php
include __DIR__ . '/../autoload_register.php';
set_include_path(implode(PATH_SEPARATOR, array(
'.',
'<ADD PATH TO CommonResource/src/ DIRECTORY HERE',
get_include_path(),
)));
spl_autoload_register(function($class) {
$file = str_replace(array('\\', '_'), DIRECTORY_SEPARATOR, $class) . '.php';
if (false === ($realpath = stream_resolve_include_path($file))) {
return false;
}
include_once $realpath;
});