2010-06-06 09:35:20 +01:00
|
|
|
<?php
|
|
|
|
|
2012-04-01 22:50:54 +01:00
|
|
|
require_once __DIR__.'/src/Symfony/Component/ClassLoader/ClassLoader.php';
|
2010-06-06 09:35:20 +01:00
|
|
|
|
2012-04-01 22:50:54 +01:00
|
|
|
use Symfony\Component\ClassLoader\ClassLoader;
|
2011-07-03 15:44:01 +01:00
|
|
|
use Doctrine\Common\Annotations\AnnotationRegistry;
|
2010-06-06 09:35:20 +01:00
|
|
|
|
2012-04-01 22:50:54 +01:00
|
|
|
$loader = new ClassLoader();
|
|
|
|
$loader->addPrefixes(array(
|
|
|
|
'Symfony\\Tests\\' => __DIR__.'/tests',
|
|
|
|
'Symfony\\' => __DIR__.'/src',
|
|
|
|
'Doctrine\\Common\\DataFixtures\\' => __DIR__.'/vendor/doctrine-fixtures/lib',
|
|
|
|
'Doctrine\\Common\\' => __DIR__.'/vendor/doctrine-common/lib',
|
|
|
|
'Doctrine\\DBAL\\' => __DIR__.'/vendor/doctrine-dbal/lib',
|
|
|
|
'Doctrine\\ORM\\' => __DIR__.'/vendor/doctrine/lib',
|
|
|
|
'Monolog\\' => __DIR__.'/vendor/monolog/src',
|
|
|
|
'Twig_' => __DIR__.'/vendor/twig/lib',
|
2010-06-06 09:35:20 +01:00
|
|
|
));
|
2011-07-20 13:26:39 +01:00
|
|
|
if (!function_exists('intl_get_error_code')) {
|
|
|
|
require_once __DIR__.'/src/Symfony/Component/Locale/Resources/stubs/functions.php';
|
|
|
|
|
2012-04-01 22:50:54 +01:00
|
|
|
$loader->addPrefix('', __DIR__.'/src/Symfony/Component/Locale/Resources/stubs');
|
2012-02-16 02:42:50 +00:00
|
|
|
}
|
|
|
|
if (!interface_exists('SessionHandlerInterface', false)) {
|
2012-04-01 22:50:54 +01:00
|
|
|
$loader->addPrefix('SessionHandlerInterface', __DIR__.'/src/Symfony/Component/HttpFoundation/Resources/stubs');
|
2011-07-20 13:26:39 +01:00
|
|
|
}
|
2011-05-31 08:28:29 +01:00
|
|
|
$loader->register();
|
2011-06-11 08:20:01 +01:00
|
|
|
|
2012-03-06 12:36:48 +00:00
|
|
|
if (is_file(__DIR__.'/vendor/doctrine-common/lib/Doctrine/Common/Annotations/AnnotationRegistry.php')) {
|
2012-04-01 22:50:54 +01:00
|
|
|
AnnotationRegistry::registerLoader(array($loader, 'loadClass'));
|
2012-03-06 12:36:48 +00:00
|
|
|
}
|
2011-07-03 15:44:01 +01:00
|
|
|
|
2011-06-14 20:57:58 +01:00
|
|
|
if (is_file(__DIR__.'/vendor/swiftmailer/lib/classes/Swift.php')) {
|
|
|
|
require_once __DIR__.'/vendor/swiftmailer/lib/classes/Swift.php';
|
|
|
|
Swift::registerAutoload(__DIR__.'/vendor/swiftmailer/lib/swift_init.php');
|
|
|
|
}
|
2012-02-05 22:04:14 +00:00
|
|
|
|
|
|
|
if (is_file($file = __DIR__.'/vendor/propel/runtime/lib/Propel.php')) {
|
|
|
|
require_once $file;
|
|
|
|
}
|