-
Notifications
You must be signed in to change notification settings - Fork 13
/
ObserverServiceProvider.php
54 lines (47 loc) · 1.61 KB
/
ObserverServiceProvider.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
<?php
namespace App\Providers;
use App\Models\Recipes\Tag;
use App\Models\Users\Author;
use App\Models\Ratings\Rating;
use App\Models\Recipes\Recipe;
use App\Models\Ingredients\Food;
use App\Models\Ingredients\Unit;
use App\Models\Recipes\Category;
use App\Models\Recipes\Cookbook;
use App\Models\Ingredients\Ingredient;
use App\Models\Ratings\RatingCriterion;
use Illuminate\Support\ServiceProvider;
use App\Models\Ingredients\IngredientGroup;
use App\Models\Ingredients\IngredientAttribute;
class ObserverServiceProvider extends ServiceProvider
{
/**
* Register services.
*
* @return void
*/
public function register()
{
//
}
/**
* Bootstrap services.
*
* @return void
*/
public function boot()
{
Food::observe('App\Observers\Ingredients\FoodObserver');
IngredientGroup::observe('App\Observers\Ingredients\IngredientGroupObserver');
IngredientAttribute::observe('App\Observers\Ingredients\IngredientAttributeObserver');
Ingredient::observe('App\Observers\Ingredients\IngredientObserver');
Unit::observe('App\Observers\Ingredients\UnitObserver');
Rating::observe('App\Observers\Ratings\RatingObserver');
RatingCriterion::observe('App\Observers\Ratings\RatingCriterionObserver');
Category::observe('App\Observers\Recipes\CategoryObserver');
Recipe::observe('App\Observers\Recipes\RecipeObserver');
Tag::observe('App\Observers\Recipes\TagObserver');
Cookbook::observe('App\Observers\Recipes\CookbookObserver');
Author::observe('App\Observers\Users\AuthorObserver');
}
}