1 | <?php |
||
9 | class SupportServiceProvider extends ServiceProvider |
||
10 | { |
||
11 | /** |
||
12 | * Bootstrap the application services. |
||
13 | * |
||
14 | * @return void |
||
15 | */ |
||
16 | public function boot() |
||
30 | |||
31 | /** |
||
32 | * Register the application service. |
||
33 | * |
||
34 | * @return void |
||
35 | */ |
||
36 | public function register() |
||
51 | |||
52 | /** |
||
53 | * Setup application configurations. |
||
54 | * |
||
55 | * @return void |
||
56 | */ |
||
57 | protected function setupConfiguration() |
||
58 | { |
||
59 | if (! $this->app->configurationIsCached()) { |
||
60 | $this->configureDefaults(); |
||
61 | } |
||
62 | |||
63 | $this->configureForCurrentRequest(); |
||
64 | } |
||
65 | |||
66 | /** |
||
67 | * Configure application defaults. |
||
68 | * |
||
69 | * @return void |
||
70 | */ |
||
71 | protected function configureDefaults() |
||
81 | |||
82 | /** |
||
83 | * Configure application for the current request. |
||
84 | * |
||
85 | * @return void |
||
86 | */ |
||
87 | protected function configureForCurrentRequest() |
||
100 | |||
101 | /** |
||
102 | * Get the current sub application identifier. |
||
103 | * |
||
104 | * @return string|null |
||
105 | */ |
||
106 | protected function getCurrentAppIdentifier() |
||
122 | |||
123 | /** |
||
124 | * Remove the scheme for the given URL. |
||
125 | * |
||
126 | * @param string $url |
||
127 | * @return string |
||
128 | */ |
||
129 | protected function removeUrlScheme($url) |
||
133 | } |
||
134 |