Moved configuration to doctrine key. Fixes #1