events-venues/app/Providers/JournalServiceProvider.php

26 lines
451 B
PHP

<?php
namespace App\Providers;
use App\Services\Journal\Journal;
use Illuminate\Support\ServiceProvider;
class JournalServiceProvider extends ServiceProvider
{
/**
* Register services.
*/
public function register(): void
{
$this->app->singleton('journal', Journal::class);
}
/**
* Bootstrap services.
*/
public function boot(): void
{
class_alias(Journal::class, 'Journal');
}
}