public function sync(BannedEmailSyncListener $listener)
    {
        try {
            $this->bannedEmailsService->saveToFile();

            return $listener->syncBannedEmailSuccess(trans('antares/ban_management::response.bannedemails.sync.success'));
        } catch (Exception $e) {
            Log::critical($e->getMessage());
            return $listener->syncBannedEmailFailed($e->getMessage());
        }
    }
public function sync(BannedEmailSyncListener $listener)
    {
        try {
            $this->bannedEmailsService->saveToFile();

            return $listener->syncBannedEmailSuccess(trans('antares/ban_management::response.bannedemails.sync.success'));
        } catch (Exception $e) {
            Log::critical($e->getMessage());
            return $listener->syncBannedEmailFailed($e->getMessage());
        }
    }
public function sync ( BannedEmailSyncListener $ listener ) { try { $ this -> bannedEmailsService -> saveToFile ( ) ; return $ listener -> syncBannedEmailSuccess ( trans ( 'antares/ban_management::response.bannedemails.sync.success' ) ) ; } catch ( Exception $ e ) { Log :: critical ( $ e -> getMessage ( ) ) ; return $ listener -> syncBannedEmailFailed ( $ e -> getMessage ( ) ) ; } }
Starts synchronization for banned emails.

@param BannedEmailSyncListener $listener
@return mixed
Starts synchronization for banned emails .