X-Git-Url: http://source.bookstackapp.com/bookstack/blobdiff_plain/ada7c83e96f35a6b484869d6d27939555e1942f7..refs/pull/5280/head:/app/Console/Kernel.php diff --git a/app/Console/Kernel.php b/app/Console/Kernel.php index b725c9e21..f49be1d63 100644 --- a/app/Console/Kernel.php +++ b/app/Console/Kernel.php @@ -8,25 +8,24 @@ use Illuminate\Foundation\Console\Kernel as ConsoleKernel; 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'); } }