mirror of
https://gitlab.com/signalytic/client-external/streamline/streamline-emr.git
synced 2026-09-11 18:51:31 +00:00
45 lines
1.0 KiB
PHP
Executable File
45 lines
1.0 KiB
PHP
Executable File
<?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);
|
|
}
|
|
|
|
}
|