OneBot: Leantime 改造版源码(BOM/Univer 表格/AI 接管/品牌替换等)
This commit is contained in:
36
app/Views/Composers/PageBottom.php
Normal file
36
app/Views/Composers/PageBottom.php
Normal file
@@ -0,0 +1,36 @@
|
||||
<?php
|
||||
|
||||
namespace Leantime\Views\Composers;
|
||||
|
||||
use Leantime\Core\Configuration\AppSettings;
|
||||
use Leantime\Core\Configuration\Environment;
|
||||
use Leantime\Core\UI\Composer;
|
||||
|
||||
class PageBottom extends Composer
|
||||
{
|
||||
/**
|
||||
* @var array|string[]
|
||||
*/
|
||||
public static array $views = [
|
||||
'global::sections.pageBottom',
|
||||
];
|
||||
|
||||
protected AppSettings $settings;
|
||||
|
||||
protected Environment $environment;
|
||||
|
||||
public function init(AppSettings $settings, Environment $environment): void
|
||||
{
|
||||
$this->settings = $settings;
|
||||
$this->environment = $environment;
|
||||
}
|
||||
|
||||
public function with(): array
|
||||
{
|
||||
return [
|
||||
'version' => $this->settings->appVersion,
|
||||
'poorMansCron' => $this->environment->get('poorMansCron'),
|
||||
'loggedIn' => session()->exists('userdata'),
|
||||
];
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user