includes/session/BotPasswordSessionProvider.php 1 location
|
@@ 51-55 (lines=5) @@
|
| 48 |
|
if ( !isset( $params['priority'] ) ) { |
| 49 |
|
throw new \InvalidArgumentException( __METHOD__ . ': priority must be specified' ); |
| 50 |
|
} |
| 51 |
|
if ( $params['priority'] < SessionInfo::MIN_PRIORITY || |
| 52 |
|
$params['priority'] > SessionInfo::MAX_PRIORITY |
| 53 |
|
) { |
| 54 |
|
throw new \InvalidArgumentException( __METHOD__ . ': Invalid priority' ); |
| 55 |
|
} |
| 56 |
|
|
| 57 |
|
$this->priority = $params['priority']; |
| 58 |
|
} |
includes/session/CookieSessionProvider.php 1 location
|
@@ 66-70 (lines=5) @@
|
| 63 |
|
if ( !isset( $params['priority'] ) ) { |
| 64 |
|
throw new \InvalidArgumentException( __METHOD__ . ': priority must be specified' ); |
| 65 |
|
} |
| 66 |
|
if ( $params['priority'] < SessionInfo::MIN_PRIORITY || |
| 67 |
|
$params['priority'] > SessionInfo::MAX_PRIORITY |
| 68 |
|
) { |
| 69 |
|
throw new \InvalidArgumentException( __METHOD__ . ': Invalid priority' ); |
| 70 |
|
} |
| 71 |
|
|
| 72 |
|
if ( !is_array( $params['cookieOptions'] ) ) { |
| 73 |
|
throw new \InvalidArgumentException( __METHOD__ . ': cookieOptions must be an array' ); |