@@ -6,7 +6,7 @@ discard block |
||
6 | 6 | |
7 | 7 | class WidgetGenerator extends LaravelGeneratorCommand |
8 | 8 | { |
9 | - /** |
|
9 | + /** |
|
10 | 10 | * The name and signature of the console command. |
11 | 11 | * |
12 | 12 | * @var string |
@@ -35,7 +35,7 @@ discard block |
||
35 | 35 | protected function getStub() |
36 | 36 | { |
37 | 37 | |
38 | - return __DIR__.'/../stubs/widget.stub'; |
|
38 | + return __DIR__.'/../stubs/widget.stub'; |
|
39 | 39 | |
40 | 40 | } |
41 | 41 |
@@ -7,28 +7,28 @@ discard block |
||
7 | 7 | |
8 | 8 | class WidgetsServiceProvider extends ServiceProvider { |
9 | 9 | |
10 | - /** |
|
11 | - * Bootstrap any application services. |
|
12 | - * |
|
13 | - * @return void |
|
14 | - */ |
|
15 | - public function boot() |
|
16 | - { |
|
10 | + /** |
|
11 | + * Bootstrap any application services. |
|
12 | + * |
|
13 | + * @return void |
|
14 | + */ |
|
15 | + public function boot() |
|
16 | + { |
|
17 | 17 | \Blade::directive('include_widget', function ($expression) { |
18 | 18 | return "<?php echo $expression; ?>"; |
19 | 19 | }); |
20 | 20 | |
21 | 21 | $this->loadViewsFrom($this->app->basePath().'/app/Widgets/', 'Widgets'); |
22 | - } |
|
23 | - |
|
24 | - /** |
|
25 | - * Register any application services. |
|
26 | - * |
|
27 | - * @return void |
|
28 | - */ |
|
29 | - public function register() |
|
30 | - { |
|
31 | - $this->app->singleton('command.imanghafoori.widget', function ($app) { |
|
22 | + } |
|
23 | + |
|
24 | + /** |
|
25 | + * Register any application services. |
|
26 | + * |
|
27 | + * @return void |
|
28 | + */ |
|
29 | + public function register() |
|
30 | + { |
|
31 | + $this->app->singleton('command.imanghafoori.widget', function ($app) { |
|
32 | 32 | return $app['Imanghafoori\Widgets\WidgetGenerator']; |
33 | 33 | }); |
34 | 34 | |
@@ -53,6 +53,6 @@ discard block |
||
53 | 53 | }); |
54 | 54 | |
55 | 55 | $this->commands('command.imanghafoori.widget'); |
56 | - } |
|
56 | + } |
|
57 | 57 | |
58 | 58 | } |