mirror of
https://github.com/wallabag/wallabag.git
synced 2025-08-01 17:38:38 +00:00
Fix some direct deprecation notices
This commit is contained in:
parent
98ed784af3
commit
d2c9f1bbfa
12 changed files with 31 additions and 31 deletions
|
@ -234,7 +234,7 @@ class EntriesExport
|
|||
$hash = sha1(\sprintf('%s:%s', $this->wallabagUrl, implode(',', $entryIds)));
|
||||
$book->setIdentifier(\sprintf('urn:wallabag:%s', $hash), EPub::IDENTIFIER_URI);
|
||||
|
||||
return Response::create(
|
||||
return new Response(
|
||||
$book->getBook(),
|
||||
200,
|
||||
[
|
||||
|
@ -309,7 +309,7 @@ class EntriesExport
|
|||
// set image scale factor
|
||||
$pdf->setImageScale(PDF_IMAGE_SCALE_RATIO);
|
||||
|
||||
return Response::create(
|
||||
return new Response(
|
||||
$pdf->Output('', 'S'),
|
||||
200,
|
||||
[
|
||||
|
@ -354,7 +354,7 @@ class EntriesExport
|
|||
$output = stream_get_contents($handle);
|
||||
fclose($handle);
|
||||
|
||||
return Response::create(
|
||||
return new Response(
|
||||
$output,
|
||||
200,
|
||||
[
|
||||
|
@ -370,7 +370,7 @@ class EntriesExport
|
|||
*/
|
||||
private function produceJson(): Response
|
||||
{
|
||||
return Response::create(
|
||||
return new Response(
|
||||
$this->prepareSerializingContent('json'),
|
||||
200,
|
||||
[
|
||||
|
@ -386,7 +386,7 @@ class EntriesExport
|
|||
*/
|
||||
private function produceXml(): Response
|
||||
{
|
||||
return Response::create(
|
||||
return new Response(
|
||||
$this->prepareSerializingContent('xml'),
|
||||
200,
|
||||
[
|
||||
|
@ -410,7 +410,7 @@ class EntriesExport
|
|||
$content .= $html->getText();
|
||||
}
|
||||
|
||||
return Response::create(
|
||||
return new Response(
|
||||
$content,
|
||||
200,
|
||||
[
|
||||
|
@ -433,7 +433,7 @@ class EntriesExport
|
|||
$content .= $converter->convert('<h1>' . $entry->getTitle() . '</h1>' . $entry->getContent());
|
||||
}
|
||||
|
||||
return Response::create(
|
||||
return new Response(
|
||||
$content,
|
||||
200,
|
||||
[
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue