class FloodController

Methods

subscribe(Dispatcher $events)

No description

whenPostWillBeSaved(PostWillBeSaved $event)

No description

assertNotFlooding(User $actor)

No description

bool
isFlooding(User $actor)

No description

Details

subscribe(Dispatcher $events)

Parameters

Dispatcher $events

whenDiscussionWillBeSaved(DiscussionWillBeSaved $event)

Parameters

DiscussionWillBeSaved $event

whenPostWillBeSaved(PostWillBeSaved $event)

Parameters

PostWillBeSaved $event

protected assertNotFlooding(User $actor)

Parameters

User $actor

Exceptions

FloodingException

protected bool isFlooding(User $actor)

Parameters

User $actor

Return Value

bool