diff options
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__))); |