The Symfony 2.0 Autoloader
expects that the libraries it can handle follow the PSR0
or PEAR
standard when auto-loading files. If you have an old library which does not follow any of these two standards (in my case, class files are named like name.class.php), how would you handle auto-loading of these libraries?
In Symfony 2.1
this is easy as composer supports classmaps
and can load this type of libraries, but how would you do it in Symfony 2.0.x
?
Inside
app/autoload.php
, create an instance ofMapClassLoader
: