mirror of
https://github.com/archtechx/tenancy.git
synced 2025-12-14 02:34:05 +00:00
Feature -> FeatureProvider
This commit is contained in:
parent
9dd90746aa
commit
f6717fa5c9
3 changed files with 5 additions and 6 deletions
|
|
@ -7,8 +7,7 @@ namespace Stancl\Tenancy\Contracts;
|
||||||
use Stancl\Tenancy\TenantManager;
|
use Stancl\Tenancy\TenantManager;
|
||||||
|
|
||||||
/** Additional features, like Telescope tags and tenant redirects. */
|
/** Additional features, like Telescope tags and tenant redirects. */
|
||||||
// todo should this be FeatureProvider?
|
interface FeatureProvider
|
||||||
interface Feature
|
|
||||||
{
|
{
|
||||||
public function bootstrap(TenantManager $tenantManager): void;
|
public function bootstrap(TenantManager $tenantManager): void;
|
||||||
}
|
}
|
||||||
|
|
@ -7,9 +7,9 @@ namespace Stancl\Tenancy\Features;
|
||||||
use Laravel\Telescope\Telescope;
|
use Laravel\Telescope\Telescope;
|
||||||
use Stancl\Tenancy\TenantManager;
|
use Stancl\Tenancy\TenantManager;
|
||||||
use Laravel\Telescope\IncomingEntry;
|
use Laravel\Telescope\IncomingEntry;
|
||||||
use Stancl\Tenancy\Contracts\Feature;
|
use Stancl\Tenancy\Contracts\FeatureProvider;
|
||||||
|
|
||||||
class TelescopeTags implements Feature
|
class TelescopeTags implements FeatureProvider
|
||||||
{
|
{
|
||||||
/** @var callable User-specific callback that returns tags. */
|
/** @var callable User-specific callback that returns tags. */
|
||||||
protected $callback;
|
protected $callback;
|
||||||
|
|
|
||||||
|
|
@ -3,9 +3,9 @@
|
||||||
declare(strict_types=1);
|
declare(strict_types=1);
|
||||||
|
|
||||||
use Stancl\Tenancy\TenantManager;
|
use Stancl\Tenancy\TenantManager;
|
||||||
use Stancl\Tenancy\Contracts\Feature;
|
use Stancl\Tenancy\Contracts\FeatureProvider;
|
||||||
|
|
||||||
class TenantRedirect implements Feature
|
class TenantRedirect implements FeatureProvider
|
||||||
{
|
{
|
||||||
public function bootstrap(TenantManager $tenantManager): void
|
public function bootstrap(TenantManager $tenantManager): void
|
||||||
{
|
{
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue