Skip to content

Commit

Permalink
Add Laravel Socialite contract binding to PHPStorm metadata for socia…
Browse files Browse the repository at this point in the history
…l authentication
  • Loading branch information
abdessamadbettal committed Dec 17, 2024
1 parent a5ca697 commit bdbb0f4
Show file tree
Hide file tree
Showing 4 changed files with 653 additions and 80 deletions.
11 changes: 11 additions & 0 deletions .phpstorm.meta.php
Original file line number Diff line number Diff line change
Expand Up @@ -185,6 +185,7 @@
'Inertia\Ssr\Gateway' => \Inertia\Ssr\HttpGateway::class,
'Laravel\Pail\Files' => \Laravel\Pail\Files::class,
'Laravel\Pail\Handler' => \Laravel\Pail\Handler::class,
'Laravel\Socialite\Contracts\Factory' => \Laravel\Socialite\SocialiteManager::class,
'Livewire\EventBus' => \Livewire\EventBus::class,
'Livewire\LivewireManager' => \Livewire\LivewireManager::class,
'Livewire\Mechanisms\ExtendBlade\DeterministicBladeKeys' => \Livewire\Mechanisms\ExtendBlade\DeterministicBladeKeys::class,
Expand Down Expand Up @@ -449,6 +450,7 @@
'Inertia\Ssr\Gateway' => \Inertia\Ssr\HttpGateway::class,
'Laravel\Pail\Files' => \Laravel\Pail\Files::class,
'Laravel\Pail\Handler' => \Laravel\Pail\Handler::class,
'Laravel\Socialite\Contracts\Factory' => \Laravel\Socialite\SocialiteManager::class,
'Livewire\EventBus' => \Livewire\EventBus::class,
'Livewire\LivewireManager' => \Livewire\LivewireManager::class,
'Livewire\Mechanisms\ExtendBlade\DeterministicBladeKeys' => \Livewire\Mechanisms\ExtendBlade\DeterministicBladeKeys::class,
Expand Down Expand Up @@ -713,6 +715,7 @@
'Inertia\Ssr\Gateway' => \Inertia\Ssr\HttpGateway::class,
'Laravel\Pail\Files' => \Laravel\Pail\Files::class,
'Laravel\Pail\Handler' => \Laravel\Pail\Handler::class,
'Laravel\Socialite\Contracts\Factory' => \Laravel\Socialite\SocialiteManager::class,
'Livewire\EventBus' => \Livewire\EventBus::class,
'Livewire\LivewireManager' => \Livewire\LivewireManager::class,
'Livewire\Mechanisms\ExtendBlade\DeterministicBladeKeys' => \Livewire\Mechanisms\ExtendBlade\DeterministicBladeKeys::class,
Expand Down Expand Up @@ -977,6 +980,7 @@
'Inertia\Ssr\Gateway' => \Inertia\Ssr\HttpGateway::class,
'Laravel\Pail\Files' => \Laravel\Pail\Files::class,
'Laravel\Pail\Handler' => \Laravel\Pail\Handler::class,
'Laravel\Socialite\Contracts\Factory' => \Laravel\Socialite\SocialiteManager::class,
'Livewire\EventBus' => \Livewire\EventBus::class,
'Livewire\LivewireManager' => \Livewire\LivewireManager::class,
'Livewire\Mechanisms\ExtendBlade\DeterministicBladeKeys' => \Livewire\Mechanisms\ExtendBlade\DeterministicBladeKeys::class,
Expand Down Expand Up @@ -1241,6 +1245,7 @@
'Inertia\Ssr\Gateway' => \Inertia\Ssr\HttpGateway::class,
'Laravel\Pail\Files' => \Laravel\Pail\Files::class,
'Laravel\Pail\Handler' => \Laravel\Pail\Handler::class,
'Laravel\Socialite\Contracts\Factory' => \Laravel\Socialite\SocialiteManager::class,
'Livewire\EventBus' => \Livewire\EventBus::class,
'Livewire\LivewireManager' => \Livewire\LivewireManager::class,
'Livewire\Mechanisms\ExtendBlade\DeterministicBladeKeys' => \Livewire\Mechanisms\ExtendBlade\DeterministicBladeKeys::class,
Expand Down Expand Up @@ -1505,6 +1510,7 @@
'Inertia\Ssr\Gateway' => \Inertia\Ssr\HttpGateway::class,
'Laravel\Pail\Files' => \Laravel\Pail\Files::class,
'Laravel\Pail\Handler' => \Laravel\Pail\Handler::class,
'Laravel\Socialite\Contracts\Factory' => \Laravel\Socialite\SocialiteManager::class,
'Livewire\EventBus' => \Livewire\EventBus::class,
'Livewire\LivewireManager' => \Livewire\LivewireManager::class,
'Livewire\Mechanisms\ExtendBlade\DeterministicBladeKeys' => \Livewire\Mechanisms\ExtendBlade\DeterministicBladeKeys::class,
Expand Down Expand Up @@ -1769,6 +1775,7 @@
'Inertia\Ssr\Gateway' => \Inertia\Ssr\HttpGateway::class,
'Laravel\Pail\Files' => \Laravel\Pail\Files::class,
'Laravel\Pail\Handler' => \Laravel\Pail\Handler::class,
'Laravel\Socialite\Contracts\Factory' => \Laravel\Socialite\SocialiteManager::class,
'Livewire\EventBus' => \Livewire\EventBus::class,
'Livewire\LivewireManager' => \Livewire\LivewireManager::class,
'Livewire\Mechanisms\ExtendBlade\DeterministicBladeKeys' => \Livewire\Mechanisms\ExtendBlade\DeterministicBladeKeys::class,
Expand Down Expand Up @@ -2033,6 +2040,7 @@
'Inertia\Ssr\Gateway' => \Inertia\Ssr\HttpGateway::class,
'Laravel\Pail\Files' => \Laravel\Pail\Files::class,
'Laravel\Pail\Handler' => \Laravel\Pail\Handler::class,
'Laravel\Socialite\Contracts\Factory' => \Laravel\Socialite\SocialiteManager::class,
'Livewire\EventBus' => \Livewire\EventBus::class,
'Livewire\LivewireManager' => \Livewire\LivewireManager::class,
'Livewire\Mechanisms\ExtendBlade\DeterministicBladeKeys' => \Livewire\Mechanisms\ExtendBlade\DeterministicBladeKeys::class,
Expand Down Expand Up @@ -2297,6 +2305,7 @@
'Inertia\Ssr\Gateway' => \Inertia\Ssr\HttpGateway::class,
'Laravel\Pail\Files' => \Laravel\Pail\Files::class,
'Laravel\Pail\Handler' => \Laravel\Pail\Handler::class,
'Laravel\Socialite\Contracts\Factory' => \Laravel\Socialite\SocialiteManager::class,
'Livewire\EventBus' => \Livewire\EventBus::class,
'Livewire\LivewireManager' => \Livewire\LivewireManager::class,
'Livewire\Mechanisms\ExtendBlade\DeterministicBladeKeys' => \Livewire\Mechanisms\ExtendBlade\DeterministicBladeKeys::class,
Expand Down Expand Up @@ -2561,6 +2570,7 @@
'Inertia\Ssr\Gateway' => \Inertia\Ssr\HttpGateway::class,
'Laravel\Pail\Files' => \Laravel\Pail\Files::class,
'Laravel\Pail\Handler' => \Laravel\Pail\Handler::class,
'Laravel\Socialite\Contracts\Factory' => \Laravel\Socialite\SocialiteManager::class,
'Livewire\EventBus' => \Livewire\EventBus::class,
'Livewire\LivewireManager' => \Livewire\LivewireManager::class,
'Livewire\Mechanisms\ExtendBlade\DeterministicBladeKeys' => \Livewire\Mechanisms\ExtendBlade\DeterministicBladeKeys::class,
Expand Down Expand Up @@ -2825,6 +2835,7 @@
'Inertia\Ssr\Gateway' => \Inertia\Ssr\HttpGateway::class,
'Laravel\Pail\Files' => \Laravel\Pail\Files::class,
'Laravel\Pail\Handler' => \Laravel\Pail\Handler::class,
'Laravel\Socialite\Contracts\Factory' => \Laravel\Socialite\SocialiteManager::class,
'Livewire\EventBus' => \Livewire\EventBus::class,
'Livewire\LivewireManager' => \Livewire\LivewireManager::class,
'Livewire\Mechanisms\ExtendBlade\DeterministicBladeKeys' => \Livewire\Mechanisms\ExtendBlade\DeterministicBladeKeys::class,
Expand Down
136 changes: 130 additions & 6 deletions _ide_helper.php
Original file line number Diff line number Diff line change
Expand Up @@ -19072,6 +19072,129 @@
}
}

namespace Laravel\Socialite\Facades {
/**
*
*
* @method array getScopes()
* @method \Laravel\Socialite\Contracts\Provider scopes(array|string $scopes)
* @method \Laravel\Socialite\Contracts\Provider setScopes(array|string $scopes)
* @method \Laravel\Socialite\Contracts\Provider redirectUrl(string $url)
* @see \Laravel\Socialite\SocialiteManager
*/ class Socialite {
/**
* Get a driver instance.
*
* @param string $driver
* @return mixed
* @static
*/ public static function with($driver)
{
/** @var \Laravel\Socialite\SocialiteManager $instance */
return $instance->with($driver);
}
/**
* Build an OAuth 2 provider instance.
*
* @param string $provider
* @param array $config
* @return \Laravel\Socialite\Two\AbstractProvider
* @static
*/ public static function buildProvider($provider, $config)
{
/** @var \Laravel\Socialite\SocialiteManager $instance */
return $instance->buildProvider($provider, $config);
}
/**
* Format the server configuration.
*
* @param array $config
* @return array
* @static
*/ public static function formatConfig($config)
{
/** @var \Laravel\Socialite\SocialiteManager $instance */
return $instance->formatConfig($config);
}
/**
* Forget all of the resolved driver instances.
*
* @return \Laravel\Socialite\SocialiteManager
* @static
*/ public static function forgetDrivers()
{
/** @var \Laravel\Socialite\SocialiteManager $instance */
return $instance->forgetDrivers();
}
/**
* Set the container instance used by the manager.
*
* @param \Illuminate\Contracts\Container\Container $container
* @return \Laravel\Socialite\SocialiteManager
* @static
*/ public static function setContainer($container)
{
/** @var \Laravel\Socialite\SocialiteManager $instance */
return $instance->setContainer($container);
}
/**
* Get the default driver name.
*
* @return string
* @throws \InvalidArgumentException
* @static
*/ public static function getDefaultDriver()
{
/** @var \Laravel\Socialite\SocialiteManager $instance */
return $instance->getDefaultDriver();
}
/**
* Get a driver instance.
*
* @param string|null $driver
* @return mixed
* @throws \InvalidArgumentException
* @static
*/ public static function driver($driver = null)
{ //Method inherited from \Illuminate\Support\Manager
/** @var \Laravel\Socialite\SocialiteManager $instance */
return $instance->driver($driver);
}
/**
* Register a custom driver creator Closure.
*
* @param string $driver
* @param \Closure $callback
* @return \Laravel\Socialite\SocialiteManager
* @static
*/ public static function extend($driver, $callback)
{ //Method inherited from \Illuminate\Support\Manager
/** @var \Laravel\Socialite\SocialiteManager $instance */
return $instance->extend($driver, $callback);
}
/**
* Get all of the created "drivers".
*
* @return array
* @static
*/ public static function getDrivers()
{ //Method inherited from \Illuminate\Support\Manager
/** @var \Laravel\Socialite\SocialiteManager $instance */
return $instance->getDrivers();
}
/**
* Get the container instance used by the manager.
*
* @return \Illuminate\Contracts\Container\Container
* @static
*/ public static function getContainer()
{ //Method inherited from \Illuminate\Support\Manager
/** @var \Laravel\Socialite\SocialiteManager $instance */
return $instance->getContainer();
}
}
}

namespace Livewire {
/**
*
Expand Down Expand Up @@ -21803,12 +21926,12 @@
*
*
* @see \Filament\Tables\Testing\TestsActions::assertTableActionDataSet()
* @param array $data
* @param \Closure|array $state
* @return static
* @static
*/ public static function assertTableActionDataSet($data)
*/ public static function assertTableActionDataSet($state)
{
return \Livewire\Features\SupportTesting\Testable::assertTableActionDataSet($data);
return \Livewire\Features\SupportTesting\Testable::assertTableActionDataSet($state);
}
/**
*
Expand Down Expand Up @@ -22163,12 +22286,12 @@
*
*
* @see \Filament\Tables\Testing\TestsBulkActions::assertTableBulkActionDataSet()
* @param array $data
* @param \Closure|array $state
* @return static
* @static
*/ public static function assertTableBulkActionDataSet($data)
*/ public static function assertTableBulkActionDataSet($state)
{
return \Livewire\Features\SupportTesting\Testable::assertTableBulkActionDataSet($data);
return \Livewire\Features\SupportTesting\Testable::assertTableBulkActionDataSet($state);
}
/**
*
Expand Down Expand Up @@ -27008,6 +27131,7 @@ class View extends \Illuminate\Support\Facades\View {}
class Vite extends \Illuminate\Support\Facades\Vite {}
class EloquentSerialize extends \AnourValar\EloquentSerialize\Facades\EloquentSerializeFacade {}
class DotenvEditor extends \Jackiedo\DotenvEditor\Facades\DotenvEditor {}
class Socialite extends \Laravel\Socialite\Facades\Socialite {}
class Livewire extends \Livewire\Livewire {}
class LaravelLocalization extends \Mcamara\LaravelLocalization\Facades\LaravelLocalization {}
class FilamentTranslateField extends \SolutionForest\FilamentTranslateField\Facades\FilamentTranslateField {}
Expand Down
Loading

0 comments on commit bdbb0f4

Please sign in to comment.