Remoe setLogger
This commit is contained in:
parent
3f0c0ee3d8
commit
b9b22b5419
@ -93,13 +93,7 @@ class Metier_Insee_MInsee extends Metier_Insee_Table
|
|||||||
{
|
{
|
||||||
$this->conn = Zend_Registry::get('doctrine');
|
$this->conn = Zend_Registry::get('doctrine');
|
||||||
$this->iBodacc = new Metier_Bodacc_MBodacc();
|
$this->iBodacc = new Metier_Bodacc_MBodacc();
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Set Logger from app registry
|
|
||||||
*/
|
|
||||||
public function setLogger()
|
|
||||||
{
|
|
||||||
if (Zend_Registry::isRegistered('logger')) {
|
if (Zend_Registry::isRegistered('logger')) {
|
||||||
$this->logger = Zend_Registry::get('logger');
|
$this->logger = Zend_Registry::get('logger');
|
||||||
}
|
}
|
||||||
|
@ -34,7 +34,6 @@ class Entreprise extends Scores_Ws_Server
|
|||||||
}
|
}
|
||||||
|
|
||||||
$iInsee = new Metier_Insee_MInsee();
|
$iInsee = new Metier_Insee_MInsee();
|
||||||
$iInsee->setLogger();
|
|
||||||
$entrep = $iInsee->getIdentiteEntreprise($siren, $nic, $id, $forceVerif);
|
$entrep = $iInsee->getIdentiteEntreprise($siren, $nic, $id, $forceVerif);
|
||||||
if (empty($entrep) || empty($entrep['id']) ) {
|
if (empty($entrep) || empty($entrep['id']) ) {
|
||||||
$this->sendError('1020');
|
$this->sendError('1020');
|
||||||
|
Loading…
Reference in New Issue
Block a user