| author | cavaliet |
| Fri, 24 Jan 2014 17:43:38 +0100 | |
| changeset 104 | 415bc12426e9 |
| parent 71 | b01e36991488 |
| permissions | -rwxr-xr-x |
| 0 | 1 |
<?php |
|
71
b01e36991488
add headers for public repository release
ymh <ymh.work@gmail.com>
parents:
58
diff
changeset
|
2 |
/* |
|
b01e36991488
add headers for public repository release
ymh <ymh.work@gmail.com>
parents:
58
diff
changeset
|
3 |
* This file is part of the WikiTagBundle package. |
|
b01e36991488
add headers for public repository release
ymh <ymh.work@gmail.com>
parents:
58
diff
changeset
|
4 |
* |
|
b01e36991488
add headers for public repository release
ymh <ymh.work@gmail.com>
parents:
58
diff
changeset
|
5 |
* (c) IRI <http://www.iri.centrepompidou.fr/> |
|
b01e36991488
add headers for public repository release
ymh <ymh.work@gmail.com>
parents:
58
diff
changeset
|
6 |
* |
|
b01e36991488
add headers for public repository release
ymh <ymh.work@gmail.com>
parents:
58
diff
changeset
|
7 |
* For the full copyright and license information, please view the LICENSE |
|
b01e36991488
add headers for public repository release
ymh <ymh.work@gmail.com>
parents:
58
diff
changeset
|
8 |
* file that was distributed with this source code. |
|
b01e36991488
add headers for public repository release
ymh <ymh.work@gmail.com>
parents:
58
diff
changeset
|
9 |
*/ |
|
b01e36991488
add headers for public repository release
ymh <ymh.work@gmail.com>
parents:
58
diff
changeset
|
10 |
|
| 0 | 11 |
|
12 |
use Symfony\Component\ClassLoader\UniversalClassLoader; |
|
13 |
use Doctrine\Common\Annotations\AnnotationRegistry; |
|
14 |
||
15 |
$loader = new UniversalClassLoader(); |
|
16 |
$loader->registerNamespaces(array( |
|
| 58 | 17 |
'Symfony' => array(__DIR__.'/../vendor/symfony/src', __DIR__.'/../vendor/bundles'), |
18 |
'Sensio' => __DIR__.'/../vendor/bundles', |
|
19 |
'JMS' => __DIR__.'/../vendor/bundles', |
|
20 |
'Doctrine\\Common\\DataFixtures' => __DIR__.'/../vendor/doctrine-fixtures/lib', |
|
21 |
'Doctrine\\Common' => __DIR__.'/../vendor/doctrine-common/lib', |
|
22 |
'Doctrine\\DBAL\\Migrations' => __DIR__.'/../vendor/doctrine-migrations/lib', |
|
23 |
'Doctrine\\DBAL' => __DIR__.'/../vendor/doctrine-dbal/lib', |
|
24 |
'Doctrine' => __DIR__.'/../vendor/doctrine/lib', |
|
25 |
'Monolog' => __DIR__.'/../vendor/monolog/src', |
|
26 |
'Assetic' => __DIR__.'/../vendor/assetic/src', |
|
27 |
'Metadata' => __DIR__.'/../vendor/metadata/src', |
|
28 |
'FOS' => __DIR__.'/../vendor/bundles', |
|
29 |
'Pagerfanta' => __DIR__.'/../vendor/bundles', |
|
30 |
'Mandango\Mondator' => __DIR__.'/../vendor/mondator/src', |
|
31 |
'IRI\Bundle\WikiTagBundle' => __DIR__.'/../vendor/bundles', |
|
| 0 | 32 |
)); |
33 |
$loader->registerPrefixes(array( |
|
34 |
'Twig_Extensions_' => __DIR__.'/../vendor/twig-extensions/lib', |
|
35 |
'Twig_' => __DIR__.'/../vendor/twig/lib', |
|
36 |
)); |
|
37 |
||
38 |
// intl |
|
39 |
if (!function_exists('intl_get_error_code')) { |
|
40 |
require_once __DIR__.'/../vendor/symfony/src/Symfony/Component/Locale/Resources/stubs/functions.php'; |
|
41 |
||
42 |
$loader->registerPrefixFallbacks(array(__DIR__.'/../vendor/symfony/src/Symfony/Component/Locale/Resources/stubs')); |
|
43 |
} |
|
44 |
||
45 |
$loader->registerNamespaceFallbacks(array( |
|
46 |
__DIR__.'/../src', |
|
|
24
57ff6d39f88c
first full dynamic version of the bundle
ymh <ymh.work@gmail.com>
parents:
18
diff
changeset
|
47 |
__DIR__.'/cache/dev/wikitag', |
|
57ff6d39f88c
first full dynamic version of the bundle
ymh <ymh.work@gmail.com>
parents:
18
diff
changeset
|
48 |
__DIR__.'/cache/prod/wikitag', |
|
57ff6d39f88c
first full dynamic version of the bundle
ymh <ymh.work@gmail.com>
parents:
18
diff
changeset
|
49 |
__DIR__.'/cache/test/wikitag', |
| 32 | 50 |
__DIR__.'/cache/task/wikitag', |
| 0 | 51 |
)); |
52 |
$loader->register(); |
|
53 |
||
54 |
AnnotationRegistry::registerLoader(function($class) use ($loader) { |
|
55 |
$loader->loadClass($class); |
|
56 |
return class_exists($class, false); |
|
57 |
}); |
|
58 |
AnnotationRegistry::registerFile(__DIR__.'/../vendor/doctrine/lib/Doctrine/ORM/Mapping/Driver/DoctrineAnnotations.php'); |
|
59 |
||
60 |
// Swiftmailer needs a special autoloader to allow |
|
61 |
// the lazy loading of the init file (which is expensive) |
|
62 |
require_once __DIR__.'/../vendor/swiftmailer/lib/classes/Swift.php'; |
|
63 |
Swift::registerAutoload(__DIR__.'/../vendor/swiftmailer/lib/swift_init.php'); |
|
64 |