1 | <?php |
||
10 | class BlogServiceProvider extends ServiceProvider |
||
11 | { |
||
12 | /** |
||
13 | * All of the event / listener mappings. |
||
14 | * |
||
15 | * @var array |
||
16 | */ |
||
17 | protected $events = [ |
||
18 | \Chriscreates\Blog\Events\PostViewed::class => [ |
||
19 | \Chriscreates\Blog\Listeners\StoreViewData::class, |
||
20 | ], |
||
21 | ]; |
||
22 | |||
23 | /** |
||
24 | * Bootstrap the application services. |
||
25 | */ |
||
26 | public function boot() |
||
33 | |||
34 | /** |
||
35 | * Register bindings in the container. |
||
36 | * |
||
37 | * @return void |
||
38 | */ |
||
39 | public function register() |
||
44 | |||
45 | /** |
||
46 | * Register the events and listeners. |
||
47 | * |
||
48 | * @return void |
||
49 | * @throws BindingResolutionException |
||
50 | */ |
||
51 | private function handleEvents() |
||
61 | |||
62 | /** |
||
63 | * Register the package routes. |
||
64 | * |
||
65 | * @return void |
||
66 | */ |
||
67 | private function handleRoutes() |
||
73 | |||
74 | /** |
||
75 | * Get the Blog route group configuration array. |
||
76 | * |
||
77 | * @return array |
||
78 | */ |
||
79 | private function routeConfiguration() |
||
88 | |||
89 | /** |
||
90 | * Register the package's migrations. |
||
91 | * |
||
92 | * @return void |
||
93 | */ |
||
94 | private function handleMigrations() |
||
100 | |||
101 | /** |
||
102 | * Register the package's publishable resources. |
||
103 | * |
||
104 | * @return void |
||
105 | */ |
||
106 | private function handlePublishing() |
||
122 | |||
123 | /** |
||
124 | * @return void |
||
125 | */ |
||
126 | private function handleConfig() |
||
133 | |||
134 | /** |
||
135 | * @return void |
||
136 | */ |
||
137 | private function handleCommands() |
||
145 | } |
||
146 |