1 | <?php |
||
20 | class NotifynderServiceProvider extends ServiceProvider |
||
21 | { |
||
22 | protected $migrations = [ |
||
23 | 'NotificationCategories' => '2014_02_10_145728_notification_categories', |
||
24 | 'CreateNotificationGroupsTable' => '2014_08_01_210813_create_notification_groups_table', |
||
25 | 'CreateNotificationCategoryNotificationGroupTable' => '2014_08_01_211045_create_notification_category_notification_group_table', |
||
26 | 'CreateNotificationsTable' => '2015_05_05_212549_create_notifications_table', |
||
27 | 'AddExpireTimeColumnToNotificationTable' => '2015_06_06_211555_add_expire_time_column_to_notification_table', |
||
28 | 'ChangeTypeToExtraInNotificationsTable' => '2015_06_06_211555_change_type_to_extra_in_notifications_table', |
||
29 | 'AlterCategoryNameToUnique' => '2015_06_07_211555_alter_category_name_to_unique', |
||
30 | 'MakeNotificationUrlNullable' => '2016_04_19_200827_make_notification_url_nullable', |
||
31 | 'AddStackIdToNotifications' => '2016_05_19_144531_add_stack_id_to_notifications', |
||
32 | 'UpdateVersion4NotificationsTable' => '2016_07_01_153156_update_version4_notifications_table', |
||
33 | 'DropVersion4UnusedTables' => '2016_11_02_193415_drop_version4_unused_tables', |
||
34 | ]; |
||
35 | |||
36 | /** |
||
37 | * Register the service provider. |
||
38 | * |
||
39 | * @return void |
||
40 | */ |
||
41 | public function register() |
||
51 | |||
52 | /** |
||
53 | * Boot the service provider. |
||
54 | * |
||
55 | * @return void |
||
56 | */ |
||
57 | public function boot() |
||
62 | |||
63 | /** |
||
64 | * Bind contracts. |
||
65 | * |
||
66 | * @return void |
||
67 | */ |
||
68 | protected function bindContracts() |
||
74 | |||
75 | /** |
||
76 | * Bind Notifynder config. |
||
77 | * |
||
78 | * @return void |
||
79 | */ |
||
80 | protected function bindConfig() |
||
86 | |||
87 | /** |
||
88 | * Bind Notifynder sender. |
||
89 | * |
||
90 | * @return void |
||
91 | */ |
||
92 | protected function bindSender() |
||
98 | |||
99 | /** |
||
100 | * Bind Notifynder resolver. |
||
101 | * |
||
102 | * @return void |
||
103 | */ |
||
104 | protected function bindResolver() |
||
110 | |||
111 | /** |
||
112 | * Bind Notifynder manager. |
||
113 | * |
||
114 | * @return void |
||
115 | */ |
||
116 | protected function bindNotifynder() |
||
124 | |||
125 | /** |
||
126 | * Register the default senders. |
||
127 | * |
||
128 | * @return void |
||
129 | */ |
||
130 | public function registerSenders() |
||
144 | |||
145 | /** |
||
146 | * Publish and merge config file. |
||
147 | * |
||
148 | * @return void |
||
149 | */ |
||
150 | protected function config() |
||
158 | |||
159 | /** |
||
160 | * Publish migration files. |
||
161 | * |
||
162 | * @return void |
||
163 | */ |
||
164 | protected function migration() |
||
172 | |||
173 | /** |
||
174 | * Publish a single migration file. |
||
175 | * |
||
176 | * @param string $filename |
||
177 | * @return void |
||
178 | */ |
||
179 | protected function publishMigration($filename) |
||
187 | |||
188 | /** |
||
189 | * Get the migration file path. |
||
190 | * |
||
191 | * @param string $filename |
||
192 | * @return string |
||
193 | */ |
||
194 | protected function getMigrationFilepath($filename) |
||
202 | } |
||
203 |