Removed dependency on laminas/laminas-httphandlerrunner

This commit is contained in:
abdulmohsen
2024-03-06 00:03:13 +03:00
parent 42a6cdf4ac
commit 6ab95a7541
7 changed files with 203 additions and 117 deletions

View File

@@ -27,13 +27,13 @@ final readonly class View
$entity = Container::get(iState::class)::fromArray([iState::COLUMN_ID => $id]);
if (null === ($item = $this->db->find($entity))) {
if (null === ($item = $this->db->get($entity))) {
return api_error('Not found', HTTP_STATUS::HTTP_NOT_FOUND);
}
$apiUrl = $request->getUri()->withHost('')->withPort(0)->withScheme('');
$item = array_pop($item)->getAll();
$item = $item->getAll();
$item[iState::COLUMN_WATCHED] = $entity->isWatched();
$item[iState::COLUMN_UPDATED] = makeDate($entity->updated);