change Db object import function in Account module
This commit is contained in:
parent
92de95cf58
commit
9361b1ba9b
|
@ -34,7 +34,7 @@ class Account implements EventManagerAwareInterface
|
||||||
|
|
||||||
function __construct()
|
function __construct()
|
||||||
{
|
{
|
||||||
$this->db = new Db();
|
$this->db = Db::getInstance();
|
||||||
$this->config = Config::get();
|
$this->config = Config::get();
|
||||||
|
|
||||||
$Listener = new Listener();
|
$Listener = new Listener();
|
||||||
|
@ -174,7 +174,7 @@ class Account implements EventManagerAwareInterface
|
||||||
$auth = new AuthenticationService();
|
$auth = new AuthenticationService();
|
||||||
$auth->setStorage(new SessionStorage($this->config->session_namespace));
|
$auth->setStorage(new SessionStorage($this->config->session_namespace));
|
||||||
|
|
||||||
new Zend_Db($dbAdapter);
|
$dbAdapter = Zend_Db::getInstance();
|
||||||
|
|
||||||
$authAdapter = new \Zend\Authentication\Adapter\DbTable(
|
$authAdapter = new \Zend\Authentication\Adapter\DbTable(
|
||||||
$dbAdapter,
|
$dbAdapter,
|
||||||
|
|
|
@ -19,7 +19,7 @@ class LoginHandle
|
||||||
|
|
||||||
function __construct()
|
function __construct()
|
||||||
{
|
{
|
||||||
$this->db = new Db();
|
$this->db = Db::getInstance();
|
||||||
}
|
}
|
||||||
|
|
||||||
public function checkParam(EventInterface $e){
|
public function checkParam(EventInterface $e){
|
||||||
|
|
|
@ -21,7 +21,7 @@ class RegisterHandle
|
||||||
|
|
||||||
function __construct($db = NULL)
|
function __construct($db = NULL)
|
||||||
{
|
{
|
||||||
$this->db = new Db();
|
$this->db = Db::getInstance();
|
||||||
$this->config = Config::get();
|
$this->config = Config::get();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue