7ef629525e
As of Doctrine 2.2, the ORM annotations can be found by the autoloader directly.
17 lines
682 B
Plaintext
17 lines
682 B
Plaintext
<?php
|
|
|
|
$loader = require_once __DIR__.'/vendor/autoload.php';
|
|
|
|
use Doctrine\Common\Annotations\AnnotationRegistry;
|
|
|
|
if (!function_exists('intl_get_error_code')) {
|
|
require_once __DIR__.'/src/Symfony/Component/Locale/Resources/stubs/functions.php';
|
|
|
|
$loader->add('IntlDateFormatter', __DIR__.'/src/Symfony/Component/Locale/Resources/stubs');
|
|
$loader->add('Collator', __DIR__.'/src/Symfony/Component/Locale/Resources/stubs');
|
|
$loader->add('Locale', __DIR__.'/src/Symfony/Component/Locale/Resources/stubs');
|
|
$loader->add('NumberFormatter', __DIR__.'/src/Symfony/Component/Locale/Resources/stubs');
|
|
}
|
|
|
|
AnnotationRegistry::registerLoader(array($loader, 'loadClass'));
|