Closed fritzmg closed 5 days ago
Let me know when it's RTM :)
Yeah, sorry, I just noticed this can be fixed even easier by using the interface of the helper service.
@Toflar can you check this again before I merge?
I don't know🤷♂️
@fritzmg is it ready to merge then? :)
Yes 👍. Tested in 4.13 and 5.x
Although I can think of one other improvment that makes the code even more agnostic to the Symfony version 😁
Instead of injecting the security.helper
, we could instead inject TokenStorageInterface
in the DocrineOrmHelper
, since all we want is the user.
Looks good to me, so if it works, I can finally merge it :)
Fixes #223
This adds compatibility for Contao 5.4+ by allowing both the deprecated and the new type for the
@security.helper
service.