composer package updates
[openemr.git] / vendor / phenx / php-svg-lib / src / autoload.php
blobb0e2b9cc444f2f6394f41295421fca8203fed85c
1 <?php
2 /**
3 * @package php-svg-lib
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
7 */
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)) {
14 include_once $file;
17 });