I have created a handler class that derives from AbstractProcessingHandler
. I've seen that I can put it in src/MyNamespace/MyBundle/Monolog/
, but it worries me a bit because this handler is used in several others bundles where I log data. So the other bundles will need MyBundle to work properly, only because of this handler.
I tried to put my handler class in lib/
but it does not seem to work (maybe I have to do something special with Autoload?).
Or should I create a new bundle specifically for this handler?
Edit: I can't really place my custom handler class in vendor/monolog/monolog/src/Monolog/Handler
because then I would not be able to add it to my git repository: there is a conflict because this folder is managed by another git repository (created by Composer)