Files
monica/app/Console/Kernel.php
T
Yamamoto KadirandRégis Freyd 79e5a37856 Add import:vcard command (#201)
This pull request adds a command to import vcards (similar to #60 ).

Usage: php artisan import:vcard {user: User's email address} {path: Path to a .vcf file} 

The command checks whether an email already exists, so duplicates shouldn't be an issue.
2017-06-11 22:20:33 -04:00

39 lines
1.1 KiB
PHP

<?php
namespace App\Console;
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 = [
// Commands\Inspire::class,
'App\Console\Commands\ResetTestDB',
'App\Console\Commands\SendNotifications',
'App\Console\Commands\CalculateStatistics',
//'App\Console\Commands\EncryptAllTheThings'
//'App\Console\Commands\MigrateActivities'
//'App\Console\Commands\MigratePeopleInformation',
//'App\Console\Commands\RemoveEncryption',
'App\Console\Commands\ImportVCards'
];
/**
* Define the application's command schedule.
*
* @param \Illuminate\Console\Scheduling\Schedule $schedule
* @return void
*/
protected function schedule(Schedule $schedule)
{
$schedule->command('monica:sendnotifications')->hourly();
$schedule->command('monica:calculatestatistics')->daily();
}
}