From b187b92c9a1821b57a2c09452708c124b9734bd2 Mon Sep 17 00:00:00 2001 From: eduardo.batista Date: Tue, 6 Jun 2017 11:10:19 -0300 Subject: [PATCH] [Fix] Corrigindo visibilidade de método. --- controlador_ws.php | 3 ++- rn/MdWsSeiProcedimentoRN.php | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/controlador_ws.php b/controlador_ws.php index 24a00f7..ca34b52 100644 --- a/controlador_ws.php +++ b/controlador_ws.php @@ -471,7 +471,8 @@ $app->group('/api/v1',function(){ $protocoloDTO = new ProtocoloDTO(); $protocoloDTO->setDblIdProtocolo($request->getParam('protocolo')); $rn = new MdWsSeiProcedimentoRN(); - return $response->withJSON($rn->identificacaoAcesso($usuarioDTO, $protocoloDTO)); + + return $response->withJSON($rn->apiIdentificacaoAcesso($usuarioDTO, $protocoloDTO)); }); })->add( new TokenValidationMiddleware()); diff --git a/rn/MdWsSeiProcedimentoRN.php b/rn/MdWsSeiProcedimentoRN.php index 4d0b5a2..fdb0173 100644 --- a/rn/MdWsSeiProcedimentoRN.php +++ b/rn/MdWsSeiProcedimentoRN.php @@ -840,7 +840,7 @@ class MdWsSeiProcedimentoRN extends InfraRN { * @param ProtocoloDTO $protocoloDTO * @return array */ - protected function identificacaoAcessoConectado(UsuarioDTO $usuarioDTO, ProtocoloDTO $protocoloDTO){ + public function apiIdentificacaoAcesso(UsuarioDTO $usuarioDTO, ProtocoloDTO $protocoloDTO){ try{ $objInfraSip = new InfraSip(SessaoSEI::getInstance()); $objInfraSip->autenticar(SessaoSEI::getInstance()->getNumIdOrgaoUsuario(), null, SessaoSEI::getInstance()->getStrSiglaUsuario(), $usuarioDTO->getStrSenha()); -- libgit2 0.21.2