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 c3c6908

Browse filesBrowse files
committed
Rename exceptionIfMaximunExceeded to errorIfMaximunExceeded to follow the Spring framework name.
Rename allowableSessionsExceeded to allowedSessionsExceeded.
1 parent dec416b commit c3c6908
Copy full SHA for c3c6908

File tree

Expand file treeCollapse file tree

1 file changed

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

1 file changed

+9
-9
lines changed

‎src/Symfony/Component/Security/Http/Session/ConcurrentSessionControlAuthenticationStrategy.php

Copy file name to clipboardExpand all lines: src/Symfony/Component/Security/Http/Session/ConcurrentSessionControlAuthenticationStrategy.php
+9-9Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -29,14 +29,14 @@
2929
class ConcurrentSessionControlAuthenticationStrategy implements SessionAuthenticationStrategyInterface
3030
{
3131
protected $registry;
32-
protected $exceptionIfMaximumExceeded;
32+
protected $errorIfMaximumExceeded;
3333
protected $maximumSessions;
3434

35-
public function __construct(SessionRegistry $registry, $maximumSessions, $exceptionIfMaximumExceeded = true)
35+
public function __construct(SessionRegistry $registry, $maximumSessions, $errorIfMaximumExceeded = true)
3636
{
3737
$this->registry = $registry;
3838
$this->setMaximumSessions($maximumSessions);
39-
$this->setExceptionIfMaximumExceeded($exceptionIfMaximumExceeded);
39+
$this->setErrorIfMaximumExceeded($errorIfMaximumExceeded);
4040
}
4141

4242
/**
@@ -63,17 +63,17 @@ public function onAuthentication(Request $request, TokenInterface $token)
6363
}
6464
}
6565

66-
$this->allowableSessionsExceeded($sessions, $maxSessions, $this->registry);
66+
$this->allowedSessionsExceeded($sessions, $maxSessions, $this->registry);
6767
}
6868

6969
/**
7070
* Sets a boolean flag that causes a RuntimeException to be thrown if the number of sessions is exceeded.
7171
*
72-
* @param bool $exceptionIfMaximumExceeded
72+
* @param bool $errorIfMaximumExceeded
7373
*/
74-
public function setExceptionIfMaximumExceeded($exceptionIfMaximumExceeded)
74+
public function setErrorIfMaximumExceeded($errorIfMaximumExceeded)
7575
{
76-
$this->exceptionIfMaximumExceeded = (bool) $exceptionIfMaximumExceeded;
76+
$this->errorIfMaximumExceeded = (bool) $errorIfMaximumExceeded;
7777
}
7878

7979
/**
@@ -94,9 +94,9 @@ public function setMaximumSessions($maximumSessions)
9494
* @param int $allowableSessions
9595
* @param SessionRegistry $registry
9696
*/
97-
protected function allowableSessionsExceeded($orderedSessions, $allowableSessions, SessionRegistry $registry)
97+
protected function allowedSessionsExceeded($orderedSessions, $allowableSessions, SessionRegistry $registry)
9898
{
99-
if ($this->exceptionIfMaximumExceeded) {
99+
if ($this->errorIfMaximumExceeded) {
100100
throw new MaxSessionsExceededException(sprintf('Maximum number of sessions (%s) exceeded', $allowableSessions));
101101
}
102102

0 commit comments

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