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

Update message producer to support PSB v4 #1

Merged
merged 9 commits into from Sep 1, 2015

Conversation

codeliner
Copy link
Member

  • Package + classes are renamed to *message producer
  • Classes are adjusted to use new prooph/common message handling
  • Coveralls added
  • Dependencies updated
  • php-cs-fixer added

@codeliner
Copy link
Member Author

ping @prolic

- Package + classes are renamed to *message producer
- Classes are adjusted to use new prooph/common message handling
- Coveralls added
- Dependencies updated
- php-cs-fixer added
@@ -54,12 +54,14 @@ public function map(Envelope $envelope)
{
$message = $envelope->getMessage();

if (! $message instanceof BernardMessage) throw new \InvalidArgumentException(sprintf(
if (! $message instanceof BernardMessage) {
throw new \InvalidArgumentException(sprintf(
Copy link
Member

Choose a reason for hiding this comment

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

Let's use custom exceptions (Prooph\ServiceBus\Message\Bernard\Exception\InvalidArgumentException).

@codeliner
Copy link
Member Author

@prolic the producer lib now throws Prooph\ServiceBus\Excpetions. Do you think that this is enough?

*/
public function useQueue($name)
{
if (! is_string($name)) {
Copy link
Member

Choose a reason for hiding this comment

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

Assert minLength, or does bernard allow empty strings as queue name?

@codeliner
Copy link
Member Author

@prolic Assertion for non empty queue name is added + 100% test coverage 😄

prolic added a commit that referenced this pull request Sep 1, 2015
Update message producer to support PSB v4
@prolic prolic merged commit 6533076 into prooph:master Sep 1, 2015
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.

None yet

2 participants