merged branch pborreli/patch-6 (PR #7228)

This PR was merged into the 2.2 branch.

Commits
-------

c6c71bf Fixed trailing whitespace

Discussion
----------

Fixed trailing whitespace
Revert "merged branch jfsimon/issue-6749 (PR #7220)"

This reverts commit f52120bdd33bcc83157fc55ee088a564c727fa59, reversing
changes made to 66c2be30d06bf8c9bee9e07aa57be245763c2478.
[Console] added string input test
[Console] fixed StringInput binding
[DomCrawler] Fix relative path handling in links

Added relative path canonicalization according to RFC 3986, section 5.2.4
[ClassLoader] made DebugClassLoader idempotent
[ClassLoader] tweaked test
[Routing] make xml loader more tolerant

schemes and methods may also be delimited by whitespace, comma or pipe.
this eases migration as now schemes="GET|POST" also works
[Routing] unify and fix the loader tests
[Routing] trigger deprecation warning for deprecated features that will be removed in 2.3
adjusted tests to not use RouteCollection::getPrefix
adjust tests to no use addPrefix with options
refactor interator test that was still assuming a tree
added tests for remove() that wasnt covered yet and special route name
adjust RouteCollectionTest for the addCollection change and refactor the tests to only skip the part that really needs the config component
added tests for addDefaults, addRequirements, addOptions
add test for uniqueness of resources
adjust routing tests to not use prefix in addCollection
remove() should not use deprecated getParent() so it does not trigger deprecation internally
Default validation message translation fix.

Add 'validators' for $translationDomain. Detailed discussion https://github.com/fabpot/Silex/pull/641