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 plugin registration #24

Merged
merged 2 commits into from
Jan 3, 2017
Merged

update plugin registration #24

merged 2 commits into from
Jan 3, 2017

Conversation

prolic
Copy link
Member

@prolic prolic commented Jan 3, 2017

@prolic prolic added this to the 3.0 Release milestone Jan 3, 2017
@prolic
Copy link
Member Author

prolic commented Jan 3, 2017

ping @codeliner

@prolic
Copy link
Member Author

prolic commented Jan 3, 2017

@oqq review?

@codeliner codeliner merged commit c53b223 into develop Jan 3, 2017
@prolic prolic deleted the plugin_registration branch January 3, 2017 17:20

public function attachToEventStore(ActionEventEmitterEventStore $eventStore): void
{
$this->eventStoreListeners[] = $eventStore->attach(
ActionEventEmitterEventStore::EVENT_APPEND_TO,
function (ActionEvent $event): void {
if (null === $this->currentCommand || ! $this->currentCommand instanceof Message) {
Copy link
Member

Choose a reason for hiding this comment

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

null is also NOT an instance of Message, so this is a doubled expression I guess. Not sure about performance here.

Copy link
Member Author

Choose a reason for hiding this comment

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

done, see #25

@@ -57,7 +62,7 @@ function (ActionEvent $event): void {
1000
);

$eventEmitter->attachListener(
$this->eventStoreListeners[] = $eventStore->attach(
ActionEventEmitterEventStore::EVENT_CREATE,
function (ActionEvent $event): void {
if (null === $this->currentCommand || ! $this->currentCommand instanceof Message) {
Copy link
Member

Choose a reason for hiding this comment

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

null is also NOT an instance of Message, so this is a doubled expression I guess. Not sure about performance here.

Copy link
Member Author

Choose a reason for hiding this comment

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

done, see #25

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.

3 participants