Skip to content
This repository
tree: a2aa7a445d
Fetching contributors…

Cannot retrieve contributors at this time

file 26 lines (20 sloc) 0.609 kb
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26
<?php

if (!@include __DIR__ . '/../vendor/autoload.php') {
    echo <<<EOF
You must set up the project dependencies, run the following commands:

    wget http://getcomposer.org/composer.phar
    php composer.phar install

EOF;

    exit(1);
}

spl_autoload_register(function($class)
{
    if (0 === strpos($class, 'RaulFraile\\Bundle\\LadybugBundle\\')) {
        $path = __DIR__ . '/../' . implode('/', array_slice(explode('\\', $class), 3)) . '.php';
        
        if (!stream_resolve_include_path($path)) {
            return false;
        }
        require_once $path;
        return true;
    }
});
Something went wrong with that request. Please try again.