mirror of
https://github.com/archtechx/tenancy.git
synced 2026-05-06 18:04:03 +00:00
Import InvalidArgumentException
This commit is contained in:
parent
1ae418c8b3
commit
95fd0462e6
1 changed files with 2 additions and 1 deletions
|
|
@ -11,6 +11,7 @@ use Illuminate\Log\LogManager;
|
||||||
use Illuminate\Support\Arr;
|
use Illuminate\Support\Arr;
|
||||||
use Stancl\Tenancy\Contracts\TenancyBootstrapper;
|
use Stancl\Tenancy\Contracts\TenancyBootstrapper;
|
||||||
use Stancl\Tenancy\Contracts\Tenant;
|
use Stancl\Tenancy\Contracts\Tenant;
|
||||||
|
use InvalidArgumentException;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* This bootstrapper makes it possible to configure tenant-specific logging.
|
* This bootstrapper makes it possible to configure tenant-specific logging.
|
||||||
|
|
@ -155,7 +156,7 @@ class LogTenancyBootstrapper implements TenancyBootstrapper
|
||||||
$result = $override($tenant, $this->config->get($channelConfigKey));
|
$result = $override($tenant, $this->config->get($channelConfigKey));
|
||||||
|
|
||||||
if (! is_array($result)) {
|
if (! is_array($result)) {
|
||||||
throw new \InvalidArgumentException("Channel override closure for '{$channel}' must return an array.");
|
throw new InvalidArgumentException("Channel override closure for '{$channel}' must return an array.");
|
||||||
}
|
}
|
||||||
|
|
||||||
$this->config->set($channelConfigKey, $result);
|
$this->config->set($channelConfigKey, $result);
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue