addHook('main.fabrica', 'MainFabrica'); } public function Supported() : string { return ''; } /** * @param mixed $mResult */ public function MainFabrica(string $sName, &$mResult) { if ('suggestions' === $sName) { if (!\is_array($mResult)) { $mResult = array(); } // $sFolder = \trim($this->Config()->Get('plugin', 'mailbox', 'INBOX')); // if ($sFolder) { include_once __DIR__ . '/ImapContactsSuggestions.php'; $mResult[] = new ImapContactsSuggestions(); // } } } }