Changeset View
Changeset View
Standalone View
Standalone View
src/app/Utils.php
Show First 20 Lines • Show All 499 Lines • ▼ Show 20 Lines | public static function uiEnv(): array | ||||
$opts = [ | $opts = [ | ||||
'app.name', | 'app.name', | ||||
'app.url', | 'app.url', | ||||
'app.domain', | 'app.domain', | ||||
'app.theme', | 'app.theme', | ||||
'app.webmail_url', | 'app.webmail_url', | ||||
'app.support_email', | 'app.support_email', | ||||
'app.company.copyright', | 'app.company.copyright', | ||||
'app.companion_download_link', | |||||
'mail.from.address' | 'mail.from.address' | ||||
]; | ]; | ||||
$env = \app('config')->getMany($opts); | $env = \app('config')->getMany($opts); | ||||
$env['countries'] = $countries ?: []; | $env['countries'] = $countries ?: []; | ||||
$env['view'] = 'root'; | $env['view'] = 'root'; | ||||
$env['jsapp'] = 'user.js'; | $env['jsapp'] = 'user.js'; | ||||
▲ Show 20 Lines • Show All 63 Lines • Show Last 20 Lines |