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

Add dsn_to_connection_factory and dsn_to_context functions. #84

Merged
merged 1 commit into from
May 15, 2017

Conversation

makasim
Copy link
Member

@makasim makasim commented May 13, 2017

<?php
namespace Enqueue;

/**
 * amqp://
 * amqp://user:pass@example.com:10000/%2f
 * file://foo/bar/baz
 * null://
 *
 * and others redis, amazon sqs, stomp, mysql+doctrine etc
 */
$c = dsn_to_context('amqp://');

// These functions are  not a part of this PR but could be added later. Just an example of how dsn_to_context could be used. 
send_to_queue($c, 'a_queue_name', 'Hello world');

$message = receive($c);

@makasim makasim requested a review from ASKozienko May 13, 2017 20:02
@makasim makasim merged commit 5db9d31 into master May 15, 2017
@makasim makasim deleted the functions branch May 15, 2017 06:59
ASKozienko pushed a commit that referenced this pull request Nov 2, 2018
Add dsn_to_connection_factory and dsn_to_context functions.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant