|
2 | 2 |
|
3 | 3 | use Illuminate\Html\HtmlServiceProvider as IlluminateHtmlServiceProvider; |
4 | 4 |
|
5 | | -class BootstrapFormsServiceProvider extends IlluminateHtmlServiceProvider { |
6 | | - |
7 | | - /** |
8 | | - * Indicates if loading of the provider is deferred. |
9 | | - * |
10 | | - * @var bool |
11 | | - */ |
12 | | - protected $defer = false; |
13 | | - |
14 | | - /** |
15 | | - * Bootstrap the application events. |
16 | | - * |
17 | | - * @return void |
18 | | - */ |
19 | | - public function boot() |
20 | | - { |
21 | | - $this->package('manavo/bootstrap-forms'); |
22 | | - } |
23 | | - |
24 | | - /** |
25 | | - * Register the service provider. |
26 | | - * |
27 | | - * @return void |
28 | | - */ |
29 | | - public function registerFormBuilder() |
30 | | - { |
31 | | - $this->app->bindShared('form', function($app) |
32 | | - { |
33 | | - $form = new FormBuilder($app['html'], $app['url'], $app['session.store']->getToken()); |
34 | | - |
35 | | - return $form->setSessionStore($app['session.store']); |
36 | | - }); |
37 | | - } |
38 | | - |
39 | | - /** |
40 | | - * Get the services provided by the provider. |
41 | | - * |
42 | | - * @return array |
43 | | - */ |
44 | | - public function provides() |
45 | | - { |
46 | | - return array(); |
47 | | - } |
| 5 | +class BootstrapFormsServiceProvider extends IlluminateHtmlServiceProvider |
| 6 | +{ |
| 7 | + |
| 8 | + /** |
| 9 | + * Indicates if loading of the provider is deferred. |
| 10 | + * |
| 11 | + * @var bool |
| 12 | + */ |
| 13 | + protected $defer = false; |
| 14 | + |
| 15 | + /** |
| 16 | + * Bootstrap the application events. |
| 17 | + * |
| 18 | + * @return void |
| 19 | + */ |
| 20 | + public function boot() |
| 21 | + { |
| 22 | + $this->package('manavo/bootstrap-forms'); |
| 23 | + } |
| 24 | + |
| 25 | + /** |
| 26 | + * Register the service provider. |
| 27 | + * |
| 28 | + * @return void |
| 29 | + */ |
| 30 | + public function registerFormBuilder() |
| 31 | + { |
| 32 | + $this->app->bindShared('form', function ($app) { |
| 33 | + $form = new FormBuilder($app['html'], $app['url'], |
| 34 | + $app['session.store']->getToken()); |
| 35 | + |
| 36 | + return $form->setSessionStore($app['session.store']); |
| 37 | + }); |
| 38 | + } |
| 39 | + |
| 40 | + /** |
| 41 | + * Get the services provided by the provider. |
| 42 | + * |
| 43 | + * @return array |
| 44 | + */ |
| 45 | + public function provides() |
| 46 | + { |
| 47 | + return array(); |
| 48 | + } |
48 | 49 |
|
49 | 50 | } |
0 commit comments