Skip to content

Instantly share code, notes, and snippets.

Stefan Alexandru acid24

Block or report user

Report or block acid24

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@acid24
acid24 / publisher
Last active Jun 24, 2018
RabbitMQ publish confirms mandatory
View publisher
<?php
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
<?php
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) {
$this->auth();
You can’t perform that action at this time.