Skip to content

Instantly share code, notes, and snippets.

Avatar

Zdeno Kuzmany kuzmany

View GitHub Profile
View ExampleSmsCallback.php
<?php
class ExampleSmsCallback implements CallbackInterface
{
/**
* @return string
*/
public function getTransportName()
{
View dispatchCallbackEvents.php
<?php
// Delivered
$deliveryEvent = new DeliveryEvent();
$deliveryEvent->setContact($contact);
$deliveryEvent->setTrackingHash($trackingHash);
$deliveryEvent->setIsDelivered(true);
$this->callbackHelper->dispatchDeliveryEvent(
$deliveryEvent
);
View ExampleTransport.php
<?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
*/
View security_local.php
<?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
*/
@kuzmany
kuzmany / gist.sh
Last active Jan 30, 2019
Copy Mautic files to server
View gist.sh
MTC=2.15.0;
URL=https://github.com/mautic/mautic/releases/download/${MTC}/${MTC}.zip;
wget "${URL}";
unzip -o "${MTC}.zip";
rm "${MTC}.zip";
@kuzmany
kuzmany / mautic-to-server
Last active May 2, 2017
Copy Mautic files to server using SSH in 5 seconds
View mautic-to-server
MTC=2.8.0;URL=https://s3.amazonaws.com/mautic/releases/${MTC}.zip;wget “${URL}”;unzip -o “${MTC}.zip”;rm “${MTC}.zip”;