Bug #36784

t3lib_div::callUserFunction should support closures

Added by Tolleiv Nietsch about 1 year ago. Updated 10 months ago.

Status:Resolved Start date:2012-05-02
Priority:Should have Due date:
Assignee:Tolleiv Nietsch % Done:

100%

Category:-
Target version:6.0.0
TYPO3 Version:6.0 Complexity:
PHP Version:5.3
Votes: 0

Description

In some cases (e.g. within the TCA) it would ve very handy to use closures for the userFuncs.

Associated revisions

Revision e20b4af0
Added by Tolleiv Nietsch 10 months ago

[FEATURE] Add closure support for t3lib_div::callUserFunction

Adds the very handy option to use closures for the user functions.

Change-Id: Iae2278c4d5d988eb0e882f575d0f2d441c238213
Resolves: #36784
Releases: 6.0
Reviewed-on: http://review.typo3.org/10941
Reviewed-by: Jochen Rau
Tested-by: Jochen Rau
Reviewed-by: Helmut Hummel
Tested-by: Helmut Hummel

Revision d33ecc9d
Added by Tolleiv Nietsch 10 months ago

[FEATURE] Add closure support for t3lib_div::callUserFunction

Adds the very handy option to use closures for the user functions.

Change-Id: Iae2278c4d5d988eb0e882f575d0f2d441c238213
Resolves: #36784
Releases: 6.0
Reviewed-on: http://review.typo3.org/10941
Reviewed-by: Jochen Rau
Tested-by: Jochen Rau
Reviewed-by: Helmut Hummel
Tested-by: Helmut Hummel

Revision 679bd820
Added by Tolleiv Nietsch 9 months ago

[FEATURE] Add closure support for t3lib_div::callUserFunction

Adds the very handy option to use closures for the user functions.

Change-Id: Iae2278c4d5d988eb0e882f575d0f2d441c238213
Resolves: #36784
Releases: 6.0
Reviewed-on: http://review.typo3.org/10941
Reviewed-by: Jochen Rau
Tested-by: Jochen Rau
Reviewed-by: Helmut Hummel
Tested-by: Helmut Hummel

History

Updated by Tolleiv Nietsch about 1 year ago

  • Subject changed from t3lib_div::UserFuncs should support closures to t3lib_div::callUserFunction should support closures

Updated by Gerrit Code Review about 1 year ago

  • Status changed from Accepted to Under Review

Patch set 1 for branch master has been pushed to the review server.
It is available at http://review.typo3.org/10941

Updated by Gerrit Code Review about 1 year ago

Patch set 2 for branch master has been pushed to the review server.
It is available at http://review.typo3.org/10941

Updated by Tolleiv Nietsch about 1 year ago

Just realized that TCA is a bad example as this won't work when "extCache" is enabled - PHP won't be able to serialize the Closure and therefore break. But I think this is still a nice feature in some other places (which I can't think of at the moment).

Updated by Gerrit Code Review about 1 year ago

Patch set 3 for branch master has been pushed to the review server.
It is available at http://review.typo3.org/10941

Updated by Gerrit Code Review 10 months ago

Patch set 4 for branch master has been pushed to the review server.
It is available at http://review.typo3.org/10941

Updated by Tolleiv Nietsch 10 months ago

  • Status changed from Under Review to Resolved
  • % Done changed from 0 to 100

Also available in: Atom PDF