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 e041ff4

Browse filesBrowse files
committed
minor #12448 [Session] Fix parameter names in WriteCheckSessionHandler (znerol)
This PR was submitted for the master branch but it was merged into the 2.5 branch instead (closes #12448). Discussion ---------- [Session] Fix parameter names in WriteCheckSessionHandler | Q | A | ------------- | --- | Bug fix? | yes | New feature? | no | BC breaks? | no | Deprecations? | no | Tests pass? | yes | Fixed tickets | - | License | MIT | Doc PR | - Commits ------- 90e7830 [Session] Fix parameter names in WriteCheckSessionHandler
2 parents af73a47 + 90e7830 commit e041ff4
Copy full SHA for e041ff4

File tree

Expand file treeCollapse file tree

1 file changed

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

1 file changed

+7
-7
lines changed

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

Copy file name to clipboardExpand all lines: src/Symfony/Component/HttpFoundation/Session/Storage/Handler/WriteCheckSessionHandler.php
+7-7Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -52,17 +52,17 @@ public function destroy($sessionId)
5252
/**
5353
* {@inheritdoc}
5454
*/
55-
public function gc($maxLifetime)
55+
public function gc($maxlifetime)
5656
{
57-
return $this->wrappedSessionHandler->gc($maxLifetime);
57+
return $this->wrappedSessionHandler->gc($maxlifetime);
5858
}
5959

6060
/**
6161
* {@inheritdoc}
6262
*/
63-
public function open($savePath, $sessionId)
63+
public function open($savePath, $sessionName)
6464
{
65-
return $this->wrappedSessionHandler->open($savePath, $sessionId);
65+
return $this->wrappedSessionHandler->open($savePath, $sessionName);
6666
}
6767

6868
/**
@@ -80,12 +80,12 @@ public function read($sessionId)
8080
/**
8181
* {@inheritdoc}
8282
*/
83-
public function write($sessionId, $sessionData)
83+
public function write($sessionId, $data)
8484
{
85-
if (isset($this->readSessions[$sessionId]) && $sessionData === $this->readSessions[$sessionId]) {
85+
if (isset($this->readSessions[$sessionId]) && $data === $this->readSessions[$sessionId]) {
8686
return true;
8787
}
8888

89-
return $this->wrappedSessionHandler->write($sessionId, $sessionData);
89+
return $this->wrappedSessionHandler->write($sessionId, $data);
9090
}
9191
}

0 commit comments

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