Project

General

Profile

Actions

Bug #65244

closed

Allow closures / anonymous functions for file filters in LocalDriver

Added by Christoph Dörfel about 9 years ago. Updated over 5 years ago.

Status:
Closed
Priority:
Must have
Assignee:
-
Category:
File Abstraction Layer (FAL)
Target version:
-
Start date:
2015-02-24
Due date:
% Done:

100%

Estimated time:
TYPO3 Version:
7
PHP Version:
Tags:
Complexity:
no-brainer
Is Regression:
No
Sprint Focus:

Description

Filters for directory items are called through call_user_func($filter, $args...).
As of now this doesn't work with closures, since $filter is checked beforehand with is_array() instead of is_callable(), which would be the correct way of checking for a callable array.

Actions

Also available in: Atom PDF