shouldn't you use here wgAutoloadClasses directly ?