mwillbanks/zf2 — pull request #1 by mwillbanks (2012-04-03 19:46:00+00:00)
Title: Change Zend\Authentication\AuthenticationService to allow for setting and getting an 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.