mirror of
https://github.com/Intervention/image.git
synced 2025-08-21 21:15:11 +02:00
Fix for PHP5.4
This commit is contained in:
@@ -57,7 +57,7 @@ class Response
|
|||||||
$response->header('Content-Type', $mime);
|
$response->header('Content-Type', $mime);
|
||||||
$response->header('Content-Length', $length);
|
$response->header('Content-Length', $length);
|
||||||
|
|
||||||
} elseif (class_exists(\Symfony\Component\HttpFoundation\Response::class)) {
|
} elseif (class_exists('\Symfony\Component\HttpFoundation\Response')) {
|
||||||
|
|
||||||
$response = \Symfony\Component\HttpFoundation\Response::create($data);
|
$response = \Symfony\Component\HttpFoundation\Response::create($data);
|
||||||
$response->headers->set('Content-Type', $mime);
|
$response->headers->set('Content-Type', $mime);
|
||||||
|
Reference in New Issue
Block a user