Payum/PayumBundle — pull request #40 by mcrumm (2013-08-13 21:37:15+00:00)
Title: Call addApi before addAction in AbstractPaymentFactory

Custom payments loading any Actions implementing ApiAwareInterface will throw an Exception since addApi() isn't called until after addAction().

This PR simply flips addApi() and addAction() in the AbstractPaymentFactory so that the Apis are injected first.

The phpunit output was identical before and after this change.