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:
53
app/LaravelGettext/Testing/Adapter/TestAdapter.php
Normal file
53
app/LaravelGettext/Testing/Adapter/TestAdapter.php
Normal file
@@ -0,0 +1,53 @@
|
||||
<?php
|
||||
/**
|
||||
* Created by PhpStorm.
|
||||
* User: aaflalo
|
||||
* Date: 18-02-23
|
||||
* Time: 11:50
|
||||
*/
|
||||
|
||||
namespace App\LaravelGettext\Testing\Adapter;
|
||||
|
||||
use App\LaravelGettext\Adapters\AdapterInterface;
|
||||
|
||||
class TestAdapter implements AdapterInterface
|
||||
{
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
private $locale = 'en_US';
|
||||
|
||||
/**
|
||||
* Get the current locale
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
public function getLocale()
|
||||
{
|
||||
return $this->locale;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets the locale on the adapter
|
||||
*
|
||||
* @param string $locale
|
||||
*
|
||||
* @return boolean
|
||||
*/
|
||||
public function setLocale($locale)
|
||||
{
|
||||
$this->locale = $locale;
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
/**
|
||||
* Get the application path
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
public function getApplicationPath()
|
||||
{
|
||||
return app_path();
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user