diff options
author | Remi Collet <fedora@famillecollet.com> | 2015-08-10 14:03:20 +0200 |
---|---|---|
committer | Remi Collet <fedora@famillecollet.com> | 2015-08-10 14:03:20 +0200 |
commit | 13dc07fb3f31bc4ebe680cee50200b8e8dfc9bf0 (patch) | |
tree | f3ca1512ee398a6dd4384754996669b19bb22940 /autoload.php | |
parent | 8e71918cb0b763bc31fdf4a3f4637d26e2e8705a (diff) |
php-liuggio-statsd-php-client: 1.0.18
Diffstat (limited to 'autoload.php')
-rw-r--r-- | autoload.php | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/autoload.php b/autoload.php index d4e19e1..ed6bba9 100644 --- a/autoload.php +++ b/autoload.php @@ -9,9 +9,12 @@ if (!isset($fedoraClassLoader) || !($fedoraClassLoader instanceof \Symfony\Compo $fedoraClassLoader->register(); } -if (is_dir($vendor . '/Monolog')) { - $fedoraClassLoader->addPrefix('Monolog', $vendor); - $fedoraClassLoader->addPrefix('Psr\\Log', $vendor); +if (file_exists( $vendor . '/Monolog/autoload.php')) { + require_once $vendor . '/Monolog/autoload.php'; + +} else if (is_dir($vendor . '/Monolog')) { + $fedoraClassLoader->addPrefix('Monolog', $vendor); + $fedoraClassLoader->addPrefix('Psr\\Log', $vendor); } $fedoraClassLoader->addPrefix('Liuggio\\StatsdClient', dirname(dirname(__DIR__))); |