Skip to content

Commit

Permalink
Shorten the doctrine registry loader
Browse files Browse the repository at this point in the history
  • Loading branch information
Seldaek committed Feb 27, 2012
1 parent c80b7a3 commit e8df096
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions app/autoload.php
Original file line number Diff line number Diff line change
Expand Up @@ -31,10 +31,7 @@
$loader->add('SessionHandlerInterface', __DIR__.'/../vendor/symfony/src/Symfony/Component/HttpFoundation/Resources/stubs');
}

AnnotationRegistry::registerLoader(function($class) use ($loader) {
$loader->loadClass($class);
return class_exists($class, false);
});
AnnotationRegistry::registerLoader(array($loader, 'loadClass'));

// Swiftmailer needs a special autoloader to allow
// the lazy loading of the init file (which is expensive)
Expand Down

0 comments on commit e8df096

Please sign in to comment.