src/AttributeRepositories/MySQLAttributeRepository.php 1 location
|
@@ 107-117 (lines=11) @@
|
| 104 |
|
/** |
| 105 |
|
* @return Service[]|Generator |
| 106 |
|
*/ |
| 107 |
|
private function fetchServices() { |
| 108 |
|
$this->selectServices->execute(); |
| 109 |
|
try { |
| 110 |
|
$services = $this->selectServices->fetchAll(PDO::FETCH_ASSOC); |
| 111 |
|
foreach($services as $service) { |
| 112 |
|
yield new Service($service['service_key']); |
| 113 |
|
} |
| 114 |
|
} finally { |
| 115 |
|
$this->selectServices->closeCursor(); |
| 116 |
|
} |
| 117 |
|
} |
| 118 |
|
} |
| 119 |
|
|
src/AttributeRepositories/SqliteAttributeRepository.php 1 location
|
@@ 110-120 (lines=11) @@
|
| 107 |
|
/** |
| 108 |
|
* @return Service[]|Generator |
| 109 |
|
*/ |
| 110 |
|
public function fetchServices() { |
| 111 |
|
$this->selectServices->execute(); |
| 112 |
|
try { |
| 113 |
|
$services = $this->selectServices->fetchAll(PDO::FETCH_ASSOC); |
| 114 |
|
foreach($services as $service) { |
| 115 |
|
yield new Service($service['service_key']); |
| 116 |
|
} |
| 117 |
|
} finally { |
| 118 |
|
$this->selectServices->closeCursor(); |
| 119 |
|
} |
| 120 |
|
} |
| 121 |
|
} |