Skip to content

Commit 96284ef

Browse files
committed
Use private constant for default bucket name
1 parent c94fa5f commit 96284ef

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
@@ -21,6 +21,7 @@
2121
*/
2222
class Bucket
2323
{
24+
private static $defaultBucketName = 'fs';
2425
private static $defaultChunkSizeBytes = 261120;
2526
private static $streamWrapperProtocol = 'gridfs';
2627

@@ -54,7 +55,7 @@ class Bucket
5455
public function __construct(Manager $manager, $databaseName, array $options = [])
5556
{
5657
$options += [
57-
'bucketName' => 'fs',
58+
'bucketName' => self::$defaultBucketName,
5859
'chunkSizeBytes' => self::$defaultChunkSizeBytes,
5960
];
6061

0 commit comments

Comments
 (0)