16 lines
404 B
Plaintext
16 lines
404 B
Plaintext
<?php
|
|
|
|
if (version_compare(PHP_VERSION, '5.4', '>=') && gc_enabled()) {
|
|
// Disabling Zend Garbage Collection to prevent segfaults with PHP5.4+
|
|
// https://bugs.php.net/bug.php?id=53976
|
|
gc_disable();
|
|
}
|
|
|
|
$loader = require_once __DIR__.'/vendor/autoload.php';
|
|
|
|
use Doctrine\Common\Annotations\AnnotationRegistry;
|
|
|
|
AnnotationRegistry::registerLoader(array($loader, 'loadClass'));
|
|
|
|
return $loader;
|