27 lines
494 B
PHP
27 lines
494 B
PHP
|
<?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;
|
||
|
}
|
||
|
}
|