$afterResolving should be called for non queued commands
Use exclusive lock on session write.
Merge pull request #6846 from xsbeats/bugfix/bus-dispatcher-after-resolve

[5.0] $afterResolving should be called for non queued commands
Put lock flag on filesystem class.
Merge branch '4.2'
Add `$command` to command-handler stub docblock
Allow session to be set in session helper
Merge pull request #6849 from JosephSilber/session-helper

[5.0] Add session helper functionality
Merge pull request #6847 from xsbeats/5.0-command-handler-stub

[5.0] Add $command to command-handler stub docblock
Return instance from foundation helpers
Merge pull request #6854 from JosephSilber/helper-instances

[5.0] Return instance from foundation helpers