| @@ 247-256 (lines=10) @@ | ||
| 244 | * @param string $action |
|
| 245 | * @param mixed|null $id |
|
| 246 | */ |
|
| 247 | public function remove($action, $id = null) |
|
| 248 | { |
|
| 249 | try { |
|
| 250 | $this->innerGateway->remove($action, $id); |
|
| 251 | } catch (DBALException $e) { |
|
| 252 | throw new \RuntimeException('Database error', 0, $e); |
|
| 253 | } catch (PDOException $e) { |
|
| 254 | throw new \RuntimeException('Database error', 0, $e); |
|
| 255 | } |
|
| 256 | } |
|
| 257 | ||
| 258 | /** |
|
| 259 | * Loads paged list of global aliases. |
|
| @@ 116-125 (lines=10) @@ | ||
| 113 | * |
|
| 114 | * @return array |
|
| 115 | */ |
|
| 116 | public function loadByEmail($email) |
|
| 117 | { |
|
| 118 | try { |
|
| 119 | return $this->innerGateway->loadByEmail($email); |
|
| 120 | } catch (\DBALException $e) { |
|
| 121 | throw new \RuntimeException('Database error', 0, $e); |
|
| 122 | } catch (\PDOException $e) { |
|
| 123 | throw new \RuntimeException('Database error', 0, $e); |
|
| 124 | } |
|
| 125 | } |
|
| 126 | ||
| 127 | /** |
|
| 128 | * Update the user information specified by the user struct. |
|