I am working on a package in which I use Doctrine CouchDB ODM. How to autoload and register namespaces from within a package? Here are the relevant working lines from app/autoload.php
that I need to move:
use Symfony\Component\ClassLoader\UniversalClassLoader; $loader->registerNamespaces(array( // ... 'Doctrine\\CouchDB' => __DIR__.'/../vendor/doctrine-odm/lib', 'Doctrine\\ODM\\CouchDB' => __DIR__.'/../vendor/doctrine-odm/lib', ));
Thanks!
source share