zendframework/zf2 — pull request #1005 by mwillbanks (2012-04-03 19:47:28+00:00)
Title: Topic/authentication service single adapter

*Reasoning:*
Currently the authentication method expects you to send in an adapter; this is great when you support multiple authentication types; however, in many peoples case they support 1 and in that case it would be ideal to be able to set through DI.

*Implementation:*
By changing the method signature of authenticate to allow an option adapter you can now either pass an adapter or set the adapter. In the event that one does not exist it will throw a runtime exception. Additionally the constructor now has an optional adapter argument that has been added on to the constructor signature.

*Tests:*
Tests have been updated and pass on my machine.

*Additional Remarks:*
Some updates were made to fix some coding standard violations.