class Kernel extends ConsoleKernel
{
/**
- * The Artisan commands provided by your application.
+ * Define the application's command schedule.
+ *
+ * @param \Illuminate\Console\Scheduling\Schedule $schedule
*
- * @var array
+ * @return void
*/
- protected $commands = [
- \BookStack\Console\Commands\Inspire::class,
- \BookStack\Console\Commands\ResetViews::class,
- \BookStack\Console\Commands\RegeneratePermissions::class,
- ];
+ protected function schedule(Schedule $schedule)
+ {
+ //
+ }
/**
- * Define the application's command schedule.
+ * Register the commands for the application.
*
- * @param \Illuminate\Console\Scheduling\Schedule $schedule
* @return void
*/
- protected function schedule(Schedule $schedule)
+ protected function commands()
{
- $schedule->command('inspire')
- ->hourly();
+ $this->load(__DIR__ . '/Commands');
}
}