Issue Feature Closed

#59497Typed Slots

Bernhard Kraft 06/11/14, 17:17 updated 03/24/20, 17:52

Description

At some time the TYPO3 project introduced interfaces for hooks. This seemed as a good idea so a developer does have a template when creating a hook class. Since the signal/slot concept was introduced the concept of interfaces was somehow put in the background.

Proposal: Have to kinds of slot/signals. We could denote the first current one “flexible slots” and the new one “typed slots”. Such a new typed slot would need to implement some specific interface as required by the dispatch call. Altough this takes away the possibility to connect a signal to “any” method it rather mimics the old hooks. At least those having an interface.

Reviews 0

No change resolves or names this issue in its commit message, and no comment links one.