Files
streamline-emr/docker/streamline-src/app/Providers/AppServiceProvider.php
T
alec.turner 4a89356390 Import latest app updates from streamline
An updated set of source files and initialization was provided by streamline to
address issues observed during initial testing. These files have been updated in
order to generate a new set of app images.
2024-04-11 11:16:51 -07:00

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);
}
}