[BUGFIX] Use interface in PersistenceManager::injectQueryFactory

Currently PersistenceManager::injectQueryFactory
expects a concrete implementation of QueryFactory
instead of an descendant of QueryFactoryInterface.

Releases: 6.1
Fixes: #32026
Change-Id: I1f25a4fdf692e144e5b5773ee7d25beca3e44444
Reviewed-on: https://review.typo3.org/17365
Reviewed-by: Mattias Nilsson
Reviewed-by: Wouter Wolters
Reviewed-by: Tymoteusz Motylewski
Tested-by: Tymoteusz Motylewski
Reviewed-by: Stefan Froemken
Tested-by: Stefan Froemken
[BUGFIX] Make AlphanumericValidator work with umlauts

Changes the regular expression used to validate the
string into a unicode-aware character-class and adds
a tests for this.

Backport of: https://review.typo3.org/#/c/9923/

Releases: 6.1, 6.0
Fixes: #44216
Change-Id: I85b77691ed7eea04972d834bb5fd083555872eee
Reviewed-on: https://review.typo3.org/17370
Reviewed-by: Wouter Wolters
Tested-by: Wouter Wolters
Reviewed-by: Stefan Froemken
Tested-by: Stefan Froemken
Reviewed-by: Tymoteusz Motylewski
Tested-by: Tymoteusz Motylewski