Skip to content

Conversation

@UFOMelkor
Copy link
Member

@UFOMelkor UFOMelkor commented May 2, 2018

Auto-detection will be possible with handlers that have a __invoke method.

See #63 (comment)

Fixes #72

@coveralls
Copy link

coveralls commented May 2, 2018

Pull Request Test Coverage Report for Build 229

  • 4 of 4 (100.0%) changed or added relevant lines in 1 file are covered.
  • No unchanged relevant lines lost coverage.
  • Overall coverage increased (+0.1%) to 85.138%

Totals Coverage Status
Change from base Build 224: 0.1%
Covered Lines: 401
Relevant Lines: 471

💛 - Coveralls

@UFOMelkor UFOMelkor force-pushed the feature/detect-invokables-with-popos branch from 3c5571f to f15cf64 Compare May 2, 2018 06:47
@UFOMelkor UFOMelkor changed the title [WIP] Verify that popo command handlers cannot be automatically detected Detect message handlers with popo-messages May 2, 2018
doc/routing.md Outdated

> **Important:** Automatic message detection can only detect handlers where either
> the message implements `Prooph\Common\Messaging\HasMessageName` or the
> name of the message is `__invoke`. In both cases the object must be a non abstract class.
Copy link
Member

Choose a reason for hiding this comment

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

s/message/method ?

@UFOMelkor
Copy link
Member Author

UFOMelkor commented May 3, 2018

Good catch! I'll fix tomorrow 👍

@codeliner codeliner merged commit 901ef47 into prooph:master Jul 15, 2018
@codeliner
Copy link
Member

sorry, missed the update. Finally merged ;)

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