doctrine/DoctrineModule — pull request #95 by superdweebie (2012-09-30 11:01:14+00:00)
Title: Add authentication storage factory

An attempt to make creating an AuthenticationService a one liner, whilst still providing lots of configuration flexibility. AuthenticationService can now be created with:

`$authService = new AuthenticationService($serviceLocator->get('doctrine.authenticationstorage.odm_default'), $serviceLocator->get('doctrine.authenticationadapter.odm_default'))`

In doing this a few more options have been added to thee Authentication options class. The options class has also been renamed from AuthenticationAdapter to Authentication. Furthermore, the construction signature of Storage\ObjectRepository has changed. I think these changes bring more power, flexibility and consistency. However, they are BC breaks, so please discuss before commit.

Tests for the adapter factory and the storage factory have been added to the odm module.