Commit 4ffd2832 authored by Fredy Nurman Saleh's avatar Fredy Nurman Saleh

getCoreProviders should return core providers only.

parent b133708e
...@@ -22,10 +22,11 @@ trait ProviderTrait ...@@ -22,10 +22,11 @@ trait ProviderTrait
public static function getCoreProviders() public static function getCoreProviders()
{ {
$files = FileHelper::findFiles( $files = FileHelper::findFiles(
__DIR__.DIRECTORY_SEPARATOR.'providers', [ __DIR__.DIRECTORY_SEPARATOR.'providers/core',
[
'only' => ['*.php'], 'only' => ['*.php'],
'recursive' => true, 'recursive' => false,
] ]
); );
foreach ($files as $file) { foreach ($files as $file) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment