Properly patch doctrine configuration with listener priority before service manager is created at bootstrap.