1 | <?php |
||||||
2 | |||||||
3 | namespace Sarahman\OauthTokensClient; |
||||||
4 | |||||||
5 | use Config; |
||||||
6 | use GuzzleHttp\Client; |
||||||
7 | use Illuminate\Support\ServiceProvider; |
||||||
8 | |||||||
9 | class ServiceProviderForLaravel4 extends ServiceProvider |
||||||
10 | { |
||||||
11 | /** |
||||||
12 | * Indicates if loading of the provider is deferred. |
||||||
13 | * |
||||||
14 | * @var bool |
||||||
15 | */ |
||||||
16 | protected $defer = true; |
||||||
17 | |||||||
18 | /** |
||||||
19 | * Bootstrap the application events. |
||||||
20 | * |
||||||
21 | * @return void |
||||||
22 | */ |
||||||
23 | public function boot() |
||||||
24 | { |
||||||
25 | $this->package('sarahman/oauth-tokens-client', null, __DIR__); |
||||||
0 ignored issues
–
show
|
|||||||
26 | |||||||
27 | include __DIR__ . '/config/config.php'; |
||||||
28 | } |
||||||
29 | |||||||
30 | /** |
||||||
31 | * Register the service provider. |
||||||
32 | * |
||||||
33 | * @return void |
||||||
34 | */ |
||||||
35 | public function register() |
||||||
36 | { |
||||||
37 | $this->app['oauth-tokens-client.service'] = $this->app->share(function ($app) { |
||||||
0 ignored issues
–
show
The method
share() does not exist on Illuminate\Contracts\Foundation\Application .
(
Ignorable by Annotation
)
If this is a false-positive, you can also ignore this issue in your code via the
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. ![]() |
|||||||
38 | return new OAuthClient( |
||||||
39 | new Client, |
||||||
40 | $app['cache.store'], |
||||||
41 | Config::get('oauth-tokens-client::OAUTH_CREDENTIAL'), |
||||||
42 | Config::get('oauth-tokens-client::TOKEN_PREFIXES'), |
||||||
43 | Config::get('oauth-tokens-client::LOCK_KEY') |
||||||
44 | ); |
||||||
45 | }); |
||||||
46 | } |
||||||
47 | |||||||
48 | /** |
||||||
49 | * Get the services provided by the provider. |
||||||
50 | * |
||||||
51 | * @return array |
||||||
52 | */ |
||||||
53 | public function provides() |
||||||
54 | { |
||||||
55 | return array('oauth-tokens-client.service'); |
||||||
56 | } |
||||||
57 | } |
||||||
58 |
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.