Is there a way to load classes by Autoloader using classes prefixes?
I want to add Elastica lib (http://ruflin.github.com/Elastica/) to vendor dir or packages dir, however i don't know how to add these classes to FuelPHP autoloader.
All classes in Elastica lib starts with "Elastica_" and more underscores also match sub-directories (https://github.com/ruflin/Elastica/tree/master/lib/Elastica)
Does something like this exists?
addPrefixes(array(
'Elastica' => __DIR__.'/elastica/lib',
));
Thanks
No, there isn't.
The FuelPHP understands our own mechanism, and the PSR-0 standard. This project isn't complaint with either of them.
Probably the best thing to do is follow the authors instructions, and setup a specific autoloader for these files.