Skip to content

Commit

Permalink
Agrego metodo para setear el request (puede ser util en uso stand alone)
Browse files Browse the repository at this point in the history
Salteo los paths a los que no tiene acceso la libreria por el motivo que fuere
  • Loading branch information
enfoqueNativo committed Oct 28, 2015
1 parent 2f89087 commit 5087aa3
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/SIUToba/rest/docs/controlador_docs.php
Original file line number Diff line number Diff line change
Expand Up @@ -83,6 +83,9 @@ protected function get_lista_apis()
$list = array();
foreach ($this->api_root as $root) {
$path = realpath($root);
if ($path === false) {
continue;
}
$archivos_api = $this->obtener_clases_directorio($path);

foreach ($archivos_api as $nombre => $objeto) {
Expand Down
5 changes: 5 additions & 0 deletions src/SIUToba/rest/rest.php
Original file line number Diff line number Diff line change
Expand Up @@ -221,6 +221,11 @@ public function set_response($response)
$this->response = $response;
}

public function set_request($request)
{
$this->request = $request;
}

public function set_vista($vista)
{
$this->vista = $vista;
Expand Down

0 comments on commit 5087aa3

Please sign in to comment.