Registering Config and Doctrine. Setting up Doctrine connection