| 
									
										
										
										
											2015-07-13 03:01:42 +08:00
										 |  |  | <?php | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2015-09-11 02:31:09 +08:00
										 |  |  | namespace BookStack\Console; | 
					
						
							| 
									
										
										
										
											2015-07-13 03:01:42 +08:00
										 |  |  | 
 | 
					
						
							|  |  |  | use Illuminate\Console\Scheduling\Schedule; | 
					
						
							|  |  |  | use Illuminate\Foundation\Console\Kernel as ConsoleKernel; | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | class Kernel extends ConsoleKernel | 
					
						
							|  |  |  | { | 
					
						
							|  |  |  |     /** | 
					
						
							|  |  |  |      * The Artisan commands provided by your application. | 
					
						
							|  |  |  |      * | 
					
						
							|  |  |  |      * @var array | 
					
						
							|  |  |  |      */ | 
					
						
							|  |  |  |     protected $commands = [ | 
					
						
							| 
									
										
										
										
											2015-09-11 02:31:09 +08:00
										 |  |  |         \BookStack\Console\Commands\Inspire::class, | 
					
						
							| 
									
										
										
										
											2015-07-13 03:01:42 +08:00
										 |  |  |     ]; | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  |     /** | 
					
						
							|  |  |  |      * Define the application's command schedule. | 
					
						
							|  |  |  |      * | 
					
						
							|  |  |  |      * @param  \Illuminate\Console\Scheduling\Schedule  $schedule | 
					
						
							|  |  |  |      * @return void | 
					
						
							|  |  |  |      */ | 
					
						
							|  |  |  |     protected function schedule(Schedule $schedule) | 
					
						
							|  |  |  |     { | 
					
						
							|  |  |  |         $schedule->command('inspire') | 
					
						
							|  |  |  |                  ->hourly(); | 
					
						
							|  |  |  |     } | 
					
						
							|  |  |  | } |