]> BookStack Code Mirror - bookstack/blob - app/Console/Kernel.php
Continued with database work for permissions overhaul
[bookstack] / app / Console / Kernel.php
1 <?php
2
3 namespace BookStack\Console;
4
5 use Illuminate\Console\Scheduling\Schedule;
6 use Illuminate\Foundation\Console\Kernel as ConsoleKernel;
7
8 class Kernel extends ConsoleKernel
9 {
10     /**
11      * The Artisan commands provided by your application.
12      *
13      * @var array
14      */
15     protected $commands = [
16         \BookStack\Console\Commands\Inspire::class,
17         \BookStack\Console\Commands\ResetViews::class,
18         \BookStack\Console\Commands\RegeneratePermissions::class,
19     ];
20
21     /**
22      * Define the application's command schedule.
23      *
24      * @param  \Illuminate\Console\Scheduling\Schedule  $schedule
25      * @return void
26      */
27     protected function schedule(Schedule $schedule)
28     {
29         $schedule->command('inspire')
30                  ->hourly();
31     }
32 }