public __construct ( array $paths ) | ||
$paths | array | List of approved paths |
public function __construct(array $paths)
{
$this->filterPaths = array_map(function ($realpath) {
return rtrim($realpath, DIRECTORY_SEPARATOR) . (is_dir($realpath) ? DIRECTORY_SEPARATOR : '');
}, array_filter(array_map('realpath', $paths)));
}