forked from propelorm/Propel2
-
Notifications
You must be signed in to change notification settings - Fork 0
/
autoload.php.dist
32 lines (29 loc) · 1.33 KB
/
autoload.php.dist
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
<?php
if (file_exists($file = __DIR__.'/vendor/.composer/autoload.php')) {
$loader = require $file;
$loader->add('Foo', __DIR__ . '/tests/Fixtures/namespaced/build/classes');
$loader->add('Baz', __DIR__ . '/tests/Fixtures/namespaced/build/classes');
$loader->add('Propel\Tests', array(
__DIR__ . '/tests',
__DIR__ . '/tests/Fixtures/bookstore/build/classes',
__DIR__ . '/tests/Fixtures/schemas/build/classes'
));
$loader->register();
} elseif (file_exists($file = __DIR__ . '/vendor/Symfony/Component/ClassLoader/UniversalClassLoader.php')) {
require_once $file;
$loader = new \Symfony\Component\ClassLoader\UniversalClassLoader();
$loader->registerNamespaces(array(
'Propel\Runtime' => __DIR__ . '/src',
'Propel\Generator' => __DIR__ . '/src',
'Symfony\Component' => __DIR__ . '/vendor',
'Monolog' => __DIR__ . '/vendor/Monolog/src/',
'Foo' => __DIR__ . '/tests/Fixtures/namespaced/build/classes',
'Baz' => __DIR__ . '/tests/Fixtures/namespaced/build/classes',
'Propel\Tests' => array(
__DIR__ . '/tests',
__DIR__ . '/tests/Fixtures/bookstore/build/classes',
__DIR__ . '/tests/Fixtures/schemas/build/classes',
),
));
$loader->register();
}