Add doctrine-common and doctrine-dbal

This commit is contained in:
Bart Visscher 2012-10-09 21:07:31 +02:00
parent 95c8adba19
commit 44133a07d6
4 changed files with 14 additions and 0 deletions

6
.gitmodules vendored Normal file
View File

@ -0,0 +1,6 @@
[submodule "3rdparty/doctrine-common"]
path = 3rdparty/doctrine-common
url = git://github.com/doctrine/common.git
[submodule "3rdparty/doctrine-dbal"]
path = 3rdparty/doctrine-dbal
url = git://github.com/doctrine/dbal.git

1
3rdparty/doctrine-common vendored Submodule

@ -0,0 +1 @@
Subproject commit d1c7d4334e38cad603a5c863d4c7b91bb04ec6b2

1
3rdparty/doctrine-dbal vendored Submodule

@ -0,0 +1 @@
Subproject commit 30dc433ea08f4863479700492bdb70c3b06440bd

View File

@ -93,6 +93,12 @@ class OC{
elseif(strpos($className, 'Sabre_')===0) {
$path = str_replace('_', '/', $className) . '.php';
}
elseif(strpos($className, 'Doctrine\\Common')===0) {
$path = 'doctrine-common/lib/'.str_replace('\\', '/', $className) . '.php';
}
elseif(strpos($className, 'Doctrine\\DBAL')===0) {
$path = 'doctrine-dbal/lib/'.str_replace('\\', '/', $className) . '.php';
}
elseif(strpos($className, 'Test_')===0) {
$path = 'tests/lib/'.strtolower(str_replace('_', '/', substr($className, 5)) . '.php');
}else{