Correct Factory definition

Factory outputs a `Doctrine\DBAL\Connection` not a `StdClass`.

Without this change any validation of the container fails. I discovered this issue when using https://github.com/matthiasnoback/symfony-service-definition-validator/ to validate the container.