openscrum/app/autoload.php

17 lines
474 B
PHP
Raw Permalink Normal View History

<?php
use Doctrine\Common\Annotations\AnnotationRegistry;
2013-03-02 22:08:14 +00:00
$loader = require __DIR__.'/../vendor/autoload.php';
// intl
if (!function_exists('intl_get_error_code')) {
2013-03-02 22:08:14 +00:00
require_once __DIR__.'/../vendor/symfony/symfony/src/Symfony/Component/Locale/Resources/stubs/functions.php';
2013-03-02 22:08:14 +00:00
$loader->add('', __DIR__.'/../vendor/symfony/symfony/src/Symfony/Component/Locale/Resources/stubs');
}
2013-03-02 22:08:14 +00:00
AnnotationRegistry::registerLoader(array($loader, 'loadClass'));
2013-03-02 22:08:14 +00:00
return $loader;