. // }}} /** * Common utility functions * * @package GNUsocial * @category Util * * @author Hugo Sales * @copyright 2020 Free Software Foundation, Inc http://www.fsf.org * @license https://www.gnu.org/licenses/agpl.html GNU AGPL v3 or later */ namespace App\Util; use App\Core\DB; abstract class Common { /** * Access sysadmin's configuration preferences for GNU social * * @param string $section * @param string $field * * @return mixed */ public static function config(string $section, string $setting) { return DB::find('\App\Entity\Config', [$section, $setting]); } }