summaryrefslogtreecommitdiffstats
path: root/autoload.php
blob: ed6bba9c88532831b6ee2df2690e686401899b4d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
<?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 (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__)));

return $fedoraClassLoader;