Frontend\Modules\Mailmotor\Command\UnsubscriptionHandler::handle PHP Method

handle() public method

Handle
public handle ( Unsubscription $unsubscription )
$unsubscription Unsubscription
    public function handle(Unsubscription $unsubscription)
    {
        // Unsubscribing the user, will dispatch an event
        $this->subscriber->unsubscribe($unsubscription->email);
    }
UnsubscriptionHandler