-
-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
2 changed files
with
52 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,49 @@ | ||
<?php | ||
declare(strict_types=1); | ||
|
||
namespace Sprout\Facades; | ||
|
||
use Illuminate\Support\Facades\Facade; | ||
use Sprout\Contracts\ServiceOverride; | ||
use Sprout\Contracts\Tenancy; | ||
use Sprout\Contracts\Tenant; | ||
use Sprout\Managers\IdentityResolverManager; | ||
use Sprout\Managers\ProviderManager; | ||
use Sprout\Support\ResolutionHook; | ||
|
||
/** | ||
* Sprout Facade | ||
* | ||
* @method static void bootOverrides() | ||
* @method static void cleanupOverrides(Tenancy $tenancy, Tenant $tenant) | ||
* @method static mixed config(string $key, mixed $default = null) | ||
* @method static array<Tenancy> getAllCurrentTenancies() | ||
* @method static array<ServiceOverride> getCurrentOverrides(?Tenancy $tenancy = null) | ||
* @method static Tenancy|null getCurrentTenancy() | ||
* @method static array<string, ServiceOverride> getOverrides() | ||
* @method static array<string> getRegisteredOverrides() | ||
* @method static bool hasBootedOverride(string $class) | ||
* @method static bool hasCurrentTenancy() | ||
* @method static bool hasOverride(string $class) | ||
* @method static bool hasRegisteredOverride(string $class) | ||
* @method static bool hasSetupOverride(Tenancy $tenancy, string $class) | ||
* @method static bool haveOverridesBooted() | ||
* @method static bool isBootableOverride(string $class) | ||
* @method static \Sprout\Sprout markAsInContext() | ||
* @method static \Sprout\Sprout markAsOutsideContext() | ||
* @method static ProviderManager providers() | ||
* @method static \Sprout\Sprout registerOverride(string $class) | ||
* @method static IdentityResolverManager resolvers() | ||
* @method static void setCurrentTenancy(Tenancy $tenancy) | ||
* @method static void setupOverrides(Tenancy $tenancy, Tenant $tenant) | ||
* @method static bool supportsHook(ResolutionHook $hook) | ||
* @method static \Sprout\Managers\TenancyManager tenancies() | ||
* @method static bool withinContext() | ||
*/ | ||
final class Sprout extends Facade | ||
{ | ||
protected static function getFacadeAccessor(): string | ||
{ | ||
return \Sprout\Sprout::class; | ||
} | ||
} |