1
0
mirror of https://github.com/devcode-it/openstamanager.git synced 2025-06-05 22:09:38 +02:00

Supporto uscita da apertura API

This commit is contained in:
Thomas Zilio
2019-07-19 17:21:27 +02:00
parent 7b03a2f3e5
commit 69b81da1e1

View File

@@ -186,8 +186,18 @@ class Manager
$object = new $class();
$method = $this->type;
$object->open($request);
// Operazioni di inizializzazione
$block = $object->open($request);
if (!empty($block)) {
return [
'status' => 404,
];
}
// Operazioni della risorsa
$response = $object->{$method}($request);
// Operazioni di completamento
$object->close($request, $response);
return $response;