OneBot: Leantime 改造版源码(BOM/Univer 表格/AI 接管/品牌替换等)
This commit is contained in:
30
app/Core/Configuration/EnvironmentServiceProvider.php
Normal file
30
app/Core/Configuration/EnvironmentServiceProvider.php
Normal file
@@ -0,0 +1,30 @@
|
||||
<?php
|
||||
|
||||
namespace Leantime\Core\Configuration;
|
||||
|
||||
use Illuminate\Support\ServiceProvider;
|
||||
use Leantime\Core\Events\DispatchesEvents;
|
||||
|
||||
class EnvironmentServiceProvider extends ServiceProvider
|
||||
{
|
||||
use DispatchesEvents;
|
||||
|
||||
/**
|
||||
* Register any application services.
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
public function register()
|
||||
{
|
||||
$this->app->singleton(
|
||||
\Leantime\Core\Configuration\AppSettings::class, \Leantime\Core\Configuration\AppSettings::class);
|
||||
$this->app->singleton(
|
||||
\Leantime\Core\Configuration\Environment::class, \Leantime\Core\Configuration\Environment::class);
|
||||
|
||||
}
|
||||
|
||||
public function boot()
|
||||
{
|
||||
self::dispatchEvent('config_initialized');
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user