Migration de Facturation\Config à la gestion de conf intégrée à Garradin
This commit is contained in:
parent
4b3fa030d8
commit
33b9f05062
11 changed files with 91 additions and 82 deletions
|
|
@ -3,6 +3,7 @@
|
|||
namespace Garradin\Plugin\Facturation;
|
||||
|
||||
use Garradin\DB;
|
||||
use Garradin\Plugin;
|
||||
use Garradin\UserException;
|
||||
use Garradin\Utils;
|
||||
|
||||
|
|
@ -24,9 +25,9 @@ class Client
|
|||
|
||||
public function __construct()
|
||||
{
|
||||
$cfg = Config::getInstance();
|
||||
$this->config['unique_client_name'] = $cfg->get('unique_client_name') ?: false;
|
||||
$this->config['validate_cp'] = $cfg->get('validate_cp') ?: false;
|
||||
$plugin = new Plugin('facturation');
|
||||
$this->config['unique_client_name'] = $plugin->getConfig('unique_client_name') ?: false;
|
||||
$this->config['validate_cp'] = $plugin->getConfig('validate_cp') ?: false;
|
||||
}
|
||||
|
||||
public function _checkFields(&$data)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue