mirror of
https://github.com/Icinga/icingaweb2.git
synced 2025-04-08 17:15:08 +02:00
17 lines
483 B
PHP
17 lines
483 B
PHP
<?php
|
|
/**
|
|
* @package php-svg-lib
|
|
* @link http://github.com/PhenX/php-svg-lib
|
|
* @author Fabien Ménager <fabien.menager@gmail.com>
|
|
* @license GNU LGPLv3+ http://www.gnu.org/copyleft/lesser.html
|
|
*/
|
|
|
|
spl_autoload_register(function($class) {
|
|
if (0 === strpos($class, "Svg")) {
|
|
$file = str_replace('\\', DIRECTORY_SEPARATOR, $class);
|
|
$file = realpath(__DIR__ . DIRECTORY_SEPARATOR . $file . '.php');
|
|
if (file_exists($file)) {
|
|
include_once $file;
|
|
}
|
|
}
|
|
}); |