this requires that any custom class is autoload-able or load it somehow else (auto-prepend .. though that is ugly).
this is what i had to do for one project in a custom AppCache class:
https://gist.github.com/lsmith77/4078842

it would be more inline with the philosophy of Symfony2 to have such a class in the app (ie. ezpublish) dir.