koel/app/Providers/UtilServiceProvider.php

17 lines
309 B
PHP
Raw Normal View History

2015-12-17 17:56:48 +00:00
<?php
namespace App\Providers;
use App\Services\Util;
use Illuminate\Support\ServiceProvider;
class UtilServiceProvider extends ServiceProvider
{
2018-08-29 04:06:17 +00:00
public function register(): void
2015-12-17 17:56:48 +00:00
{
2018-08-29 04:06:17 +00:00
app()->singleton('Util', static function (): Util {
return app(Util::class);
2015-12-17 17:56:48 +00:00
});
}
}