@@ -31,6 +31,10 @@ discard block |
||
| 31 | 31 | ->end(); |
| 32 | 32 | } |
| 33 | 33 | |
| 34 | + /** |
|
| 35 | + * @param string $id |
|
| 36 | + * @param string $userProvider |
|
| 37 | + */ |
|
| 34 | 38 | protected function createAuthenticationProvider(ContainerBuilder $container, $id, $userProvider) |
| 35 | 39 | { |
| 36 | 40 | $providerId = 'security.authentication.provider.' . $this->key . '.' . $id; |
@@ -41,6 +45,10 @@ discard block |
||
| 41 | 45 | return $providerId; |
| 42 | 46 | } |
| 43 | 47 | |
| 48 | + /** |
|
| 49 | + * @param string $id |
|
| 50 | + * @param string $defaultEntryPoint |
|
| 51 | + */ |
|
| 44 | 52 | protected function createEntryPoint(ContainerBuilder $container, $id, $defaultEntryPoint) |
| 45 | 53 | { |
| 46 | 54 | if (null !== $defaultEntryPoint) { |
@@ -51,6 +59,9 @@ discard block |
||
| 51 | 59 | return $entryPointId; |
| 52 | 60 | } |
| 53 | 61 | |
| 62 | + /** |
|
| 63 | + * @param string $id |
|
| 64 | + */ |
|
| 54 | 65 | protected function createListener(ContainerBuilder $container, $id, $defaultRoles) |
| 55 | 66 | { |
| 56 | 67 | $listenerId = 'security.authentication.listener.' . $this->key . '.' . $id; |
@@ -104,7 +104,9 @@ |
||
| 104 | 104 | */ |
| 105 | 105 | public function hasAttributeValue($name, $value = null) |
| 106 | 106 | { |
| 107 | - if (!$this->hasAttribute($name)) return false; |
|
| 107 | + if (!$this->hasAttribute($name)) { |
|
| 108 | + return false; |
|
| 109 | + } |
|
| 108 | 110 | return (empty($value) ? true : (array_search($value, $this->getArrayAttribute($name)) !== false)); |
| 109 | 111 | } |
| 110 | 112 | |
@@ -205,7 +205,7 @@ |
||
| 205 | 205 | |
| 206 | 206 | /** |
| 207 | 207 | * @param string $name |
| 208 | - * @param null $fallback |
|
| 208 | + * @param null|double $fallback |
|
| 209 | 209 | * @return null|string |
| 210 | 210 | */ |
| 211 | 211 | public function getAttribute($name, $fallback = null) |