peliprint/app/BlueprintFramework/GetExtensionSchedules.php
prplwtf 9d6b432f99 feat core: Make schedules (and artisan) work WOOOOOOO
Co-authored-by: Victor B. <contact@itsvic.dev>
2024-06-22 16:17:45 +02:00

16 lines
378 B
PHP

<?php
namespace Pterodactyl\BlueprintFramework;
use Illuminate\Console\Scheduling\Schedule;
use File;
class GetExtensionSchedules {
public static function schedules(Schedule $schedule) {
foreach (File::allFiles(app_path('BlueprintFramework/Schedules/')) as $file) {
if ($file->getExtension() == 'php') {
require $file->getPathname();
}
}
}
};