Skip to content

Feature/ps reando#18

Open
enfoqueNativo wants to merge 24 commits intodevelopfrom
feature/PSReando
Open

Feature/ps reando#18
enfoqueNativo wants to merge 24 commits intodevelopfrom
feature/PSReando

Conversation

@enfoqueNativo
Copy link
Copy Markdown
Contributor

No description provided.

@enfoqueNativo enfoqueNativo added this to the 3.0 milestone Jun 30, 2020
@enfoqueNativo enfoqueNativo requested a review from sergiovier June 30, 2020 20:15
@enfoqueNativo enfoqueNativo self-assigned this Jun 30, 2020
$respuesta = $this->response; //Fuerzo instanciacion ya que necesito pasarlo por referencia
$ex->configurar_respuesta($respuesta);
$this->logger->info("La api retorn� un error. Status: ".$respuesta->get_status());
$this->logger->info(var_export($respuesta->get_data(), true));
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Este logger es PSR? Se podría mandar en el contexto la data (si no complejiza)

{
$list = array();
$list['swagger'] = "2.0";
$list['info'] = array('title' => 'API Title', 'version' => '1.0'); //TODO: Read from settings
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

WIP ?

return $s;
}
}
?> No newline at end of file
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

end tags?

Puede traer algún tema si se escapa un espacio al final. Recuerdo que php-cs-fixer ayuda a quitarlos...

- Transforma arrays => json en el constructor para evitar problema con stream.
- Hace rewind del stream al recuperar el body para garantizar que recupere todo
- Se adaptan la vista_json y vista_xml para que sigan devolviendo lo mismo que
antes
- rest_error::configurar_respuesta ahora recibe el parametro por referencia (por
inmutabilidad de la rta)
…espuesta

- Se agrega un json_decode a los test que recuperan el body de la respuesta
directamente.
- Agrega 'use' faltantes
- Fix al metodo respuesta::add_headers
- Fix al metodo vista_respuesta::escribir_encabezados
- Fix en metodos que no recibian la asignacion del objeto clonado
- La clase 'rest.php' instancia el response de manera temprana, ya que el
singleton no sirve con el esquema psr7.
- Se envia la respuesta como parametro por referencia en
rest_error::configurar_respuesta y
proveedor_autenticacion::requerir_autenticacion
@enfoqueNativo enfoqueNativo linked an issue Jun 29, 2023 that may be closed by this pull request
@enfoqueNativo enfoqueNativo modified the milestones: 3.0, 3.1 Jun 29, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Soporte PSR

2 participants