Skip to content

Commit eae5ac2

Browse files
Updated Symfony code example (#249)
Example was using wrong notation, looks like a mix of array / named arguments. Updated to named arguments.
1 parent cfabb8a commit eae5ac2

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

guides/Symfony.rst

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -47,9 +47,9 @@ stored in an AWS S3 bucket by key:
4747
// this is needed to prevent issues with truncated zip files
4848
//initialise zipstream with output zip filename and options.
4949
$zip = new ZipStream\ZipStream(
50-
'outputName' => 'test.zip',
51-
'defaultEnableZeroHeader' => true,
52-
'contentType' => 'application/octet-stream',
50+
outputName: 'test.zip',
51+
defaultEnableZeroHeader: true,
52+
contentType: 'application/octet-stream',
5353
);
5454
5555
//loop keys - useful for multiple files
@@ -127,4 +127,4 @@ You need to add correct permissions
127127
's3' => ['ACL' => 'public-read'],
128128
]);
129129
130-
fopen($path, 'w', null, $outputContext);
130+
fopen($path, 'w', null, $outputContext);

0 commit comments

Comments
 (0)