2012-06-14 21:21:55 +00:00
|
|
|
<?php
|
|
|
|
|
|
|
|
use Doctrine\Common\Annotations\AnnotationRegistry;
|
|
|
|
|
2012-09-03 19:27:50 +00:00
|
|
|
$loader = require __DIR__.'/../vendor/autoload.php';
|
2012-06-14 21:21:55 +00:00
|
|
|
|
|
|
|
// intl
|
|
|
|
if (!function_exists('intl_get_error_code')) {
|
2012-09-03 19:27:50 +00:00
|
|
|
require_once __DIR__.'/../vendor/symfony/symfony/src/Symfony/Component/Locale/Resources/stubs/functions.php';
|
2012-06-14 21:21:55 +00:00
|
|
|
|
2012-09-03 19:27:50 +00:00
|
|
|
$loader->add('', __DIR__.'/../vendor/symfony/symfony/src/Symfony/Component/Locale/Resources/stubs');
|
2012-06-14 21:21:55 +00:00
|
|
|
}
|
|
|
|
|
2012-09-03 19:27:50 +00:00
|
|
|
AnnotationRegistry::registerLoader(array($loader, 'loadClass'));
|
2012-06-14 21:21:55 +00:00
|
|
|
|
2012-09-03 19:27:50 +00:00
|
|
|
return $loader;
|