1
0
Fork 0
mirror of https://github.com/archtechx/tenancy.git synced 2025-12-12 16:24:04 +00:00

Default tag callback for Telescope

This commit is contained in:
Samuel Štancl 2019-09-29 11:50:32 +02:00
parent 553b162930
commit dcc9bda758

View file

@ -14,6 +14,13 @@ class TelescopeTags implements Feature
/** @var callable User-specific callback that returns tags. */
protected $callback;
public function __construct()
{
$this->callback = function ($entry) {
return [];
};
}
public function bootstrap(TenantManager $tenantManager): void
{
if (! class_exists(Telescope::class)) {