Skip to content

Instantly share code, notes, and snippets.

@merk
Created August 3, 2010 02:48
Show Gist options
  • Save merk/505744 to your computer and use it in GitHub Desktop.
Save merk/505744 to your computer and use it in GitHub Desktop.
<?php
require_once __DIR__.'/vendor/symfony/src/Symfony/Framework/UniversalClassLoader.php';
// TODO This is crap - it should only be loaded when Murmur is necessary.
require_once __DIR__.'/vendor/ice/Murmur.php';
use Symfony\Framework\UniversalClassLoader;
$loader = new UniversalClassLoader();
$loader->registerNamespaces(array(
'Symfony' => __DIR__.'/vendor/symfony/src',
'Application' => __DIR__,
'Bundle' => __DIR__,
'Citadel' => __DIR__.'/vendor/citadel/lib',
'Doctrine\\Common' => __DIR__.'/vendor/doctrine-common/lib',
'Doctrine\\DBAL\\Migrations' => __DIR__.'/vendor/doctrine-migrations/lib',
'Doctrine\\DBAL' => __DIR__.'/vendor/doctrine-dbal/lib',
'Doctrine' => __DIR__.'/vendor/doctrine/lib',
'Zend' => __DIR__.'/vendor/zend/library',
));
$loader->registerPrefixes(array(
'Swift_' => __DIR__.'/vendor/swiftmailer/lib/classes',
));
$loader->register();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment