Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Adding filters #12

Merged
merged 4 commits into from
Jul 14, 2017
Merged

Adding filters #12

merged 4 commits into from
Jul 14, 2017

Conversation

oh4real
Copy link

@oh4real oh4real commented Jul 13, 2017

No description provided.

@@ -37,6 +54,10 @@ public function publishReply(Message $msg, MappableApi $api) {

$worker = new WorkerPublisher($this->connection, $queueName);

foreach ($filters as $filter) {
$worker->addFilter($filter);
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

should we not just add $filters as a constructor argument for WorkerPublisher?

Copy link
Author

@oh4real oh4real Jul 14, 2017

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Worker publisher has a crazy set of constructor args beyond these two.

public function __construct(
AMQPConnection $connection,
$queueName,
$passive=false,
$durable=true,
$exclusive=false,
$auto_delete=false,
$nowait=false,
$arguments=null)

@philipwhitt
Copy link
Member

looks good to me

@benschw benschw merged commit bddd771 into master Jul 14, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants