Skip to content

Instantly share code, notes, and snippets.

@merk
Created August 3, 2010 04:32
Show Gist options
  • Save merk/505829 to your computer and use it in GitHub Desktop.
Save merk/505829 to your computer and use it in GitHub Desktop.
<?php
$lib = '../lib/';
require $lib . 'doctrine-common/lib/Doctrine/Common/ClassLoader.php';
$classLoader = new \Doctrine\Common\ClassLoader('Doctrine\Common', $lib.'doctrine-common/lib');
$classLoader->register();
$classLoader = new \Doctrine\Common\ClassLoader('Doctrine\DBAL', $lib.'doctrine-dbal/lib');
$classLoader->register();
$classLoader = new \Doctrine\Common\ClassLoader('Doctrine\ORM', $lib.'doctrine-orm/lib');
$classLoader->register();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment