Permalink
Fetching contributors…
Cannot retrieve contributors at this time
14 lines (9 sloc) 431 Bytes
<?php
use Doctrine\Common\Annotations\AnnotationRegistry;
// use vendor generated autoloader
$loader = require __DIR__ . '/vendor/autoload.php';
AnnotationRegistry::registerLoader(array($loader, 'loadClass'));
// Spoon is not autoloaded via Composer but uses its own old skool autoloader
set_include_path(__DIR__ . '/vendor/spoon/library' . PATH_SEPARATOR . get_include_path());
require_once 'spoon/spoon.php';
return $loader;