|
@@ 184-190 (lines=7) @@
|
| 181 |
|
$provider->setManager( $this ); |
| 182 |
|
$provider->setConfig( $this->config ); |
| 183 |
|
$id = $provider->getUniqueId(); |
| 184 |
|
if ( isset( $this->allAuthenticationProviders[$id] ) ) { |
| 185 |
|
throw new \RuntimeException( |
| 186 |
|
"Duplicate specifications for id $id (classes " . |
| 187 |
|
get_class( $provider ) . ' and ' . |
| 188 |
|
get_class( $this->allAuthenticationProviders[$id] ) . ')' |
| 189 |
|
); |
| 190 |
|
} |
| 191 |
|
$this->allAuthenticationProviders[$id] = $provider; |
| 192 |
|
$this->primaryAuthenticationProviders[$id] = $provider; |
| 193 |
|
} |
|
@@ 2213-2219 (lines=7) @@
|
| 2210 |
|
$provider->setManager( $this ); |
| 2211 |
|
$provider->setConfig( $this->config ); |
| 2212 |
|
$id = $provider->getUniqueId(); |
| 2213 |
|
if ( isset( $this->allAuthenticationProviders[$id] ) ) { |
| 2214 |
|
throw new \RuntimeException( |
| 2215 |
|
"Duplicate specifications for id $id (classes " . |
| 2216 |
|
get_class( $provider ) . ' and ' . |
| 2217 |
|
get_class( $this->allAuthenticationProviders[$id] ) . ')' |
| 2218 |
|
); |
| 2219 |
|
} |
| 2220 |
|
$this->allAuthenticationProviders[$id] = $provider; |
| 2221 |
|
$ret[$id] = $provider; |
| 2222 |
|
} |