Feature #1514
Add Event-Dispatcher
| Status: | Resolved | Start date: | 2008-09-15 | |
|---|---|---|---|---|
| Priority: | Could have | Due date: | ||
| Assigned To: | Bastian Waidelich | % Done: | 100% |
|
| Category: | SignalSlot | |||
| Target version: | - | |||
| PHP Version: | Complexity: | |||
| Has patch: |
Description
Implement Event-Dispatcher pattern in order to get some kind of hook-mechanism into FLOW3.
Associated revisions
- FLOW3: (Event) Implemented simple Event-Dispatcher. Resolves #1514.
- Usage:
$dispatcher->addEventListener(
MyEvent::EVENT_TYPE,
function() { print 'MyEvent dispatched!'; }
);
...
$dispatcher->dispatchEvent(new MyEvent(MyEvent::EVENT_TYPE));
History
#1 Updated by Bastian Waidelich almost 7 years ago
- Status changed from New to Resolved
- % Done changed from 0 to 100
Applied in changeset r1222.