diff --git a/composer.json b/composer.json index 0bd998d..a8895f1 100644 --- a/composer.json +++ b/composer.json @@ -70,6 +70,9 @@ "laravel": { "providers": [ "Sprout\\SproutServiceProvider" + ], + "facades":[ + "Sprout\\Facades\\Sprout" ] } }, diff --git a/src/Facades/Sprout.php b/src/Facades/Sprout.php new file mode 100644 index 0000000..97d1c46 --- /dev/null +++ b/src/Facades/Sprout.php @@ -0,0 +1,49 @@ + getAllCurrentTenancies() + * @method static array getCurrentOverrides(?Tenancy $tenancy = null) + * @method static Tenancy|null getCurrentTenancy() + * @method static array getOverrides() + * @method static array 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; + } +}