[Console] fix typehint for Application::setDispatcher
[FrameworkBundle] set the dispatcher in the console application

So events are really dispatched using the FrameworkBundle console application
merged branch Tobion/console-dispatcher (PR #8158)

This PR was merged into the 2.3 branch.

Discussion
----------

[FrameworkBundle] set the dispatcher in the console application

BC break: no
test pass: yes

Otherwise events are not dispatched in symfony frameworkbundle.
The first commit fixes a related typehint in the console.

Commits
-------

e93fc7a [FrameworkBundle] set the dispatcher in the console application
176a3d4 [Console] fix typehint for Application::setDispatcher