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(); |
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'); |