Skip to content
Newer
Older
100644 42 lines (34 sloc) 1.61 KB
db5b6be @fabpot made initial import
fabpot authored Mar 7, 2011
1 <?php
2
3 use Symfony\Component\ClassLoader\UniversalClassLoader;
957a5f3 @beberlei Update autoload.php with requirements for AnnotationRegistry changes,…
beberlei authored Jul 3, 2011
4 use Doctrine\Common\Annotations\AnnotationRegistry;
db5b6be @fabpot made initial import
fabpot authored Mar 7, 2011
5
6 $loader = new UniversalClassLoader();
7 $loader->registerNamespaces(array(
f452075 @kriswallsmith removed unused vendors
kriswallsmith authored Mar 11, 2011
8 'Symfony' => array(__DIR__.'/../vendor/symfony/src', __DIR__.'/../vendor/bundles'),
9 'Sensio' => __DIR__.'/../vendor/bundles',
7ce8e8f @schmittjoh [Security] adds SecurityExtraBundle
schmittjoh authored Mar 14, 2011
10 'JMS' => __DIR__.'/../vendor/bundles',
2141234 @fabpot Revert "removed doctrine common and dbal submodules"
fabpot authored May 17, 2011
11 'Doctrine\\Common' => __DIR__.'/../vendor/doctrine-common/lib',
12 'Doctrine\\DBAL' => __DIR__.'/../vendor/doctrine-dbal/lib',
f452075 @kriswallsmith removed unused vendors
kriswallsmith authored Mar 11, 2011
13 'Doctrine' => __DIR__.'/../vendor/doctrine/lib',
40158a3 @stof Replaced Zend\Log with Monolog
stof authored Mar 18, 2011
14 'Monolog' => __DIR__.'/../vendor/monolog/src',
f452075 @kriswallsmith removed unused vendors
kriswallsmith authored Mar 11, 2011
15 'Assetic' => __DIR__.'/../vendor/assetic/src',
9db91ad @schmittjoh adds Metadata library
schmittjoh authored May 22, 2011
16 'Metadata' => __DIR__.'/../vendor/metadata/src',
db5b6be @fabpot made initial import
fabpot authored Mar 7, 2011
17 ));
18 $loader->registerPrefixes(array(
19 'Twig_Extensions_' => __DIR__.'/../vendor/twig-extensions/lib',
20 'Twig_' => __DIR__.'/../vendor/twig/lib',
21 ));
10b8ddf @fabpot fixed intl functions when intl is not enabled
fabpot authored Jul 5, 2011
22
23 // intl
24 if (!function_exists('intl_get_error_code')) {
25 require_once __DIR__.'/../vendor/symfony/src/Symfony/Component/Locale/Resources/stubs/functions.php';
26
27 $loader->registerPrefixFallbacks(array(__DIR__.'/../vendor/symfony/src/Symfony/Component/Locale/Resources/stubs'));
28 }
29
267dec4 @fabpot updated autoloader
fabpot authored May 31, 2011
30 $loader->registerNamespaceFallbacks(array(
31 __DIR__.'/../src',
32 ));
33 $loader->register();
69a78d3 @fabpot added a special autoloader for Swiftmailer
fabpot authored May 26, 2011
34
957a5f3 @beberlei Update autoload.php with requirements for AnnotationRegistry changes,…
beberlei authored Jul 3, 2011
35 AnnotationRegistry::registerLoader(function($class) use ($loader) {
36 $loader->loadClass($class);
37 return class_exists($class, false);
38 });
39 AnnotationRegistry::registerFile(__DIR__.'/../vendor/doctrine/lib/Doctrine/ORM/Mapping/Driver/DoctrineAnnotations.php');
40
3abdb93 @fabpot simplified code
fabpot authored Jun 30, 2012
41 require __DIR__.'/../vendor/swiftmailer/lib/swift_required.php';
Something went wrong with that request. Please try again.