You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
32 lines
548 B
32 lines
548 B
5 years ago
|
<?php
|
||
|
|
||
|
namespace App\CorePackages\VirtualActivity;
|
||
|
|
||
|
use Illuminate\Support\ServiceProvider;
|
||
|
use App\Business;
|
||
|
|
||
|
class VirtualActivityServiceProvider extends ServiceProvider
|
||
|
{
|
||
|
|
||
|
protected $defer = true;
|
||
|
|
||
|
|
||
|
public function register()
|
||
|
{
|
||
|
$this->app->singleton(Business::class, function () {
|
||
|
return VirtualActivityFinder::fetch();
|
||
|
});
|
||
|
}
|
||
|
|
||
|
|
||
|
/**
|
||
|
* Get the services provided by the provider.
|
||
|
*
|
||
|
* @return array
|
||
|
*/
|
||
|
public function provides()
|
||
|
{
|
||
|
return [Business::class];
|
||
|
}
|
||
|
}
|