| 1 | <?php |
||
| 19 | class ObserverServiceProvider extends ServiceProvider |
||
| 20 | { |
||
| 21 | /** |
||
| 22 | * List of observers which belongs to models |
||
| 23 | * |
||
| 24 | * @var array |
||
| 25 | */ |
||
| 26 | protected $observers = [ |
||
| 27 | Image::class => ImageObserver::class, |
||
| 28 | Product::class => ProductObserver::class, |
||
| 29 | Category::class => CategoryObserver::class, |
||
| 30 | SubCategory::class => SubCategoryObserver::class, |
||
| 31 | Tag::class => TagObserver::class, |
||
| 32 | Vendor::class => VendorsObserver::class |
||
| 33 | ]; |
||
| 34 | |||
| 35 | /** |
||
| 36 | * Register observers. |
||
| 37 | * |
||
| 38 | * @return void. |
||
|
|
|||
| 39 | */ |
||
| 40 | public function register() |
||
| 44 | |||
| 45 | /** |
||
| 46 | * Registering observers SHOULD BE in boot() method. |
||
| 47 | * |
||
| 48 | * @return void. |
||
| 49 | */ |
||
| 50 | public function boot() |
||
| 56 | } |
This check marks PHPDoc comments that could not be parsed by our parser. To see which comment annotations we can parse, please refer to our documentation on supported doc-types.