Be sure to always include the League\Glide\Manipulators\Encode() manipulator as the last item in your list of manipulators. This manipulator is required, and Glide will break without it.
League\Glide\Manipulators\Encode()
To use the SymfonyResponseFactory class, you must also include the symfony/http-foundation package with your project. For more information, see responses.
SymfonyResponseFactory
symfony/http-foundation