diff options
author | Nicolas LÅ“uillet <nicolas.loeuillet@gmail.com> | 2013-08-03 19:26:54 +0200 |
---|---|---|
committer | Nicolas LÅ“uillet <nicolas.loeuillet@gmail.com> | 2013-08-03 19:26:54 +0200 |
commit | 4f5b44bd3bd490309eb2ba7b44df4769816ba729 (patch) | |
tree | 6cefe170dfe0a5a361cb1e2d1fc4d580a3316d02 /vendor/composer/autoload_real.php | |
parent | 2b840e0cfb63a453bea67a98541f3df9c273c5f5 (diff) | |
download | wallabag-4f5b44bd3bd490309eb2ba7b44df4769816ba729.tar.gz wallabag-4f5b44bd3bd490309eb2ba7b44df4769816ba729.tar.zst wallabag-4f5b44bd3bd490309eb2ba7b44df4769816ba729.zip |
twig implementation
Diffstat (limited to 'vendor/composer/autoload_real.php')
-rw-r--r-- | vendor/composer/autoload_real.php | 47 |
1 files changed, 47 insertions, 0 deletions
diff --git a/vendor/composer/autoload_real.php b/vendor/composer/autoload_real.php new file mode 100644 index 00000000..f398fe33 --- /dev/null +++ b/vendor/composer/autoload_real.php | |||
@@ -0,0 +1,47 @@ | |||
1 | <?php | ||
2 | |||
3 | // autoload_real.php generated by Composer | ||
4 | |||
5 | class ComposerAutoloaderInit1c7743925d207055d2ad189b1f10a029 | ||
6 | { | ||
7 | private static $loader; | ||
8 | |||
9 | public static function loadClassLoader($class) | ||
10 | { | ||
11 | if ('Composer\Autoload\ClassLoader' === $class) { | ||
12 | require __DIR__ . '/ClassLoader.php'; | ||
13 | } | ||
14 | } | ||
15 | |||
16 | public static function getLoader() | ||
17 | { | ||
18 | if (null !== self::$loader) { | ||
19 | return self::$loader; | ||
20 | } | ||
21 | |||
22 | spl_autoload_register(array('ComposerAutoloaderInit1c7743925d207055d2ad189b1f10a029', 'loadClassLoader'), true, true); | ||
23 | self::$loader = $loader = new \Composer\Autoload\ClassLoader(); | ||
24 | spl_autoload_unregister(array('ComposerAutoloaderInit1c7743925d207055d2ad189b1f10a029', 'loadClassLoader')); | ||
25 | |||
26 | $vendorDir = dirname(__DIR__); | ||
27 | $baseDir = dirname($vendorDir); | ||
28 | |||
29 | $map = require __DIR__ . '/autoload_namespaces.php'; | ||
30 | foreach ($map as $namespace => $path) { | ||
31 | $loader->set($namespace, $path); | ||
32 | } | ||
33 | |||
34 | $classMap = require __DIR__ . '/autoload_classmap.php'; | ||
35 | if ($classMap) { | ||
36 | $loader->addClassMap($classMap); | ||
37 | } | ||
38 | |||
39 | $loader->register(true); | ||
40 | |||
41 | foreach (require __DIR__ . '/autoload_files.php' as $file) { | ||
42 | require $file; | ||
43 | } | ||
44 | |||
45 | return $loader; | ||
46 | } | ||
47 | } | ||