Total Complexity | 2 |
Total Lines | 30 |
Duplicated Lines | 0 % |
Coverage | 100% |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php namespace ivuorinen\BBCode; |
||
5 | class BBCodeParserServiceProvider extends ServiceProvider |
||
6 | { |
||
7 | |||
8 | /** |
||
9 | * Indicates if loading of the provider is deferred. |
||
10 | * |
||
11 | * @var bool |
||
12 | */ |
||
13 | protected $defer = true; |
||
14 | |||
15 | /** |
||
16 | * Register the service provider. |
||
17 | * |
||
18 | * @return void |
||
19 | */ |
||
20 | 14 | public function register() |
|
21 | { |
||
22 | 14 | $this->app->bind('bbcode', function () { |
|
23 | 1 | return new BBCodeParser; |
|
24 | 14 | }); |
|
25 | } |
||
26 | |||
27 | /** |
||
28 | * Get the services provided by the provider. |
||
29 | * |
||
30 | * @return array |
||
31 | */ |
||
32 | 1 | public function provides() |
|
35 | } |
||
36 | } |
||
37 |