Use the app/autoload.php to configure the startup mechanism.
If your class does not comply with PEAR style conventions or PSR-0 standards, you should explicitly require it (as is the case with Swiftmailer in the same file)
If your class follows the PEAR conventions, you should use the registerPrefixes else method, if your class follows the PSR-0 standard (maybe not), you should use the registerNamespaces method
source share