laravel/framework — pull request #2267 by JosephSilber (2013-09-12 04:31:21+00:00)
Title: Add support for release and attempts on pushed iron jobs

Since the Iron queue does not allow pushed messages to be `release`d back onto the queue, we can instead create a new job on the queue. We can also inject the attempt count into the payload, so that we can later return that from the `attempts` method.

---

In its current form, the Iron message class always uses the default queue name when creating pushed jobs. This might cause some problems when trying to release a message back onto the queue, since it might go onto a different queue than the one it came from.

This PR also aims to fix that, by using the `Iron-Subscriber-Message-Url` header sent with the pushed request. Here's a chat I had with the Iron support team: http://i.imgur.com/5y01EVI.png

---

I split this PR into 4 separate commits, so that it's pretty clear what has been changed. I hope it's clear enough.