Completed
Push — master ( 74c577...c1ce98 )
by Kirill
06:10
created

OrmServiceProvider   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 22
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 4

Importance

Changes 1
Bugs 0 Features 0
Metric Value
wmc 2
c 1
b 0
f 0
lcom 0
cbo 4
dl 0
loc 22
rs 10

2 Methods

Rating   Name   Duplication   Size   Complexity  
A register() 0 4 1
A boot() 0 8 1
1
<?php
2
/**
3
 * This file is part of GitterBot package.
4
 *
5
 * @author Serafim <[email protected]>
6
 * @date 09.04.2016 3:51
7
 *
8
 * For the full copyright and license information, please view the LICENSE
9
 * file that was distributed with this source code.
10
 */
11
namespace Core\Providers;
12
13
use Core\Observers\IdObserver;
14
use Domains\Message\Message;
15
use Domains\Message\Relation;
16
use Domains\Message\Url;
17
use Domains\User\Mention;
18
use Illuminate\Support\ServiceProvider;
19
20
/**
21
 * Class OrmServiceProvider
22
 * @package Core\Providers
23
 */
24
class OrmServiceProvider extends ServiceProvider
25
{
26
    /**
27
     * @return void
28
     */
29
    public function register()
30
    {
31
        // Do nothing
32
    }
33
34
    /**
35
     * @return void
36
     */
37
    public function boot()
38
    {
39
        Url::observe(IdObserver::class);
40
        Message::observe(IdObserver::class);
41
        Message::observe(IdObserver::class);
42
        Mention::observe(IdObserver::class);
43
        Relation::observe(IdObserver::class);
44
    }
45
}