Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Newer
Older
100644 34 lines (30 sloc) 1.398 kB
56cef03 @willdurand Introducing Propel2
willdurand authored
1 <?php
2
aa35706 @hhamon Fixed autoload.php.dist file to work with Composer > 35120d7
hhamon authored
3 if (file_exists($file = __DIR__.'/vendor/autoload.php')) {
8136411 @willdurand Use Composer autoloader
willdurand authored
4 $loader = require $file;
56cef03 @willdurand Introducing Propel2
willdurand authored
5
8136411 @willdurand Use Composer autoloader
willdurand authored
6 $loader->add('Foo', __DIR__ . '/tests/Fixtures/namespaced/build/classes');
7 $loader->add('Baz', __DIR__ . '/tests/Fixtures/namespaced/build/classes');
8 $loader->add('Propel\Tests', array(
56cef03 @willdurand Introducing Propel2
willdurand authored
9 __DIR__ . '/tests',
10 __DIR__ . '/tests/Fixtures/bookstore/build/classes',
8136411 @willdurand Use Composer autoloader
willdurand authored
11 __DIR__ . '/tests/Fixtures/schemas/build/classes'
12 ));
13 $loader->register();
14 } elseif (file_exists($file = __DIR__ . '/vendor/Symfony/Component/ClassLoader/UniversalClassLoader.php')) {
15 require_once $file;
16
17 $loader = new \Symfony\Component\ClassLoader\UniversalClassLoader();
18 $loader->registerNamespaces(array(
215877d @willdurand Fixed autoload.php.dist
willdurand authored
19 'Propel\Common' => __DIR__ . '/src',
8136411 @willdurand Use Composer autoloader
willdurand authored
20 'Propel\Runtime' => __DIR__ . '/src',
21 'Propel\Generator' => __DIR__ . '/src',
22 'Symfony\Component' => __DIR__ . '/vendor',
da7249d @fzaninotto [Monolog] Added ServiceContainer::getLogger().
fzaninotto authored
23 'Monolog' => __DIR__ . '/vendor/Monolog/src/',
8136411 @willdurand Use Composer autoloader
willdurand authored
24 'Foo' => __DIR__ . '/tests/Fixtures/namespaced/build/classes',
25 'Baz' => __DIR__ . '/tests/Fixtures/namespaced/build/classes',
26 'Propel\Tests' => array(
27 __DIR__ . '/tests',
28 __DIR__ . '/tests/Fixtures/bookstore/build/classes',
29 __DIR__ . '/tests/Fixtures/schemas/build/classes',
30 ),
31 ));
32 $loader->register();
215877d @willdurand Fixed autoload.php.dist
willdurand authored
33 }
Something went wrong with that request. Please try again.