]> BookStack Code Mirror - bookstack/blobdiff - app/Console/Kernel.php
Opensearch: Fixed XML declaration when php short tags enabled
[bookstack] / app / Console / Kernel.php
index b725c9e217543f82f7bb3c46c80ac62e1e143517..f49be1d63b46ece971fac056af113d7ee639aa9c 100644 (file)
@@ -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');
     }
 }