[FrameworkBundle] fixed regression where the command might have the wrong container if the application is reused several times
merged branch fabpot/console-fix (PR #8600)

This PR was merged into the 2.3 branch.

Discussion
----------

[FrameworkBundle] fixed regression where the command might have the wrong container if the application is reused several times

Commits
-------

1bd45b3 [FrameworkBundle] fixed regression where the command might have the wrong container if the application is reused several times