mirror of
https://git.meshkee.com/cssd/cssd-back.git
synced 2026-10-13 14:51:06 +03:30
delete invertion package
This commit is contained in:
@@ -13,20 +13,20 @@ class FtpUrlGenerator extends BaseUrlGenerator
|
|||||||
*
|
*
|
||||||
* @return string
|
* @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 \DateTimeInterface $expiration
|
||||||
* @param array $options
|
* @param array $options
|
||||||
*
|
*
|
||||||
* @return string
|
* @return string
|
||||||
*
|
*
|
||||||
* @throws UrlCannotBeDetermined
|
* @throws UrlCannotBeDetermined
|
||||||
*/
|
*/
|
||||||
public function getTemporaryUrl(DateTimeInterface $expiration, array $options = []): string
|
public function getTemporaryUrl( DateTimeInterface $expiration , array $options = [] ): string
|
||||||
{
|
{
|
||||||
throw UrlCannotBeDetermined::filesystemDoesNotSupportTemporaryUrls();
|
throw UrlCannotBeDetermined::filesystemDoesNotSupportTemporaryUrls();
|
||||||
return 'done';
|
return 'done';
|
||||||
@@ -50,6 +50,6 @@ class FtpUrlGenerator extends BaseUrlGenerator
|
|||||||
*/
|
*/
|
||||||
public function getResponsiveImagesDirectoryUrl(): string
|
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 DateTimeInterface;
|
||||||
use Spatie\MediaLibrary\UrlGenerator\BaseUrlGenerator;
|
use Spatie\MediaLibrary\UrlGenerator\BaseUrlGenerator;
|
||||||
|
|
||||||
class S3UrlGenerator extends BaseUrlGenerator
|
class S3UrlGenerator extends BaseUrlGenerator
|
||||||
{
|
{
|
||||||
/**
|
/**
|
||||||
* Get the url for the profile of a media item.
|
* Get the url for the profile of a media item.
|
||||||
*
|
*
|
||||||
* @return string
|
* @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 \DateTimeInterface $expiration
|
||||||
* @param array $options
|
* @param array $options
|
||||||
*
|
*
|
||||||
* @return string
|
* @return string
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
public function getTemporaryUrl(DateTimeInterface $expiration, array $options = []): string
|
public function getTemporaryUrl( DateTimeInterface $expiration , array $options = [] ): string
|
||||||
{
|
{
|
||||||
|
|
||||||
return 'done';
|
return 'done';
|
||||||
@@ -48,6 +48,6 @@ use Spatie\MediaLibrary\UrlGenerator\BaseUrlGenerator;
|
|||||||
*/
|
*/
|
||||||
public function getResponsiveImagesDirectoryUrl(): string
|
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",
|
"php": "^7.1.3",
|
||||||
"coraxster/flysystem-aws-s3-v3-minio": "^1.0",
|
"coraxster/flysystem-aws-s3-v3-minio": "^1.0",
|
||||||
"fideloper/proxy": "^4.0",
|
"fideloper/proxy": "^4.0",
|
||||||
"intervention/image": "^2.5",
|
|
||||||
"spatie/laravel-medialibrary": "^7.0",
|
"spatie/laravel-medialibrary": "^7.0",
|
||||||
"kalnoy/nestedset": "^5.0",
|
"kalnoy/nestedset": "^5.0",
|
||||||
"laravel/framework": "5.8.*",
|
"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",
|
"Read more about it at https://getcomposer.org/doc/01-basic-usage.md#installing-dependencies",
|
||||||
"This file is @generated automatically"
|
"This file is @generated automatically"
|
||||||
],
|
],
|
||||||
"content-hash": "d6e9993640e958efaccbd6c16695e927",
|
"content-hash": "09a34a136095f8d7b0266b74b8705b29",
|
||||||
"packages": [
|
"packages": [
|
||||||
{
|
{
|
||||||
"name": "aws/aws-crt-php",
|
"name": "aws/aws-crt-php",
|
||||||
@@ -2990,16 +2990,16 @@
|
|||||||
},
|
},
|
||||||
{
|
{
|
||||||
"name": "nesbot/carbon",
|
"name": "nesbot/carbon",
|
||||||
"version": "2.72.0",
|
"version": "2.72.1",
|
||||||
"source": {
|
"source": {
|
||||||
"type": "git",
|
"type": "git",
|
||||||
"url": "https://github.com/briannesbitt/Carbon.git",
|
"url": "https://github.com/briannesbitt/Carbon.git",
|
||||||
"reference": "a6885fcbad2ec4360b0e200ee0da7d9b7c90786b"
|
"reference": "2b3b3db0a2d0556a177392ff1a3bf5608fa09f78"
|
||||||
},
|
},
|
||||||
"dist": {
|
"dist": {
|
||||||
"type": "zip",
|
"type": "zip",
|
||||||
"url": "https://api.github.com/repos/briannesbitt/Carbon/zipball/a6885fcbad2ec4360b0e200ee0da7d9b7c90786b",
|
"url": "https://api.github.com/repos/briannesbitt/Carbon/zipball/2b3b3db0a2d0556a177392ff1a3bf5608fa09f78",
|
||||||
"reference": "a6885fcbad2ec4360b0e200ee0da7d9b7c90786b",
|
"reference": "2b3b3db0a2d0556a177392ff1a3bf5608fa09f78",
|
||||||
"shasum": ""
|
"shasum": ""
|
||||||
},
|
},
|
||||||
"require": {
|
"require": {
|
||||||
@@ -3093,20 +3093,20 @@
|
|||||||
"type": "tidelift"
|
"type": "tidelift"
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
"time": "2023-11-28T10:13:25+00:00"
|
"time": "2023-12-08T23:47:49+00:00"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"name": "nikic/php-parser",
|
"name": "nikic/php-parser",
|
||||||
"version": "v4.17.1",
|
"version": "v4.18.0",
|
||||||
"source": {
|
"source": {
|
||||||
"type": "git",
|
"type": "git",
|
||||||
"url": "https://github.com/nikic/PHP-Parser.git",
|
"url": "https://github.com/nikic/PHP-Parser.git",
|
||||||
"reference": "a6303e50c90c355c7eeee2c4a8b27fe8dc8fef1d"
|
"reference": "1bcbb2179f97633e98bbbc87044ee2611c7d7999"
|
||||||
},
|
},
|
||||||
"dist": {
|
"dist": {
|
||||||
"type": "zip",
|
"type": "zip",
|
||||||
"url": "https://api.github.com/repos/nikic/PHP-Parser/zipball/a6303e50c90c355c7eeee2c4a8b27fe8dc8fef1d",
|
"url": "https://api.github.com/repos/nikic/PHP-Parser/zipball/1bcbb2179f97633e98bbbc87044ee2611c7d7999",
|
||||||
"reference": "a6303e50c90c355c7eeee2c4a8b27fe8dc8fef1d",
|
"reference": "1bcbb2179f97633e98bbbc87044ee2611c7d7999",
|
||||||
"shasum": ""
|
"shasum": ""
|
||||||
},
|
},
|
||||||
"require": {
|
"require": {
|
||||||
@@ -3147,9 +3147,9 @@
|
|||||||
],
|
],
|
||||||
"support": {
|
"support": {
|
||||||
"issues": "https://github.com/nikic/PHP-Parser/issues",
|
"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",
|
"name": "nyholm/psr7",
|
||||||
|
|||||||
Reference in New Issue
Block a user