src/Console/Commands/Init.php
<?php
namespace Tio\Laravel\Console\Commands;
use Illuminate\Console\Command;
use Tio\Laravel\Service\Init as InitService;
class Init extends Command
{
protected $signature = 'translation:init';
protected $description = 'Initialize Translation.io with existing keys.';
/**
* @var InitService
*/
private $service;
public function __construct(InitService $service)
{
$this->service = $service;
parent::__construct();
}
public function handle()
{
$this->info('Init started');
$this->service->call($this);
}
}