1 | <?php |
||
24 | class BlogServiceProvider extends ServiceProvider |
||
25 | { |
||
26 | use CanPublishConfiguration, CanGetSidebarClassForModule; |
||
27 | /** |
||
28 | * Indicates if loading of the provider is deferred. |
||
29 | * |
||
30 | * @var bool |
||
31 | */ |
||
32 | protected $defer = false; |
||
33 | |||
34 | /** |
||
35 | * Register the service provider. |
||
36 | * |
||
37 | * @return void |
||
38 | */ |
||
39 | 10 | public function register() |
|
40 | { |
||
41 | 10 | $this->registerBindings(); |
|
42 | |||
43 | 10 | $this->app['events']->listen( |
|
44 | 10 | BuildingSidebar::class, |
|
45 | 10 | $this->getSidebarClassForModule('blog', RegisterBlogSidebar::class) |
|
46 | 10 | ); |
|
47 | 10 | } |
|
48 | |||
49 | 10 | public function boot() |
|
50 | { |
||
51 | 10 | $this->publishes([ |
|
52 | 10 | __DIR__ . '/../Resources/views' => base_path('resources/views/asgard/blog'), |
|
53 | 10 | ]); |
|
54 | |||
55 | 10 | $this->publishConfig('blog', 'config'); |
|
56 | 10 | $this->publishConfig('blog', 'permissions'); |
|
57 | 10 | $this->publishConfig('blog', 'settings'); |
|
58 | 10 | $this->loadMigrationsFrom(__DIR__ . '/../Database/Migrations'); |
|
59 | |||
60 | 10 | $this->registerThumbnails(); |
|
61 | 10 | } |
|
62 | |||
63 | /** |
||
64 | * Get the services provided by the provider. |
||
65 | * |
||
66 | * @return array |
||
67 | */ |
||
68 | public function provides() |
||
72 | |||
73 | 10 | private function registerBindings() |
|
105 | |||
106 | 10 | private function registerThumbnails() |
|
107 | { |
||
118 | } |
||
119 |