lexik / LexikPayboxBundle

LexikPayboxBundle eases the implementation of the Paybox payment system
MIT License
40 stars 47 forks source link

Problem with EventDispatcher on 2.4 #19

Closed fabienpomerol closed 10 years ago

fabienpomerol commented 10 years ago

2.4 throw an exception on dev environment when using the response handler. The third argument is now a TraceableEventDispatcher

ContextErrorException: Catchable Fatal Error: Argument 3 passed to 
Lexik\Bundle\PayboxBundle\Paybox\System\Base\Response::__construct() must be an instance of 
Symfony\Component\EventDispatcher\EventDispatcher, instance of 
Symfony\Component\HttpKernel\Debug\TraceableEventDispatcher given, called in 

We must use the EventDispatcherInterface instead of EventDispatcher as type in the constructor of the Response (https://github.com/fabienpomerol/LexikPayboxBundle/blob/master/Paybox/System/Base/Response.php#L52)