Use composer vendors

This commit is contained in:
Romain Neutron
2012-01-05 10:39:09 +01:00
parent 4ed348f101
commit 1884d71c33
3 changed files with 28 additions and 30 deletions

View File

@@ -26,9 +26,6 @@ class DoctrineTestSQLite
public function __construct()
{
require_once __DIR__ . '/../../../../vendor/doctrine2-orm/lib/vendor/doctrine-common/lib/Doctrine/Common/ClassLoader.php';
static::loadClasses();
$config = new \Doctrine\ORM\Configuration();
@@ -93,19 +90,19 @@ class DoctrineTestSQLite
$classLoader = new \Doctrine\Common\ClassLoader(
'Doctrine\ORM'
, realpath(__DIR__ . '/../../../../vendor/doctrine2-orm/lib')
, realpath(__DIR__ . '/../../../../../vendor/doctrine/orm/lib')
);
$classLoader->register();
$classLoader = new \Doctrine\Common\ClassLoader(
'Doctrine\DBAL'
, realpath(__DIR__ . '/../../../../vendor/doctrine2-orm/lib/vendor/doctrine-dbal/lib')
, realpath(__DIR__ . '/../../../../../vendor/doctrine/orm/lib/vendor/doctrine-dbal/lib')
);
$classLoader->register();
$classLoader = new \Doctrine\Common\ClassLoader(
'Doctrine\Common'
, realpath(__DIR__ . '/../../../../vendor/doctrine2-orm/lib/vendor/doctrine-common/lib')
, realpath(__DIR__ . '/../../../../../vendor/doctrine/orm/lib/vendor/doctrine-common/lib')
);
$classLoader->register();
@@ -130,7 +127,7 @@ class DoctrineTestSQLite
$classLoader = new \Doctrine\Common\ClassLoader(
'Symfony'
, realpath(__DIR__ . '/../../../../vendor/doctrine2-orm/lib/vendor')
, realpath(__DIR__ . '/../../../../../vendor/doctrine/orm/lib/vendor')
);
$classLoader->register();
@@ -144,7 +141,7 @@ class DoctrineTestSQLite
$classLoader = new \Doctrine\Common\ClassLoader(
'Gedmo'
, __DIR__ . "/../../../../vendor/doctrine2-gedmo/lib"
, __DIR__ . "/../../../../vendor/gedmo/doctrine-extensions/lib"
);
$classLoader->register();