Skip to content

Instantly share code, notes, and snippets.


Stefan A acid24

View GitHub Profile
acid24 / publisher
Last active Jun 24, 2018
RabbitMQ publish confirms mandatory
View publisher
use PhpAmqpLib\Message\AMQPMessage;
define('ROOT_DIR', realpath(dirname(dirname(__DIR__))));
define('HOST', 'rabbitmq');
define('PORT', 5672);
define('USER', 'guest');
define('PASSWD', 'guest');
View auth
class AuthHelper extends Zend_Controller_Action_Helper_Abstract {
// controller action helpers can be hooked into the dispatch process which is what we need here
public function preDispatch()
$controller = this->getActionController();
if ($controller instanceof NewAuthenticable) {