MacroServiceProvider::boot()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 2
Code Lines 0

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
dl 0
loc 2
rs 10
c 0
b 0
f 0
cc 1
eloc 0
nc 1
nop 0
1
<?php
2
3
namespace App\Providers;
4
5
use App\Helpers\Macros\Macros;
6
use Collective\Html\HtmlServiceProvider;
7
8
/**
9
 * Class MacroServiceProvider.
10
 */
11
class MacroServiceProvider extends HtmlServiceProvider
12
{
13
    /**
14
     * Bootstrap the application services.
15
     *
16
     * @return void
17
     */
18
    public function boot()
19
    {
20
        //
21
    }
22
23
    /**
24
     * Register the application services.
25
     *
26
     * @return void
27
     */
28
    public function register()
29
    {
30
        parent::register();
31
32
        $this->app->singleton('form', function ($app) {
33
            $form = new Macros($app['html'], $app['url'], $app['view'], $app['session.store']->token());
34
35
            return $form->setSessionStore($app['session.store']);
36
        });
37
    }
38
}
39