1
0
mirror of https://github.com/devcode-it/openstamanager.git synced 2025-02-19 21:10:49 +01:00
2022-03-02 12:19:52 +01:00

43 lines
828 B
PHP

<?php
namespace App\LaravelGettext\Commands;
use Illuminate\Console\Command;
use App\LaravelGettext\FileSystem;
use App\LaravelGettext\Config\ConfigManager;
class BaseCommand extends Command
{
/**
* Filesystem helper
*
* @var \App\LaravelGettext\FileSystem
*/
protected $fileSystem;
/**
* Package configuration data
*
* @var array
*/
protected $configuration;
/**
* Prepares the package environment for gettext commands
*
* @return void
*/
protected function prepare()
{
$configManager = ConfigManager::create();
$this->fileSystem = new FileSystem(
$configManager->get(),
app_path(),
storage_path()
);
$this->configuration = $configManager->get();
}
}