1
0
mirror of https://github.com/invoiceninja/invoiceninja.git synced 2024-11-10 13:12:50 +01:00
invoiceninja/app/Console/Commands/GenerateResources.php

62 lines
1.0 KiB
PHP
Raw Normal View History

2016-07-21 14:35:23 +02:00
<?php namespace App\Console\Commands;
2016-02-22 09:30:14 +01:00
use File;
use Illuminate\Console\Command;
/**
* Class GenerateResources
*/
2016-02-22 09:30:14 +01:00
class GenerateResources extends Command
{
/**
* @var string
*/
2016-02-22 09:30:14 +01:00
protected $name = 'ninja:generate-resources';
/**
* @var string
*/
2016-02-22 09:30:14 +01:00
protected $description = 'Generate Resouces';
/**
* Create a new command instance.
*/
public function __construct()
{
parent::__construct();
}
/**
* Execute the command.
*
* @return void
*/
public function fire()
{
$texts = File::getRequire(base_path() . '/resources/lang/en/texts.php');
foreach ($texts as $key => $value) {
if (is_array($value)) {
echo $key;
} else {
echo "$key => $value\n";
}
}
}
/**
* @return array
*/
2016-02-22 09:30:14 +01:00
protected function getArguments()
{
return [];
2016-02-22 09:30:14 +01:00
}
/**
* @return array
*/
2016-02-22 09:30:14 +01:00
protected function getOptions()
{
return [];
2016-02-22 09:30:14 +01:00
}
}