public static getCoreProviders ( ) : array | ||
Résultat | array | Class names of the providers declared directly under crud/providers folder |
public static function getCoreProviders()
{
$files = FileHelper::findFiles(__DIR__ . DIRECTORY_SEPARATOR . 'providers/core', ['only' => ['*.php'], 'recursive' => false]);
foreach ($files as $file) {
require_once $file;
}
return array_filter(get_declared_classes(), function ($a) {
return stripos($a, __NAMESPACE__ . '\\providers') !== false;
});
}