2024-06-22 08:38:49 -04:00
|
|
|
<?php
|
|
|
|
|
2024-11-03 04:20:53 -05:00
|
|
|
namespace App\BlueprintFramework;
|
2024-06-22 08:38:49 -04:00
|
|
|
|
|
|
|
use Illuminate\Console\Scheduling\Schedule;
|
2024-06-22 10:17:45 -04:00
|
|
|
use File;
|
2024-06-22 08:38:49 -04:00
|
|
|
|
|
|
|
class GetExtensionSchedules {
|
|
|
|
public static function schedules(Schedule $schedule) {
|
2024-06-22 10:17:45 -04:00
|
|
|
foreach (File::allFiles(app_path('BlueprintFramework/Schedules/')) as $file) {
|
2024-06-22 08:38:49 -04:00
|
|
|
if ($file->getExtension() == 'php') {
|
|
|
|
require $file->getPathname();
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
};
|