Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit a7642f7

Browse filesBrowse files
minor #42230 [HttpFoundation] update phpdoc to recommend createIndex over ensureIndex (kralos)
This PR was merged into the 4.4 branch. Discussion ---------- [HttpFoundation] update phpdoc to recommend createIndex over ensureIndex | Q | A | ------------- | --- | Branch? | 4.4 | Bug fix? | no - kinda (phpdoc only fix) | New feature? | no | Deprecations? | no | Tickets | Fix #42229 | License | MIT | Doc PR | symfony/symfony-docs#15548 Updated PHPDoc to recommend using `createIndex` instead of `ensureIndex`. `ensureIndex` was deprecated in `mongodb 3.0.0` and removed in `mongodb 5.0.0` Commits ------- 05d8ca1 #42229 update phpdoc to recommend createIndex over ensureIndex
2 parents 8c84365 + 05d8ca1 commit a7642f7
Copy full SHA for a7642f7

File tree

Expand file treeCollapse file tree

1 file changed

+1
-1
lines changed
Filter options
Expand file treeCollapse file tree

1 file changed

+1
-1
lines changed

‎src/Symfony/Component/HttpFoundation/Session/Storage/Handler/MongoDbSessionHandler.php

Copy file name to clipboardExpand all lines: src/Symfony/Component/HttpFoundation/Session/Storage/Handler/MongoDbSessionHandler.php
+1-1Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ class MongoDbSessionHandler extends AbstractSessionHandler
5151
* A TTL collections can be used on MongoDB 2.2+ to cleanup expired sessions
5252
* automatically. Such an index can for example look like this:
5353
*
54-
* db.<session-collection>.ensureIndex(
54+
* db.<session-collection>.createIndex(
5555
* { "<expiry-field>": 1 },
5656
* { "expireAfterSeconds": 0 }
5757
* )

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.