2024-06-22 08:38:49 -04:00
|
|
|
<?php
|
|
|
|
|
|
|
|
namespace Pterodactyl\BlueprintFramework;
|
|
|
|
|
|
|
|
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();
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
};
|