Skip to content

Commit

Permalink
Updated Symfony code example (#249)
Browse files Browse the repository at this point in the history
Example was using wrong notation, looks like a mix of array / named arguments. Updated to named arguments.
  • Loading branch information
evertharmeling authored Mar 8, 2023
1 parent cfabb8a commit eae5ac2
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions guides/Symfony.rst
Original file line number Diff line number Diff line change
Expand Up @@ -47,9 +47,9 @@ stored in an AWS S3 bucket by key:
// this is needed to prevent issues with truncated zip files
//initialise zipstream with output zip filename and options.
$zip = new ZipStream\ZipStream(
'outputName' => 'test.zip',
'defaultEnableZeroHeader' => true,
'contentType' => 'application/octet-stream',
outputName: 'test.zip',
defaultEnableZeroHeader: true,
contentType: 'application/octet-stream',
);
//loop keys - useful for multiple files
Expand Down Expand Up @@ -127,4 +127,4 @@ You need to add correct permissions
's3' => ['ACL' => 'public-read'],
]);
fopen($path, 'w', null, $outputContext);
fopen($path, 'w', null, $outputContext);

0 comments on commit eae5ac2

Please sign in to comment.