Files
opensem/app/Repositories/Config.php

20 lines
433 B
PHP

<?php
namespace App\Repositories;
use App\Repositories\Shop\Categories;
use App\Repositories\Shop\Contents;
class Config
{
public static function init()
{
return [
'auth' => Users::getUser() ? Users::getInfo() : false,
'categories' => Categories::getTreeVisibles(),
'footer' => Contents::getFooter(),
'extra_footer' => Contents::getExtraFooter(),
];
}
}