mirror of
https://github.com/the-djmaze/snappymail.git
synced 2026-09-07 16:37:02 +03:00
Fix AddressBookProvider namespaces
This commit is contained in:
parent
9fc4d8f953
commit
8a3948777f
1 changed files with 4 additions and 4 deletions
|
|
@ -9,13 +9,13 @@ trait Contacts
|
||||||
*/
|
*/
|
||||||
protected $oAddressBookProvider = null;
|
protected $oAddressBookProvider = null;
|
||||||
|
|
||||||
public function AddressBookProvider(?Model\Account $oAccount = null): Providers\AddressBook
|
public function AddressBookProvider(?\RainLoop\Model\Account $oAccount = null): \RainLoop\Providers\AddressBook
|
||||||
{
|
{
|
||||||
if (null === $this->oAddressBookProvider) {
|
if (null === $this->oAddressBookProvider) {
|
||||||
$oDriver = null;
|
$oDriver = null;
|
||||||
try {
|
try {
|
||||||
// if ($this->oConfig->Get('contacts', 'enable', false)) {
|
// if ($this->oConfig->Get('contacts', 'enable', false)) {
|
||||||
if ($this->GetCapa(Capa::CONTACTS)) {
|
if ($this->GetCapa(\RainLoop\Capa::CONTACTS)) {
|
||||||
$oDriver = $this->fabrica('address-book', $oAccount);
|
$oDriver = $this->fabrica('address-book', $oAccount);
|
||||||
}
|
}
|
||||||
if ($oAccount && $oDriver) {
|
if ($oAccount && $oDriver) {
|
||||||
|
|
@ -25,9 +25,9 @@ trait Contacts
|
||||||
} catch (\Throwable $e) {
|
} catch (\Throwable $e) {
|
||||||
\SnappyMail\LOG::error('AddressBook', $e->getMessage()."\n".$e->getTraceAsString());
|
\SnappyMail\LOG::error('AddressBook', $e->getMessage()."\n".$e->getTraceAsString());
|
||||||
$oDriver = null;
|
$oDriver = null;
|
||||||
// $oDriver = new Providers\AddressBook\PdoAddressBook();
|
// $oDriver = new \RainLoop\Providers\AddressBook\PdoAddressBook();
|
||||||
}
|
}
|
||||||
$this->oAddressBookProvider = new Providers\AddressBook($oDriver);
|
$this->oAddressBookProvider = new \RainLoop\Providers\AddressBook($oDriver);
|
||||||
$this->oAddressBookProvider->SetLogger($this->oLogger);
|
$this->oAddressBookProvider->SetLogger($this->oLogger);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue