New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
contao.security.token_checker cannot be decorated #4967
Comments
Maybe the correct text would be |
// Sorry, misunderstood you comment. Yes that would be more accurate then. |
But the question is - is this what we want? Shouldn't the token checker implement an interface instead and all services requiring that service should inject that interface? |
That would be valid for all services, so I’d only do this if decorating this service is common or an explicit extension point for us. |
As discussed in the Contao call, we want to remove the comment from the |
Affected version(s)
4.9+
Description
The class comment of our
contao.security.token_checker
service says:However, decorating that service is not actually possible, as this service does not implement an interface and thus all other services injecting the token checker are requiring a type of
and thus if you try to decorate this service you will end up with an error like
The text was updated successfully, but these errors were encountered: