fipamo/app/Services/SettingsService.php

27 lines
494 B
PHP
Raw Normal View History

<?php
namespace App\Services;
class SettingsService
{
protected $config;
protected $folks;
protected $tags;
public function __construct()
{
$this->config = json_decode(file_get_contents(env('SETTINGS_PATH')), true);
$this->folks = json_decode(file_get_contents(env('FOLKS_PATH')), true);
}
public function getGlobal()
{
return $this->config['global'];
}
public function getFolks()
{
return $this->folks;
}
}