Extended aggregate components for EventSauce
composer require andreo/eventsauce-aggregate
use EventSauce\EventSourcing\AggregateRoot;
use Andreo\EventSauce\Aggregate\Reconstruction\EventSourcingHandler;
use Andreo\EventSauce\Aggregate\Reconstruction\AggregateRootBehaviourWithAppliesEventsByAttribute;
final class FooAggregate implements AggregateRoot
{
use AggregateRootBehaviourWithAppliesEventsByAttribute;
#[EventSourcingHandler]
public function onFooInitiated(FooInitiated $event): void
{
}
}