use FaizShukri\Quran\Repositories\Source\XMLRepository;
7
use Symfony\Component\Console\Command\Command;
8
use Symfony\Component\Console\Input\InputInterface;
9
use Symfony\Component\Console\Output\OutputInterface;
10
11
class TranslationListCommand extends Command
12
{
13
private $source;
14
15
public function __construct()
16
{
17
parent::__construct();
18
$this->source = new XMLRepository;
19
$this->source->setConfig(new Config);
20
}
21
22
protected function configure()
23
{
24
$this
25
->setName('translation:list')
26
->setDescription('View available translations')
27
;
28
}
29
30
protected function execute(InputInterface $input, OutputInterface $output)
31
{
32
$translations = $this->translations();
33
34
$output->writeln("<info>Available translations. (For usage, you can use short form, example: </info>en <info>instead of</info> en.sahih <info>)</info>");