1 | <?php |
||
9 | class AppServiceProvider extends ServiceProvider |
||
10 | { |
||
11 | /** |
||
12 | * Bootstrap any application services. |
||
13 | * |
||
14 | * @return void |
||
15 | */ |
||
16 | public function boot() |
||
19 | |||
20 | /** |
||
21 | * Register any application services. |
||
22 | * |
||
23 | * @return void |
||
24 | */ |
||
25 | public function register() |
||
31 | |||
32 | /** |
||
33 | * Get service providers to be registered. |
||
34 | * |
||
35 | * @return array |
||
36 | */ |
||
37 | protected function getServiceProviders() |
||
51 | |||
52 | /** |
||
53 | * Modify the current request. |
||
54 | * |
||
55 | * @return void |
||
56 | */ |
||
57 | protected function modifyCurrentRequest() |
||
67 | |||
68 | /** |
||
69 | * Determines appending JSON type to the "Accept" header for the current request. |
||
70 | * |
||
71 | * @param \Illuminate\Http\Request $request |
||
72 | * @return bool |
||
73 | */ |
||
74 | protected function shouldAddAcceptableJsonType(Request $request) |
||
78 | |||
79 | /** |
||
80 | * Indicates the current request is an API request, e.g. the request is sent |
||
81 | * from an API client. |
||
82 | * |
||
83 | * @return bool |
||
84 | */ |
||
85 | protected function isApiRequest() |
||
89 | |||
90 | /** |
||
91 | * Determines making a fake API client for the current request. |
||
92 | * |
||
93 | * @return bool |
||
94 | */ |
||
95 | protected function shouldFakeAppClient() |
||
102 | |||
103 | /** |
||
104 | * Fake current agent client as an app client. |
||
105 | * |
||
106 | * @return void |
||
107 | */ |
||
108 | protected function fakeAppClient() |
||
126 | |||
127 | /** |
||
128 | * Get User-Agent string for faking app client. |
||
129 | * |
||
130 | * @return string |
||
131 | */ |
||
132 | protected function getUserAgentForFakingAppClient() |
||
142 | |||
143 | /** |
||
144 | * Get API token request headers for faking app client. |
||
145 | * |
||
146 | * @return array |
||
147 | */ |
||
148 | protected function getApiTokenHeadersForFakingAppClient() |
||
162 | } |
||
163 |
This check looks from parameters that have been defined for a function or method, but which are not used in the method body.