1 | <?php |
||
11 | class SocialiteWasCalled |
||
12 | { |
||
13 | const SERVICE_CONTAINER_PREFIX = 'SocialiteProviders.config.'; |
||
14 | |||
15 | /** |
||
16 | * @var LaravelApp |
||
17 | */ |
||
18 | protected $app; |
||
19 | |||
20 | /** |
||
21 | * @var ConfigRetrieverInterface |
||
22 | */ |
||
23 | private $configRetriever; |
||
24 | |||
25 | /** |
||
26 | * @param LaravelApp $app |
||
27 | * @param ConfigRetrieverInterface $configRetriever |
||
28 | */ |
||
29 | 10 | public function __construct(LaravelApp $app, ConfigRetrieverInterface $configRetriever) |
|
34 | |||
35 | /** |
||
36 | * @param string $providerName 'meetup' |
||
37 | * @param string $providerClass 'Your\Name\Space\ClassNameProvider' must extend |
||
38 | * either Laravel\Socialite\Two\AbstractProvider or |
||
39 | * Laravel\Socialite\One\AbstractProvider |
||
40 | * @param string $oauth1Server 'Your\Name\Space\ClassNameServer' must extend League\OAuth1\Client\Server\Server |
||
41 | * |
||
42 | * @throws InvalidArgumentException |
||
43 | */ |
||
44 | 10 | public function extendSocialite($providerName, $providerClass, $oauth1Server = null) |
|
56 | |||
57 | /** |
||
58 | * @param SocialiteManager $socialite |
||
59 | * @param $providerName |
||
60 | * @param string $providerClass |
||
61 | * @param null|string $oauth1Server |
||
62 | * |
||
63 | * @return \Laravel\Socialite\One\AbstractProvider|\Laravel\Socialite\Two\AbstractProvider |
||
64 | */ |
||
65 | 10 | protected function buildProvider(SocialiteManager $socialite, $providerName, $providerClass, $oauth1Server) |
|
80 | |||
81 | /** |
||
82 | * Build an OAuth 1 provider instance. |
||
83 | * |
||
84 | * @param string $providerClass must extend Laravel\Socialite\One\AbstractProvider |
||
85 | * @param string $oauth1Server must extend League\OAuth1\Client\Server\Server |
||
86 | * @param array $config |
||
87 | * |
||
88 | 2 | * @return \Laravel\Socialite\One\AbstractProvider |
|
89 | */ |
||
90 | 2 | protected function buildOAuth1Provider($providerClass, $oauth1Server, array $config) |
|
99 | |||
100 | /** |
||
101 | * Build an OAuth 2 provider instance. |
||
102 | * |
||
103 | * @param SocialiteManager $socialite |
||
104 | * @param string $providerClass must extend Laravel\Socialite\Two\AbstractProvider |
||
105 | * @param array $config |
||
106 | * |
||
107 | 3 | * @return \Laravel\Socialite\Two\AbstractProvider |
|
108 | */ |
||
109 | 3 | protected function buildOAuth2Provider(SocialiteManager $socialite, $providerClass, array $config) |
|
115 | |||
116 | /** |
||
117 | * @param string $providerClass |
||
118 | * @param string $providerName |
||
119 | * |
||
120 | * @return array |
||
121 | 6 | * |
|
122 | * @throws MissingConfigException |
||
123 | 6 | */ |
|
124 | 6 | protected function getConfig($providerClass, $providerName) |
|
148 | |||
149 | /** |
||
150 | * Check if a server is given, which indicates that OAuth1 is used. |
||
151 | 7 | * |
|
152 | * @param string $oauth1Server |
||
153 | 7 | * |
|
154 | * @return bool |
||
155 | */ |
||
156 | private function isOAuth1($oauth1Server) |
||
160 | |||
161 | /** |
||
162 | 5 | * @param string $class |
|
163 | * @param string $baseClass |
||
164 | 5 | * |
|
165 | 1 | * @throws InvalidArgumentException |
|
166 | 1 | */ |
|
167 | private function classExtends($class, $baseClass) |
||
174 | |||
175 | 7 | private function classExists($providerClass) |
|
181 | } |
||
182 |
This check looks for calls to methods that do not seem to exist on a given type. It looks for the method on the type itself as well as in inherited classes or implemented interfaces.
This is most likely a typographical error or the method has been renamed.