4 * @link http://github.com/PhenX/php-svg-lib
5 * @author Fabien Ménager <fabien.menager@gmail.com>
6 * @license GNU LGPLv3+ http://www.gnu.org/copyleft/lesser.html
9 spl_autoload_register(function($class) {
10 if (0 === strpos($class, "Svg")) {
11 $file = str_replace('\\', DIRECTORY_SEPARATOR
, $class);
12 $file = realpath(__DIR__
. DIRECTORY_SEPARATOR
. $file . '.php');
13 if (file_exists($file)) {