What is the best way to put custom library or helper methods in symfony? I am using doctrine with my project. One place I consider to put is under
project_root/lib/vendor/MyClasses/But if I want to create a class or helper function which will use some core symfony/doctrine methods and return a result then how to do that and where should I put it? I want it to call from different modules to avoid code duplication.