@@ -6,20 +6,20 @@ discard block |
||
| 6 | 6 | class UnderstandLaravel5ServiceProvider extends ServiceProvider |
| 7 | 7 | { |
| 8 | 8 | |
| 9 | - /** |
|
| 10 | - * Indicates if loading of the provider is deferred. |
|
| 11 | - * |
|
| 12 | - * @var bool |
|
| 13 | - */ |
|
| 14 | - protected $defer = false; |
|
| 15 | - |
|
| 16 | - /** |
|
| 17 | - * Bootstrap the application events. |
|
| 18 | - * |
|
| 19 | - * @return void |
|
| 20 | - */ |
|
| 21 | - public function boot() |
|
| 22 | - { |
|
| 9 | + /** |
|
| 10 | + * Indicates if loading of the provider is deferred. |
|
| 11 | + * |
|
| 12 | + * @var bool |
|
| 13 | + */ |
|
| 14 | + protected $defer = false; |
|
| 15 | + |
|
| 16 | + /** |
|
| 17 | + * Bootstrap the application events. |
|
| 18 | + * |
|
| 19 | + * @return void |
|
| 20 | + */ |
|
| 21 | + public function boot() |
|
| 22 | + { |
|
| 23 | 23 | $configPath = __DIR__ . '/../../config/understand-laravel.php'; |
| 24 | 24 | $this->publishes([$configPath => config_path('understand-laravel.php')], 'config'); |
| 25 | 25 | |
@@ -32,23 +32,23 @@ discard block |
||
| 32 | 32 | { |
| 33 | 33 | $this->listenLaravelEvents(); |
| 34 | 34 | } |
| 35 | - } |
|
| 36 | - |
|
| 37 | - /** |
|
| 38 | - * Register the service provider. |
|
| 39 | - * |
|
| 40 | - * @return void |
|
| 41 | - */ |
|
| 42 | - public function register() |
|
| 43 | - { |
|
| 44 | - $this->registerConfig(); |
|
| 35 | + } |
|
| 36 | + |
|
| 37 | + /** |
|
| 38 | + * Register the service provider. |
|
| 39 | + * |
|
| 40 | + * @return void |
|
| 41 | + */ |
|
| 42 | + public function register() |
|
| 43 | + { |
|
| 44 | + $this->registerConfig(); |
|
| 45 | 45 | $this->registerFieldProvider(); |
| 46 | 46 | $this->registerTokenProvider(); |
| 47 | 47 | $this->registerLogger(); |
| 48 | 48 | $this->registerModelEventListenerProvider(); |
| 49 | 49 | $this->registerExceptionEncoder(); |
| 50 | 50 | $this->registerExceptionLogger(); |
| 51 | - } |
|
| 51 | + } |
|
| 52 | 52 | |
| 53 | 53 | /** |
| 54 | 54 | * Register config |
@@ -72,8 +72,8 @@ discard block |
||
| 72 | 72 | { |
| 73 | 73 | $fieldProvider = new FieldProvider(); |
| 74 | 74 | |
| 75 | - if ($app['config']['session.driver']) |
|
| 76 | - { |
|
| 75 | + if ($app['config']['session.driver']) |
|
| 76 | + { |
|
| 77 | 77 | $fieldProvider->setSessionStore($app['session.store']); |
| 78 | 78 | } |
| 79 | 79 | $fieldProvider->setRouter($app['router']); |