src/Services/SettingsManager.php line 8
<?phpnamespace App\Services;use Symfony\Contracts\Translation\TranslatorInterface;class SettingsManager {private $translator;public function __construct(TranslatorInterface $ti){$this->translator = $ti;}/*** Retrieves a configs from database using its key* @param string $clave The key of the configs* @return mixed Tshe configs object, or null if the key doesn't exists*/public function getValue($clave, $locale = null){if ($locale)return $this->translator->trans($clave,[],'settings',$locale);return $this->translator->trans($clave,[],'settings');}}