mirror of
https://github.com/archtechx/tenancy.git
synced 2025-12-12 21:14:03 +00:00
fix phpstan issues in FilesystemTenancyBootstrapper
This commit is contained in:
parent
137d80a20c
commit
065b029f48
1 changed files with 2 additions and 2 deletions
|
|
@ -47,7 +47,7 @@ class FilesystemTenancyBootstrapper implements TenancyBootstrapper
|
||||||
// asset()
|
// asset()
|
||||||
if ($this->app['config']['tenancy.filesystem.asset_helper_tenancy'] ?? true) {
|
if ($this->app['config']['tenancy.filesystem.asset_helper_tenancy'] ?? true) {
|
||||||
if ($this->originalPaths['asset_url']) {
|
if ($this->originalPaths['asset_url']) {
|
||||||
$this->app['config']['app.asset_url'] = ($this->originalPaths['asset_url'] ?? $this->app['config']['app.url']) . "/$suffix";
|
$this->app['config']['app.asset_url'] = $this->originalPaths['asset_url'] . "/$suffix";
|
||||||
$this->app['url']->setAssetRoot($this->app['config']['app.asset_url']);
|
$this->app['url']->setAssetRoot($this->app['config']['app.asset_url']);
|
||||||
} else {
|
} else {
|
||||||
$this->app['url']->setAssetRoot($this->app['url']->route('stancl.tenancy.asset', ['path' => '']));
|
$this->app['url']->setAssetRoot($this->app['url']->route('stancl.tenancy.asset', ['path' => '']));
|
||||||
|
|
@ -84,7 +84,7 @@ class FilesystemTenancyBootstrapper implements TenancyBootstrapper
|
||||||
|
|
||||||
if ($url = str_replace(
|
if ($url = str_replace(
|
||||||
'%tenant_id%',
|
'%tenant_id%',
|
||||||
$tenant->getTenantKey(),
|
(string) $tenant->getTenantKey(),
|
||||||
$this->app['config']["tenancy.filesystem.url_override.{$disk}"] ?? ''
|
$this->app['config']["tenancy.filesystem.url_override.{$disk}"] ?? ''
|
||||||
)) {
|
)) {
|
||||||
$this->app['config']["filesystems.disks.{$disk}.url"] = url($url);
|
$this->app['config']["filesystems.disks.{$disk}.url"] = url($url);
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue