Skip to content

Commit 050d716

Browse files
committed
unify facade to root namespace
1 parent dade498 commit 050d716

File tree

2 files changed

+32
-25
lines changed

2 files changed

+32
-25
lines changed

src/Facades/Socialite.php

Lines changed: 2 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -2,29 +2,6 @@
22

33
namespace Laravel\Socialite\Facades;
44

5-
use Illuminate\Support\Facades\Facade;
6-
use Laravel\Socialite\Contracts\Factory;
5+
use Laravel\Socialite\Socialite as SocialiteFacade;
76

8-
/**
9-
* @method static \Laravel\Socialite\Contracts\Provider driver(string $driver = null)
10-
* @method static \Laravel\Socialite\Two\AbstractProvider buildProvider(string $provider, array $config)
11-
* @method static \Laravel\Socialite\SocialiteManager extend(string $driver, \Closure $callback)
12-
* @method array getScopes()
13-
* @method \Laravel\Socialite\Contracts\Provider scopes(array|string $scopes)
14-
* @method \Laravel\Socialite\Contracts\Provider setScopes(array|string $scopes)
15-
* @method \Laravel\Socialite\Contracts\Provider redirectUrl(string $url)
16-
*
17-
* @see \Laravel\Socialite\SocialiteManager
18-
*/
19-
class Socialite extends Facade
20-
{
21-
/**
22-
* Get the registered name of the component.
23-
*
24-
* @return string
25-
*/
26-
protected static function getFacadeAccessor()
27-
{
28-
return Factory::class;
29-
}
30-
}
7+
class Socialite extends SocialiteFacade {}

src/Socialite.php

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
<?php
2+
3+
namespace Laravel\Socialite;
4+
5+
use Illuminate\Support\Facades\Facade;
6+
use Laravel\Socialite\Contracts\Factory;
7+
8+
/**
9+
* @method static \Laravel\Socialite\Contracts\Provider driver(string $driver = null)
10+
* @method static \Laravel\Socialite\Two\AbstractProvider buildProvider(string $provider, array $config)
11+
* @method static \Laravel\Socialite\SocialiteManager extend(string $driver, \Closure $callback)
12+
* @method array getScopes()
13+
* @method \Laravel\Socialite\Contracts\Provider scopes(array|string $scopes)
14+
* @method \Laravel\Socialite\Contracts\Provider setScopes(array|string $scopes)
15+
* @method \Laravel\Socialite\Contracts\Provider redirectUrl(string $url)
16+
*
17+
* @see \Laravel\Socialite\SocialiteManager
18+
*/
19+
class Socialite extends Facade
20+
{
21+
/**
22+
* Get the registered name of the component.
23+
*
24+
* @return string
25+
*/
26+
protected static function getFacadeAccessor()
27+
{
28+
return Factory::class;
29+
}
30+
}

0 commit comments

Comments
 (0)