Skip to content

Commit 400e829

Browse files
committed
Use private constant for default chunk size
1 parent 32600bb commit 400e829

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/GridFS/Bucket.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@
2020
class Bucket
2121
{
2222
private static $streamWrapper;
23+
private static $defaultChunkSizeBytes = 261120;
2324

2425
private $collectionsWrapper;
2526
private $databaseName;
@@ -49,7 +50,7 @@ public function __construct(Manager $manager, $databaseName, array $options = []
4950
{
5051
$options += [
5152
'bucketName' => 'fs',
52-
'chunkSizeBytes' => 261120,
53+
'chunkSizeBytes' => self::$defaultChunkSizeBytes,
5354
];
5455

5556
if (isset($options['bucketName']) && ! is_string($options['bucketName'])) {

0 commit comments

Comments
 (0)