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;
|
|
|
|
|
2016-07-03 18:11:58 +02:00
|
|
|
/**
|
|
|
|
* Class GenerateResources
|
|
|
|
*/
|
2016-02-22 09:30:14 +01:00
|
|
|
class GenerateResources extends Command
|
|
|
|
{
|
2016-07-03 18:11:58 +02:00
|
|
|
/**
|
|
|
|
* @var string
|
|
|
|
*/
|
2016-02-22 09:30:14 +01:00
|
|
|
protected $name = 'ninja:generate-resources';
|
2016-07-03 18:11:58 +02:00
|
|
|
/**
|
|
|
|
* @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";
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2016-07-03 18:11:58 +02:00
|
|
|
/**
|
|
|
|
* @return array
|
|
|
|
*/
|
2016-02-22 09:30:14 +01:00
|
|
|
protected function getArguments()
|
|
|
|
{
|
2016-07-03 18:11:58 +02:00
|
|
|
return [];
|
2016-02-22 09:30:14 +01:00
|
|
|
}
|
|
|
|
|
2016-07-03 18:11:58 +02:00
|
|
|
/**
|
|
|
|
* @return array
|
|
|
|
*/
|
2016-02-22 09:30:14 +01:00
|
|
|
protected function getOptions()
|
|
|
|
{
|
2016-07-03 18:11:58 +02:00
|
|
|
return [];
|
2016-02-22 09:30:14 +01:00
|
|
|
}
|
|
|
|
}
|