Project

General

Profile

Actions

Feature #59497

closed

Typed Slots

Added by Bernhard Kraft almost 10 years ago. Updated about 4 years ago.

Status:
Closed
Priority:
Should have
Assignee:
-
Category:
-
Target version:
-
Start date:
2014-06-11
Due date:
% Done:

0%

Estimated time:
PHP Version:
Tags:
Complexity:
Sprint Focus:
Needs Decision

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.

Actions

Also available in: Atom PDF