Bug #36784
t3lib_div::callUserFunction should support closures
| 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
[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
[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
[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
Applied in changeset e20b4af0b66f6a6c2be8e0076feba3dfc67dff66.