Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
branch: master
Fetching contributors…

Cannot retrieve contributors at this time

35 lines (31 sloc) 1.457 kb
<?php
if (file_exists($file = __DIR__.'/vendor/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',
__DIR__ . '/tests/Fixtures/quoting/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\Common' => __DIR__ . '/src',
'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();
}
Jump to Line
Something went wrong with that request. Please try again.