-
Notifications
You must be signed in to change notification settings - Fork 442
[wip] Azure support #645
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
[wip] Azure support #645
Conversation
@sylfabre there are some conflicts. could you fix them, please? |
@makasim my colleague @PaulRouss3l is working on it now. He'll do it tomorrow. |
add a transport doc just like https://github.com/php-enqueue/enqueue-dev/blob/master/docs/transport/redis.md |
It needs more tests, at least spec tests should be implemented |
{ | ||
InvalidMessageException::assertMessageInstanceOf($message, AzureStorageMessage::class); | ||
|
||
if(false === $requeue) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
it should publish a message on requeue == true
*/ | ||
public function setDeliveryDelay(int $deliveryDelay = null): Producer | ||
{ | ||
throw new DeliveryDelayNotSupportedException(); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Do not throw exception if null is passed
*/ | ||
public function setPriority(int $priority = null): Producer | ||
{ | ||
throw new PriorityNotSupportedException(); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Do not throw exception if null is passed
Code styles should be fixed, you could run php-cs-fixer to auto-fix them. |
root phpunit.xml.dist file should be updated too, so tests are executed by travis. |
I'm currently implementing the tests, and will update with the comment you made above =) |
still wip |
@@ -91,8 +91,7 @@ public function reject(Message $message, bool $requeue = false): void | |||
InvalidMessageException::assertMessageInstanceOf($message, AzureStorageMessage::class); | |||
|
|||
if (true === $requeue) { | |||
$factory = new AzureStorageConnectionFactory($this->client); | |||
$context = $factory->getContext(); | |||
$context = new AzureStorageContext($this->client); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think context should be passed in consumer constructor. The context should have a getClient public method
That was decided to release it as a stand-alone package https://github.com/assoconnect/enqueue-azure Closing PR. Thank you guys for your effort! |
No description provided.