From eed58a2aa72cb29842614207cf07a1b2e7e4b0e5 Mon Sep 17 00:00:00 2001 From: Remi Collet Date: Fri, 26 Jun 2015 10:47:15 +0200 Subject: php-bartlett-umlwriter: rewrite autoloader --- php-bartlett-umlwriter-autoload.php | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) create mode 100644 php-bartlett-umlwriter-autoload.php (limited to 'php-bartlett-umlwriter-autoload.php') diff --git a/php-bartlett-umlwriter-autoload.php b/php-bartlett-umlwriter-autoload.php new file mode 100644 index 0000000..7f70544 --- /dev/null +++ b/php-bartlett-umlwriter-autoload.php @@ -0,0 +1,28 @@ +register(); +} +$fedoraClassLoader->addPrefixes(array( + 'Symfony\\Component' => $vendorDir, + 'TokenReflection' => $vendorDir, + 'Bartlett\\Umlwiter' => dirname(dirname(__DIR__)), +)); +if (is_file('/usr/share/php-bartlett-PHP-CompatInfo/compatinfo.sqlite')) { + putenv('BARTLETT_COMPATINFO_DB=/usr/share/php-bartlett-PHP-CompatInfo/compatinfo.sqlite'); +} + +// Dependencies +require_once $vendorDir . '/SebastianBergmann/Version/autoload.php'; +require_once $vendorDir . '/Bartlett/Reflect/autoload.php'; -- cgit