summaryrefslogtreecommitdiffstats
path: root/php-liuggio-statsd-php-client-autoload.php
diff options
context:
space:
mode:
authorRemi Collet <fedora@famillecollet.com>2015-10-27 14:03:59 +0100
committerRemi Collet <fedora@famillecollet.com>2015-10-27 14:03:59 +0100
commit6fbfd61c08e05217690af6ac73f53888c9f13bd9 (patch)
tree6d581b28e857b120bc3cc584a805912e8a492ecf /php-liuggio-statsd-php-client-autoload.php
parent13dc07fb3f31bc4ebe680cee50200b8e8dfc9bf0 (diff)
php-liuggio-statsd-php-client: sync with rawhideHEADmaster
Diffstat (limited to 'php-liuggio-statsd-php-client-autoload.php')
-rw-r--r--php-liuggio-statsd-php-client-autoload.php20
1 files changed, 20 insertions, 0 deletions
diff --git a/php-liuggio-statsd-php-client-autoload.php b/php-liuggio-statsd-php-client-autoload.php
new file mode 100644
index 0000000..ad59d20
--- /dev/null
+++ b/php-liuggio-statsd-php-client-autoload.php
@@ -0,0 +1,20 @@
+<?php
+$vendor = '/usr/share/php';
+if (!isset($fedoraClassLoader) || !($fedoraClassLoader instanceof \Symfony\Component\ClassLoader\ClassLoader)) {
+ if (!class_exists('Symfony\\Component\\ClassLoader\\ClassLoader', false)) {
+ require_once $vendor . '/Symfony/Component/ClassLoader/ClassLoader.php';
+ }
+
+ $fedoraClassLoader = new \Symfony\Component\ClassLoader\ClassLoader();
+ $fedoraClassLoader->register();
+}
+
+if (is_dir($vendor . '/Monolog')) {
+ $fedoraClassLoader->addPrefix('Monolog', $vendor);
+ $fedoraClassLoader->addPrefix('Psr\\Log', $vendor);
+}
+$fedoraClassLoader->addPrefix('Liuggio\\StatsdClient', dirname(dirname(__DIR__)));
+
+return $fedoraClassLoader;
+?>
+