30 lines
No EOL
468 B
PHP
Executable file
30 lines
No EOL
468 B
PHP
Executable file
<?php
|
|
|
|
namespace App\Providers;
|
|
|
|
use App\Services\Yard;
|
|
use Illuminate\Support\ServiceProvider;
|
|
|
|
class YardServiceProvider extends ServiceProvider
|
|
{
|
|
public function boot()
|
|
{
|
|
//
|
|
}
|
|
|
|
/**
|
|
* Register the application services.
|
|
*
|
|
* @return void
|
|
*/
|
|
|
|
public function register()
|
|
{
|
|
$this->app->singleton(Yard::class, function ($app) {
|
|
return new Yard($app['session'], $app['events']);
|
|
});
|
|
|
|
|
|
}
|
|
|
|
} |