-
Notifications
You must be signed in to change notification settings - Fork 9
Add new #[SubscriptionId] attribute to replace SubscritionUtil trait
#791
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
base: 4.0.x
Are you sure you want to change the base?
Conversation
| { | ||
| public function __construct( | ||
| public readonly string $id, | ||
| public readonly string|null $id = null, |
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.
should be re-orderd i guess
| use Patchlevel\EventSourcing\Tests\Integration\Subscription\Events\ProfileCreated; | ||
|
|
||
| #[Subscriber('lookup', RunMode::FromBeginning)] | ||
| #[Subscriber(runMode: RunMode::FromBeginning)] |
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.
Don't know why this currently does not work as I'm using here a name parameter and id has now a default null value, php stillt trips here with ArgumentCountError: Patchlevel\EventSourcing\Attribute\Subscriber::__construct(): Argument #1 ($id) not passed
|
Hello 👋 here is the most recent benchmark result:
This comment gets update everytime a new commit comes in! |
a04cfbe to
d2bc4d5
Compare
#[SubscriptionName] attribute to replace SubscritionUtil trait#[SubscriptionId] attribute to replace SubscritionUtil trait
closes #743