mirror of
https://git.meshkee.com/cssd/cssd-back.git
synced 2026-10-13 02:41:08 +03:30
delete invertion package
This commit is contained in:
@@ -13,20 +13,20 @@ class FtpUrlGenerator extends BaseUrlGenerator
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
public function getUrl() : string
|
||||
public function getUrl(): string
|
||||
{
|
||||
return config('media-library.wm-cdn').'/'.$this->getPathRelativeToRoot();
|
||||
return config( 'media-library.wm-cdn' ) . '/' . $this->getPathRelativeToRoot();
|
||||
}
|
||||
|
||||
/**
|
||||
* @param \DateTimeInterface $expiration
|
||||
* @param array $options
|
||||
* @param array $options
|
||||
*
|
||||
* @return string
|
||||
*
|
||||
* @throws UrlCannotBeDetermined
|
||||
*/
|
||||
public function getTemporaryUrl(DateTimeInterface $expiration, array $options = []): string
|
||||
public function getTemporaryUrl( DateTimeInterface $expiration , array $options = [] ): string
|
||||
{
|
||||
throw UrlCannotBeDetermined::filesystemDoesNotSupportTemporaryUrls();
|
||||
return 'done';
|
||||
@@ -50,6 +50,6 @@ class FtpUrlGenerator extends BaseUrlGenerator
|
||||
*/
|
||||
public function getResponsiveImagesDirectoryUrl(): string
|
||||
{
|
||||
return config('media-library.wm-cdn').'/'.$this->pathGenerator->getPathForResponsiveImages($this->media);
|
||||
return config( 'media-library.wm-cdn' ) . '/' . $this->pathGenerator->getPathForResponsiveImages( $this->media );
|
||||
}
|
||||
}
|
||||
|
||||
@@ -5,26 +5,26 @@ namespace App\Services\Media\UrlGenerator;
|
||||
use DateTimeInterface;
|
||||
use Spatie\MediaLibrary\UrlGenerator\BaseUrlGenerator;
|
||||
|
||||
class S3UrlGenerator extends BaseUrlGenerator
|
||||
class S3UrlGenerator extends BaseUrlGenerator
|
||||
{
|
||||
/**
|
||||
* Get the url for the profile of a media item.
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
public function getUrl() : string
|
||||
public function getUrl(): string
|
||||
{
|
||||
return config('media-library.s3.domain').'/'.$this->getPathRelativeToRoot();
|
||||
return config( 'media-library.s3.domain' ) . '/' . $this->getPathRelativeToRoot();
|
||||
}
|
||||
|
||||
/**
|
||||
* @param \DateTimeInterface $expiration
|
||||
* @param array $options
|
||||
* @param array $options
|
||||
*
|
||||
* @return string
|
||||
*
|
||||
*/
|
||||
public function getTemporaryUrl(DateTimeInterface $expiration, array $options = []): string
|
||||
public function getTemporaryUrl( DateTimeInterface $expiration , array $options = [] ): string
|
||||
{
|
||||
|
||||
return 'done';
|
||||
@@ -48,6 +48,6 @@ use Spatie\MediaLibrary\UrlGenerator\BaseUrlGenerator;
|
||||
*/
|
||||
public function getResponsiveImagesDirectoryUrl(): string
|
||||
{
|
||||
return config('media-library.s3.domain').'/'.$this->pathGenerator->getPathForResponsiveImages($this->media);
|
||||
return config( 'media-library.s3.domain' ) . '/' . $this->pathGenerator->getPathForResponsiveImages( $this->media );
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user