mirror of
https://github.com/Intervention/image.git
synced 2025-09-02 02:12:37 +02:00
Update StreamCommand.php
https://docs.guzzlephp.org/en/stable/psr7.html#streams
This commit is contained in:
@@ -16,10 +16,10 @@ class StreamCommand extends AbstractCommand
|
|||||||
$format = $this->argument(0)->value();
|
$format = $this->argument(0)->value();
|
||||||
$quality = $this->argument(1)->between(0, 100)->value();
|
$quality = $this->argument(1)->between(0, 100)->value();
|
||||||
|
|
||||||
$this->setOutput(\GuzzleHttp\Psr7\stream_for(
|
$this->setOutput(\GuzzleHttp\Psr7\Utils::streamFor(
|
||||||
$image->encode($format, $quality)->getEncoded()
|
$image->encode($format, $quality)->getEncoded()
|
||||||
));
|
));
|
||||||
|
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user