Commit b187b92c9a1821b57a2c09452708c124b9734bd2

Authored by eduardo.batista
1 parent ec37e734
Exists in master and in 1 other branch desenv

[Fix] Corrigindo visibilidade de método.

O SEI não permite passagem de mais de 1 parametro para as RN's
controlador_ws.php
@@ -471,7 +471,8 @@ $app->group('/api/v1',function(){ @@ -471,7 +471,8 @@ $app->group('/api/v1',function(){
471 $protocoloDTO = new ProtocoloDTO(); 471 $protocoloDTO = new ProtocoloDTO();
472 $protocoloDTO->setDblIdProtocolo($request->getParam('protocolo')); 472 $protocoloDTO->setDblIdProtocolo($request->getParam('protocolo'));
473 $rn = new MdWsSeiProcedimentoRN(); 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 })->add( new TokenValidationMiddleware()); 478 })->add( new TokenValidationMiddleware());
rn/MdWsSeiProcedimentoRN.php
@@ -840,7 +840,7 @@ class MdWsSeiProcedimentoRN extends InfraRN { @@ -840,7 +840,7 @@ class MdWsSeiProcedimentoRN extends InfraRN {
840 * @param ProtocoloDTO $protocoloDTO 840 * @param ProtocoloDTO $protocoloDTO
841 * @return array 841 * @return array
842 */ 842 */
843 - protected function identificacaoAcessoConectado(UsuarioDTO $usuarioDTO, ProtocoloDTO $protocoloDTO){ 843 + public function apiIdentificacaoAcesso(UsuarioDTO $usuarioDTO, ProtocoloDTO $protocoloDTO){
844 try{ 844 try{
845 $objInfraSip = new InfraSip(SessaoSEI::getInstance()); 845 $objInfraSip = new InfraSip(SessaoSEI::getInstance());
846 $objInfraSip->autenticar(SessaoSEI::getInstance()->getNumIdOrgaoUsuario(), null, SessaoSEI::getInstance()->getStrSiglaUsuario(), $usuarioDTO->getStrSenha()); 846 $objInfraSip->autenticar(SessaoSEI::getInstance()->getNumIdOrgaoUsuario(), null, SessaoSEI::getInstance()->getStrSiglaUsuario(), $usuarioDTO->getStrSenha());