From bcc35e0d0bf613d92b4b3e6332c5a7f6de52252a Mon Sep 17 00:00:00 2001 From: Remi Collet Date: Fri, 26 Jun 2015 11:32:05 +0200 Subject: php-bartlett-PHP-CompatInfo: rewrite autoloader --- php-bartlett-PHP-CompatInfo-autoload.php | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100644 php-bartlett-PHP-CompatInfo-autoload.php (limited to 'php-bartlett-PHP-CompatInfo-autoload.php') diff --git a/php-bartlett-PHP-CompatInfo-autoload.php b/php-bartlett-PHP-CompatInfo-autoload.php new file mode 100644 index 0000000..d40d05c --- /dev/null +++ b/php-bartlett-PHP-CompatInfo-autoload.php @@ -0,0 +1,25 @@ +register(); +} +$fedoraClassLoader->addPrefixes(array( + 'Bartlett\\CompatInfo' => 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 . '/Bartlett/Reflect/autoload.php'; -- cgit