mirror of
https://gitlab.com/signalytic/client-external/streamline/streamline-emr.git
synced 2026-09-12 11:11:31 +00:00
updated streamline-setup v2
This commit is contained in:
@@ -0,0 +1,44 @@
|
||||
<?php
|
||||
|
||||
namespace Streamline\Providers;
|
||||
|
||||
use Illuminate\Database\Eloquent\Relations\Relation;
|
||||
use Illuminate\Pagination\Paginator;
|
||||
use Illuminate\Support\Facades\Schema;
|
||||
use Illuminate\Support\ServiceProvider;
|
||||
use Streamline\Models\Triage;
|
||||
use Streamline\Observers\TriageObserver;
|
||||
use Streamline\Services\StreamlineSetupService;
|
||||
use Streamline\Services\StreamlineSetupServiceInterface;
|
||||
|
||||
class AppServiceProvider extends ServiceProvider {
|
||||
|
||||
/**
|
||||
* Bootstrap any application services.
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
public function boot() {
|
||||
Schema::defaultStringLength(191);
|
||||
|
||||
Paginator::useBootstrapThree();
|
||||
|
||||
// for old DBs with Streamline\User
|
||||
Relation::morphMap([
|
||||
'Streamline\User' => 'Streamline\Models\User',
|
||||
]);
|
||||
|
||||
Triage::observe(TriageObserver::class);
|
||||
}
|
||||
|
||||
/**
|
||||
* Register any application services.
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
public function register(): void
|
||||
{
|
||||
$this->app->bind(StreamlineSetupServiceInterface::class, StreamlineSetupService::class);
|
||||
}
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user