diff --git a/build.xml b/build.xml index 46361cf8446..024b63c8983 100644 --- a/build.xml +++ b/build.xml @@ -54,20 +54,6 @@ - - - - - - - - - - - - @@ -100,7 +86,6 @@ - diff --git a/tools/sandbox/cli-config.php b/tools/sandbox/cli-config.php index afe1296e6e1..46230ba2734 100644 --- a/tools/sandbox/cli-config.php +++ b/tools/sandbox/cli-config.php @@ -1,10 +1,17 @@ register(); +$classLoader = new \Doctrine\Common\ClassLoader('Doctrine\\DBAL', realpath(__DIR__ . '/../../lib/vendor/doctrine-dbal/lib')); +$classLoader->register(); +$classLoader = new \Doctrine\Common\ClassLoader('Doctrine\\Common', realpath(__DIR__ . '/../../lib/vendor/doctrine-common/lib')); +$classLoader->register(); +$classLoader = new \Doctrine\Common\ClassLoader('Symfony', realpath(__DIR__ . '/../../lib/vendor')); +$classLoader->register(); $classLoader = new \Doctrine\Common\ClassLoader('Entities', __DIR__); $classLoader->register(); - $classLoader = new \Doctrine\Common\ClassLoader('Proxies', __DIR__); $classLoader->register(); diff --git a/tools/sandbox/doctrine.php b/tools/sandbox/doctrine.php index f325e143a8d..918e6e5e7c1 100644 --- a/tools/sandbox/doctrine.php +++ b/tools/sandbox/doctrine.php @@ -1,11 +1,18 @@ register(); - -$classLoader = new \Doctrine\Common\ClassLoader('Symfony', __DIR__ . '/../../lib/vendor'); +$classLoader = new \Doctrine\Common\ClassLoader('Doctrine\\DBAL', realpath(__DIR__ . '/../../lib/vendor/doctrine-dbal/lib')); +$classLoader->register(); +$classLoader = new \Doctrine\Common\ClassLoader('Doctrine\\Common', realpath(__DIR__ . '/../../lib/vendor/doctrine-common/lib')); +$classLoader->register(); +$classLoader = new \Doctrine\Common\ClassLoader('Symfony', realpath(__DIR__ . '/../../lib/vendor')); +$classLoader->register(); +$classLoader = new \Doctrine\Common\ClassLoader('Entities', __DIR__); +$classLoader->register(); +$classLoader = new \Doctrine\Common\ClassLoader('Proxies', __DIR__); $classLoader->register(); // Variable $helperSet is defined inside cli-config.php diff --git a/tools/sandbox/index.php b/tools/sandbox/index.php index 37879eef4de..69e1eb359ad 100644 --- a/tools/sandbox/index.php +++ b/tools/sandbox/index.php @@ -15,16 +15,22 @@ Doctrine\Common\Cache\ApcCache, Entities\User, Entities\Address; -require '../../lib/Doctrine/Common/ClassLoader.php'; +require_once '../../lib/vendor/doctrine-common/lib/Doctrine/Common/ClassLoader.php'; // Set up class loading. You could use different autoloaders, provided by your favorite framework, // if you want to. -$doctrineClassLoader = new ClassLoader('Doctrine', realpath(__DIR__ . '/../../lib')); -$doctrineClassLoader->register(); -$entitiesClassLoader = new ClassLoader('Entities', __DIR__); -$entitiesClassLoader->register(); -$proxiesClassLoader = new ClassLoader('Proxies', __DIR__); -$proxiesClassLoader->register(); +$classLoader = new ClassLoader('Doctrine\\ORM', realpath(__DIR__ . '/../../lib')); +$classLoader->register(); +$classLoader = new ClassLoader('Doctrine\\DBAL', realpath(__DIR__ . '/../../lib/vendor/doctrine-dbal/lib')); +$classLoader->register(); +$classLoader = new ClassLoader('Doctrine\\Common', realpath(__DIR__ . '/../../lib/vendor/doctrine-common/lib')); +$classLoader->register(); +$classLoader = new ClassLoader('Symfony', realpath(__DIR__ . '/../../lib/vendor')); +$classLoader->register(); +$classLoader = new ClassLoader('Entities', __DIR__); +$classLoader->register(); +$classLoader = new ClassLoader('Proxies', __DIR__); +$classLoader->register(); // Set up caches $config = new Configuration; @@ -54,4 +60,3 @@ $address = new Address; echo 'Hello World!' . PHP_EOL; -