Symfony integration
If your application uses the Symfony framework or anything that uses the HttpFoundation
library, you can use the SymfonyResponseFactory
.
Installation
composer require league/glide-symfony
Configuration
<?php
use League\Glide\ServerFactory;
use League\Glide\Responses\SymfonyResponseFactory;
$server = ServerFactory::create([
'response' => new SymfonyResponseFactory()
]);