mirror of
https://git.meshkee.com/cssd/cssd-back.git
synced 2026-10-10 19:51:07 +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 );
|
||||
}
|
||||
}
|
||||
|
||||
@@ -11,7 +11,6 @@
|
||||
"php": "^7.1.3",
|
||||
"coraxster/flysystem-aws-s3-v3-minio": "^1.0",
|
||||
"fideloper/proxy": "^4.0",
|
||||
"intervention/image": "^2.5",
|
||||
"spatie/laravel-medialibrary": "^7.0",
|
||||
"kalnoy/nestedset": "^5.0",
|
||||
"laravel/framework": "5.8.*",
|
||||
|
||||
Generated
+12
-12
@@ -4,7 +4,7 @@
|
||||
"Read more about it at https://getcomposer.org/doc/01-basic-usage.md#installing-dependencies",
|
||||
"This file is @generated automatically"
|
||||
],
|
||||
"content-hash": "d6e9993640e958efaccbd6c16695e927",
|
||||
"content-hash": "09a34a136095f8d7b0266b74b8705b29",
|
||||
"packages": [
|
||||
{
|
||||
"name": "aws/aws-crt-php",
|
||||
@@ -2990,16 +2990,16 @@
|
||||
},
|
||||
{
|
||||
"name": "nesbot/carbon",
|
||||
"version": "2.72.0",
|
||||
"version": "2.72.1",
|
||||
"source": {
|
||||
"type": "git",
|
||||
"url": "https://github.com/briannesbitt/Carbon.git",
|
||||
"reference": "a6885fcbad2ec4360b0e200ee0da7d9b7c90786b"
|
||||
"reference": "2b3b3db0a2d0556a177392ff1a3bf5608fa09f78"
|
||||
},
|
||||
"dist": {
|
||||
"type": "zip",
|
||||
"url": "https://api.github.com/repos/briannesbitt/Carbon/zipball/a6885fcbad2ec4360b0e200ee0da7d9b7c90786b",
|
||||
"reference": "a6885fcbad2ec4360b0e200ee0da7d9b7c90786b",
|
||||
"url": "https://api.github.com/repos/briannesbitt/Carbon/zipball/2b3b3db0a2d0556a177392ff1a3bf5608fa09f78",
|
||||
"reference": "2b3b3db0a2d0556a177392ff1a3bf5608fa09f78",
|
||||
"shasum": ""
|
||||
},
|
||||
"require": {
|
||||
@@ -3093,20 +3093,20 @@
|
||||
"type": "tidelift"
|
||||
}
|
||||
],
|
||||
"time": "2023-11-28T10:13:25+00:00"
|
||||
"time": "2023-12-08T23:47:49+00:00"
|
||||
},
|
||||
{
|
||||
"name": "nikic/php-parser",
|
||||
"version": "v4.17.1",
|
||||
"version": "v4.18.0",
|
||||
"source": {
|
||||
"type": "git",
|
||||
"url": "https://github.com/nikic/PHP-Parser.git",
|
||||
"reference": "a6303e50c90c355c7eeee2c4a8b27fe8dc8fef1d"
|
||||
"reference": "1bcbb2179f97633e98bbbc87044ee2611c7d7999"
|
||||
},
|
||||
"dist": {
|
||||
"type": "zip",
|
||||
"url": "https://api.github.com/repos/nikic/PHP-Parser/zipball/a6303e50c90c355c7eeee2c4a8b27fe8dc8fef1d",
|
||||
"reference": "a6303e50c90c355c7eeee2c4a8b27fe8dc8fef1d",
|
||||
"url": "https://api.github.com/repos/nikic/PHP-Parser/zipball/1bcbb2179f97633e98bbbc87044ee2611c7d7999",
|
||||
"reference": "1bcbb2179f97633e98bbbc87044ee2611c7d7999",
|
||||
"shasum": ""
|
||||
},
|
||||
"require": {
|
||||
@@ -3147,9 +3147,9 @@
|
||||
],
|
||||
"support": {
|
||||
"issues": "https://github.com/nikic/PHP-Parser/issues",
|
||||
"source": "https://github.com/nikic/PHP-Parser/tree/v4.17.1"
|
||||
"source": "https://github.com/nikic/PHP-Parser/tree/v4.18.0"
|
||||
},
|
||||
"time": "2023-08-13T19:53:39+00:00"
|
||||
"time": "2023-12-10T21:03:43+00:00"
|
||||
},
|
||||
{
|
||||
"name": "nyholm/psr7",
|
||||
|
||||
Reference in New Issue
Block a user