mirror of
https://github.com/devcode-it/openstamanager.git
synced 2025-06-05 22:09:38 +02:00
Correzioni minori e aggiornamento a Laravel 9
This commit is contained in:
42
app/LaravelGettext/Commands/BaseCommand.php
Normal file
42
app/LaravelGettext/Commands/BaseCommand.php
Normal file
@@ -0,0 +1,42 @@
|
||||
<?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();
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user