Skip to content

Instantly share code, notes, and snippets.

View kuzmany's full-sized avatar

Zdeno Kuzmany kuzmany

View GitHub Profile
@kuzmany
kuzmany / mautic-to-server
Last active May 2, 2017 09:09
Copy Mautic files to server using SSH in 5 seconds
MTC=2.8.0;URL=https://s3.amazonaws.com/mautic/releases/${MTC}.zip;wget “${URL}”;unzip -o “${MTC}.zip”;rm “${MTC}.zip”;
@kuzmany
kuzmany / gist.sh
Last active January 30, 2019 15:37
Copy Mautic files to server
MTC=2.15.0;
URL=https://github.com/mautic/mautic/releases/download/${MTC}/${MTC}.zip;
wget "${URL}";
unzip -o "${MTC}.zip";
rm "${MTC}.zip";
<?php
/*
* @copyright 2019 Mautic Contributors. All rights reserved
* @author Mautic
*
* @link http://mautic.org
*
* @license GNU/GPLv3 http://www.gnu.org/licenses/gpl-3.0.html
*/
<?php
/*
* @copyright 2020 Mautic Contributors. All rights reserved
* @author Mautic
*
* @link http://mautic.org
*
* @license GNU/GPLv3 http://www.gnu.org/licenses/gpl-3.0.html
*/
<?php
// Delivered
$deliveryEvent = new DeliveryEvent();
$deliveryEvent->setContact($contact);
$deliveryEvent->setTrackingHash($trackingHash);
$deliveryEvent->setIsDelivered(true);
$this->callbackHelper->dispatchDeliveryEvent(
$deliveryEvent
);
<?php
class ExampleSmsCallback implements CallbackInterface
{
/**
* @return string
*/
public function getTransportName()
{