| author | ymh <ymh.work@gmail.com> |
| Wed, 14 Dec 2011 23:28:58 +0100 | |
| changeset 58 | 624e5900f5a4 |
| parent 39 | 03b14b0fe101 |
| child 71 | b01e36991488 |
| permissions | -rwxr-xr-x |
| 0 | 1 |
<?php |
2 |
||
3 |
use Symfony\Component\ClassLoader\UniversalClassLoader; |
|
4 |
use Doctrine\Common\Annotations\AnnotationRegistry; |
|
5 |
||
6 |
$loader = new UniversalClassLoader(); |
|
7 |
$loader->registerNamespaces(array( |
|
| 58 | 8 |
'Symfony' => array(__DIR__.'/../vendor/symfony/src', __DIR__.'/../vendor/bundles'), |
9 |
'Sensio' => __DIR__.'/../vendor/bundles', |
|
10 |
'JMS' => __DIR__.'/../vendor/bundles', |
|
11 |
'Doctrine\\Common\\DataFixtures' => __DIR__.'/../vendor/doctrine-fixtures/lib', |
|
12 |
'Doctrine\\Common' => __DIR__.'/../vendor/doctrine-common/lib', |
|
13 |
'Doctrine\\DBAL\\Migrations' => __DIR__.'/../vendor/doctrine-migrations/lib', |
|
14 |
'Doctrine\\DBAL' => __DIR__.'/../vendor/doctrine-dbal/lib', |
|
15 |
'Doctrine' => __DIR__.'/../vendor/doctrine/lib', |
|
16 |
'Monolog' => __DIR__.'/../vendor/monolog/src', |
|
17 |
'Assetic' => __DIR__.'/../vendor/assetic/src', |
|
18 |
'Metadata' => __DIR__.'/../vendor/metadata/src', |
|
19 |
'FOS' => __DIR__.'/../vendor/bundles', |
|
20 |
'Pagerfanta' => __DIR__.'/../vendor/bundles', |
|
21 |
'Mandango\Mondator' => __DIR__.'/../vendor/mondator/src', |
|
22 |
'IRI\Bundle\WikiTagBundle' => __DIR__.'/../vendor/bundles', |
|
| 0 | 23 |
)); |
24 |
$loader->registerPrefixes(array( |
|
25 |
'Twig_Extensions_' => __DIR__.'/../vendor/twig-extensions/lib', |
|
26 |
'Twig_' => __DIR__.'/../vendor/twig/lib', |
|
27 |
)); |
|
28 |
||
29 |
// intl |
|
30 |
if (!function_exists('intl_get_error_code')) { |
|
31 |
require_once __DIR__.'/../vendor/symfony/src/Symfony/Component/Locale/Resources/stubs/functions.php'; |
|
32 |
||
33 |
$loader->registerPrefixFallbacks(array(__DIR__.'/../vendor/symfony/src/Symfony/Component/Locale/Resources/stubs')); |
|
34 |
} |
|
35 |
||
36 |
$loader->registerNamespaceFallbacks(array( |
|
37 |
__DIR__.'/../src', |
|
|
24
57ff6d39f88c
first full dynamic version of the bundle
ymh <ymh.work@gmail.com>
parents:
18
diff
changeset
|
38 |
__DIR__.'/cache/dev/wikitag', |
|
57ff6d39f88c
first full dynamic version of the bundle
ymh <ymh.work@gmail.com>
parents:
18
diff
changeset
|
39 |
__DIR__.'/cache/prod/wikitag', |
|
57ff6d39f88c
first full dynamic version of the bundle
ymh <ymh.work@gmail.com>
parents:
18
diff
changeset
|
40 |
__DIR__.'/cache/test/wikitag', |
| 32 | 41 |
__DIR__.'/cache/task/wikitag', |
| 0 | 42 |
)); |
43 |
$loader->register(); |
|
44 |
||
45 |
AnnotationRegistry::registerLoader(function($class) use ($loader) { |
|
46 |
$loader->loadClass($class); |
|
47 |
return class_exists($class, false); |
|
48 |
}); |
|
49 |
AnnotationRegistry::registerFile(__DIR__.'/../vendor/doctrine/lib/Doctrine/ORM/Mapping/Driver/DoctrineAnnotations.php'); |
|
50 |
||
51 |
// Swiftmailer needs a special autoloader to allow |
|
52 |
// the lazy loading of the init file (which is expensive) |
|
53 |
require_once __DIR__.'/../vendor/swiftmailer/lib/classes/Swift.php'; |
|
54 |
Swift::registerAutoload(__DIR__.'/../vendor/swiftmailer/lib/swift_init.php'); |
|
55 |