Compare commits
10 Commits
Author | SHA1 | Date | |
---|---|---|---|
|
5eb4e10abe | ||
|
00b22c28e5 | ||
|
ef3842021f | ||
|
cf5d50ea2e | ||
|
d047c57d67 | ||
|
4f28b3fcb8 | ||
|
1f90b825f4 | ||
|
a6be515460 | ||
|
c709e9c659 | ||
|
6100b956bc |
@ -123,9 +123,9 @@ class Bootstrap extends Zend_Application_Bootstrap_Bootstrap
|
||||
if (APPLICATION_ENV == 'development') {
|
||||
$level = Logger::DEBUG;
|
||||
} else {
|
||||
$level = Logger::INFO;
|
||||
$level = Logger::NOTICE;
|
||||
}
|
||||
$log->pushHandler(new StreamHandler($logFile), $level);
|
||||
$log->pushHandler(new StreamHandler($logFile, $level));
|
||||
|
||||
// Processor
|
||||
$log->pushProcessor(new IntrospectionProcessor());
|
||||
|
@ -125,8 +125,7 @@ class IdentiteController extends Zend_Controller_Action
|
||||
$datemajTexte = $dateDerMaj = '';
|
||||
$datemajTexte.= '<table>';
|
||||
foreach ($tabDate as $dateId => $dateLib ) {
|
||||
if ( isset($infos->{$dateId})
|
||||
&& !empty($infos->{$dateId})
|
||||
if (isset($infos->{$dateId}) && !empty($infos->{$dateId})
|
||||
&& $infos->{$dateId}!='0000-00-00') {
|
||||
|
||||
if ( $dateId == 'DateMajID') {
|
||||
@ -1233,12 +1232,7 @@ class IdentiteController extends Zend_Controller_Action
|
||||
$this->_helper->layout()->disableLayout();
|
||||
$this->_helper->viewRenderer->setNoRender(true);
|
||||
|
||||
// --- En environement de preprod, on envoi sur le site
|
||||
if (APPLICATION_ENV == 'staging') {
|
||||
$this->redirect('http://avis-situation-sirene.insee.fr/');
|
||||
}
|
||||
// --- Téléchargement du fichier et distribution
|
||||
else {
|
||||
$avis = new Scores_Insee_AvisSituation($this->siret);
|
||||
if ( !$avis->erreur() ) {
|
||||
$avis->erreurcpt('raz');
|
||||
@ -1282,7 +1276,6 @@ class IdentiteController extends Zend_Controller_Action
|
||||
echo $avis->erreurmsg();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Téléchargement des cartes IRIS
|
||||
|
@ -123,10 +123,11 @@ class Scores_Session_Entreprise
|
||||
|
||||
protected function getInfoEntrep($siret, $id = 0)
|
||||
{
|
||||
$this->logger->info('getInfoEntrep');
|
||||
require_once 'Scores/WsScores.php';
|
||||
$ws = new WsScores();
|
||||
$etab = $ws->getIdentiteLight($siret, $id);
|
||||
$ws = new Scores_Ws_Client('interne', '0.6');
|
||||
$params = new stdClass();
|
||||
$params->siret = $this->siret;
|
||||
$params->id = $this->id;
|
||||
$etab= $ws->getIdentiteLight($params);
|
||||
$this->setSession($etab);
|
||||
}
|
||||
|
||||
|
@ -147,7 +147,7 @@ class Scores_Ws_Client extends Zend_Soap_Client
|
||||
}
|
||||
|
||||
$methodConfig = $this->config[$name];
|
||||
$this->logger->info(print_r($methodConfig,1));
|
||||
|
||||
// --- Cache
|
||||
$cacheEnable = false;
|
||||
if ( array_key_exists('cache', $methodConfig) ) {
|
||||
@ -172,17 +172,22 @@ class Scores_Ws_Client extends Zend_Soap_Client
|
||||
|
||||
// --- Debug
|
||||
if ( array_key_exists('debug', $methodConfig) ) {
|
||||
$this->logger->info(__CLASS__.'->'.$name);
|
||||
$this->logger->info(print_r($arguments,1));
|
||||
$this->logger->info(__CLASS__.'->'.$name.':'.print_r($arguments,1));
|
||||
}
|
||||
|
||||
try {
|
||||
|
||||
$response = parent::__call($name, $arguments);
|
||||
|
||||
// --- Response vide
|
||||
if ($response == '') {
|
||||
$this->logger->error(__CLASS__.'->'.$name.':'.print_r($arguments, 1));
|
||||
return false;
|
||||
}
|
||||
|
||||
// --- Debug
|
||||
if ( array_key_exists('debug', $methodConfig) ) {
|
||||
$this->logger->info(print_r($response,1));
|
||||
$this->logger->info(__CLASS__.'->'.$name.':'.print_r($response,1));
|
||||
}
|
||||
|
||||
// --- Cache
|
||||
@ -196,13 +201,13 @@ class Scores_Ws_Client extends Zend_Soap_Client
|
||||
|
||||
// --- Debug
|
||||
if ( array_key_exists('debug', $methodConfig) ) {
|
||||
$this->logger->info($fault->faultcode.' - '.$fault->faultstring);
|
||||
$this->logger->error(__CLASS__.'->'.$name.':'.$fault->faultcode.' - '.$fault->faultstring);
|
||||
}
|
||||
|
||||
// --- Gestion des SOAP fault
|
||||
if ( array_key_exists('errorMsg', $methodConfig) ) {
|
||||
if ( in_array($fault->faultcode, $methodConfig['errorMsg']) ) {
|
||||
$this->logger->info("Exception as error message : ".$fault->faultcode);
|
||||
$this->logger->info(__CLASS__.'->'.$name.':'." Exception as error message : ".$fault->faultcode);
|
||||
throw new Exception($fault->faultstring);
|
||||
}
|
||||
}
|
||||
|
@ -1,6 +1,10 @@
|
||||
<?php
|
||||
return array(
|
||||
'0.6' => array(
|
||||
'getIdentiteLight' => array(
|
||||
'debug' => true,
|
||||
'log' => 'mail',
|
||||
),
|
||||
'getRncsEven' => array(
|
||||
'debug' => true,
|
||||
'log' => 'mail',
|
||||
|
Loading…
Reference in New Issue
Block a user