Commit b187b92c9a1821b57a2c09452708c124b9734bd2
1 parent
ec37e734
Exists in
master
and in
1 other branch
[Fix] Corrigindo visibilidade de método.
O SEI não permite passagem de mais de 1 parametro para as RN's
Showing
2 changed files
with
3 additions
and
2 deletions
Show diff stats
controlador_ws.php
... | ... | @@ -471,7 +471,8 @@ $app->group('/api/v1',function(){ |
471 | 471 | $protocoloDTO = new ProtocoloDTO(); |
472 | 472 | $protocoloDTO->setDblIdProtocolo($request->getParam('protocolo')); |
473 | 473 | $rn = new MdWsSeiProcedimentoRN(); |
474 | - return $response->withJSON($rn->identificacaoAcesso($usuarioDTO, $protocoloDTO)); | |
474 | + | |
475 | + return $response->withJSON($rn->apiIdentificacaoAcesso($usuarioDTO, $protocoloDTO)); | |
475 | 476 | }); |
476 | 477 | |
477 | 478 | })->add( new TokenValidationMiddleware()); | ... | ... |
rn/MdWsSeiProcedimentoRN.php
... | ... | @@ -840,7 +840,7 @@ class MdWsSeiProcedimentoRN extends InfraRN { |
840 | 840 | * @param ProtocoloDTO $protocoloDTO |
841 | 841 | * @return array |
842 | 842 | */ |
843 | - protected function identificacaoAcessoConectado(UsuarioDTO $usuarioDTO, ProtocoloDTO $protocoloDTO){ | |
843 | + public function apiIdentificacaoAcesso(UsuarioDTO $usuarioDTO, ProtocoloDTO $protocoloDTO){ | |
844 | 844 | try{ |
845 | 845 | $objInfraSip = new InfraSip(SessaoSEI::getInstance()); |
846 | 846 | $objInfraSip->autenticar(SessaoSEI::getInstance()->getNumIdOrgaoUsuario(), null, SessaoSEI::getInstance()->getStrSiglaUsuario(), $usuarioDTO->getStrSenha()); | ... | ... |