translation/laravel

View on GitHub
src/Console/Commands/Init.php

Summary

Maintainability
A
0 mins
Test Coverage
A
100%
<?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);
    }
}