1 | <?php |
||
8 | abstract class AbstractProvider extends \Laravel\Socialite\One\AbstractProvider |
||
9 | { |
||
10 | /** |
||
11 | * Indicates if the session state should be utilized. |
||
12 | * |
||
13 | * @var bool |
||
14 | */ |
||
15 | protected $stateless = true; |
||
16 | |||
17 | /** |
||
18 | * @var array |
||
19 | */ |
||
20 | protected $credentialsResponseBody; |
||
21 | |||
22 | public static function serviceContainerKey($providerName) |
||
26 | |||
27 | /** |
||
28 | * @param Config $config |
||
29 | * |
||
30 | * @return $this |
||
31 | */ |
||
32 | public function config(Config $config) |
||
41 | |||
42 | /** |
||
43 | * {@inheritdoc} |
||
44 | */ |
||
45 | public function user() |
||
70 | |||
71 | /** |
||
72 | * Redirect the user to the authentication page for the provider. |
||
73 | * |
||
74 | * @return RedirectResponse |
||
75 | */ |
||
76 | public function redirect() |
||
89 | |||
90 | /** |
||
91 | * Get the token credentials for the request. |
||
92 | * |
||
93 | * @return \League\OAuth1\Client\Credentials\TokenCredentials |
||
94 | */ |
||
95 | protected function getToken() |
||
111 | |||
112 | /** |
||
113 | * Indicates that the provider should operate as stateless. |
||
114 | * |
||
115 | * @return $this |
||
116 | */ |
||
117 | public function stateless() |
||
123 | |||
124 | /** |
||
125 | * Determine if the provider is operating as stateless. |
||
126 | * |
||
127 | * @return bool |
||
128 | */ |
||
129 | protected function isStateless() |
||
133 | |||
134 | public static function additionalConfigKeys() |
||
138 | } |
||
139 |
In PHP it is possible to write to properties without declaring them. For example, the following is perfectly valid PHP code:
Generally, it is a good practice to explictly declare properties to avoid accidental typos and provide IDE auto-completion: