- Issue created by @useernamee
trusted_redirect.settings
service is defined in trusted_redirect.services.yml
but then it is not used in code. TrustedRedirectHelpersTrait
is instantiating the configuration through config.factory again which is a code duplication.
Remove instantiation of trusted_redirect.settings from helpers trait and properly inject it where needed.
https://git.drupalcode.org/project/trusted_redirect/-/blob/8.x-1.x/src/T...
It might suit us better to convert trait into service for isTrustedUrl
is still needed.
Active
1.11
Code