Is there a way to use the ImageStyle class with dependency injection instead of a static call?
I am struggling to find an example.
At the moment I have a block which is importing the class with
And then calls the load method with
But I am wondering if there's a better way to do this?