server/src/app/Console/Kernel.php
changeset 2 00e2916104fe
parent 1 01a844d292ac
child 24 de47e8f66e8b
equal deleted inserted replaced
1:01a844d292ac 2:00e2916104fe
     1 <?php namespace App\Console;
     1 <?php
       
     2 
       
     3 namespace CorpusParole\Console;
     2 
     4 
     3 use Illuminate\Console\Scheduling\Schedule;
     5 use Illuminate\Console\Scheduling\Schedule;
     4 use Illuminate\Foundation\Console\Kernel as ConsoleKernel;
     6 use Illuminate\Foundation\Console\Kernel as ConsoleKernel;
     5 
     7 
     6 class Kernel extends ConsoleKernel {
     8 class Kernel extends ConsoleKernel
       
     9 {
       
    10     /**
       
    11      * The Artisan commands provided by your application.
       
    12      *
       
    13      * @var array
       
    14      */
       
    15     protected $commands = [
       
    16         'CorpusParole\Console\Commands\Inspire',
       
    17         'CorpusParole\Console\Commands\ImportCocoonRDF',
       
    18     ];
     7 
    19 
     8 	/**
    20     /**
     9 	 * The Artisan commands provided by your application.
    21      * Define the application's command schedule.
    10 	 *
    22      *
    11 	 * @var array
    23      * @param \Illuminate\Console\Scheduling\Schedule $schedule
    12 	 */
    24      */
    13 	protected $commands = [
    25     protected function schedule(Schedule $schedule)
    14 		'App\Console\Commands\Inspire',
    26     {
    15 		'App\Console\Commands\ImportCocoonRDF',
    27         $schedule->command('inspire')
    16 	];
    28                  ->hourly();
    17 
    29     }
    18 	/**
       
    19 	 * Define the application's command schedule.
       
    20 	 *
       
    21 	 * @param  \Illuminate\Console\Scheduling\Schedule  $schedule
       
    22 	 * @return void
       
    23 	 */
       
    24 	protected function schedule(Schedule $schedule)
       
    25 	{
       
    26 		$schedule->command('inspire')
       
    27 				 ->hourly();
       
    28 	}
       
    29 
       
    30 }
    30 }