openstamanager/app/LaravelGettext/Commands/BaseCommand.php

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();
}
}