View ExampleSmsCallback.php
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
class ExampleSmsCallback implements CallbackInterface | |
{ | |
/** | |
* @return string | |
*/ | |
public function getTransportName() | |
{ |
View dispatchCallbackEvents.php
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
// Delivered | |
$deliveryEvent = new DeliveryEvent(); | |
$deliveryEvent->setContact($contact); | |
$deliveryEvent->setTrackingHash($trackingHash); | |
$deliveryEvent->setIsDelivered(true); | |
$this->callbackHelper->dispatchDeliveryEvent( | |
$deliveryEvent | |
); |
View ExampleTransport.php
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?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
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?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 | |
*/ |
View gist.sh
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
MTC=2.15.0; | |
URL=https://github.com/mautic/mautic/releases/download/${MTC}/${MTC}.zip; | |
wget "${URL}"; | |
unzip -o "${MTC}.zip"; | |
rm "${MTC}.zip"; |
View mautic-to-server
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
MTC=2.8.0;URL=https://s3.amazonaws.com/mautic/releases/${MTC}.zip;wget “${URL}”;unzip -o “${MTC}.zip”;rm “${MTC}.zip”; |