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
This commit is contained in:
Fabien Potencier 2014-11-16 18:37:01 +01:00
commit e041ff44db

View File

@ -52,17 +52,17 @@ class WriteCheckSessionHandler implements \SessionHandlerInterface
/** /**
* {@inheritdoc} * {@inheritdoc}
*/ */
public function gc($maxLifetime) public function gc($maxlifetime)
{ {
return $this->wrappedSessionHandler->gc($maxLifetime); return $this->wrappedSessionHandler->gc($maxlifetime);
} }
/** /**
* {@inheritdoc} * {@inheritdoc}
*/ */
public function open($savePath, $sessionId) public function open($savePath, $sessionName)
{ {
return $this->wrappedSessionHandler->open($savePath, $sessionId); return $this->wrappedSessionHandler->open($savePath, $sessionName);
} }
/** /**
@ -80,12 +80,12 @@ class WriteCheckSessionHandler implements \SessionHandlerInterface
/** /**
* {@inheritdoc} * {@inheritdoc}
*/ */
public function write($sessionId, $sessionData) public function write($sessionId, $data)
{ {
if (isset($this->readSessions[$sessionId]) && $sessionData === $this->readSessions[$sessionId]) { if (isset($this->readSessions[$sessionId]) && $data === $this->readSessions[$sessionId]) {
return true; return true;
} }
return $this->wrappedSessionHandler->write($sessionId, $sessionData); return $this->wrappedSessionHandler->write($sessionId, $data);
} }
} }