This PR adds support for Doctrine versions 3 and up.
Doctrine 3 support is implemented via a middleware and requires manual configuration as Doctrine does not allow adding middleware on runtime (examples below).
Doctrine 2 is still supported with no breaking changes (the SQLLogger implementation has been extracted into a separate class, it's unlikely this affects anyone).
Using the configure helper to register the middleware:
Using the
configure
helper to register the middleware:Manually adding the middleware: