This repository has been archived on 2023-08-20. You can view files and clone it, but cannot push or open issues or pull requests.
2012-02-07 10:09:38 +00:00
|
|
|
<?php
|
|
|
|
|
2012-11-19 11:48:33 +00:00
|
|
|
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();
|
|
|
|
}
|
|
|
|
|
2012-04-19 21:57:43 +01:00
|
|
|
$loader = require_once __DIR__.'/vendor/autoload.php';
|
2012-02-07 10:09:38 +00:00
|
|
|
|
|
|
|
use Doctrine\Common\Annotations\AnnotationRegistry;
|
|
|
|
|
|
|
|
AnnotationRegistry::registerLoader(array($loader, 'loadClass'));
|
2013-05-09 08:12:11 +01:00
|
|
|
|
|
|
|
return $loader;
|