存储服务
This commit is contained in:
parent
485f14568d
commit
be7e12ed2e
@ -22,7 +22,7 @@ class AbstractCloud
|
|||||||
|
|
||||||
public function __construct()
|
public function __construct()
|
||||||
{
|
{
|
||||||
$this->host = config('icloud.host');
|
$this->host = config('cloud.host');
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
@ -57,7 +57,7 @@ class AbstractCloud
|
|||||||
return self::urlSafeBase64Encode(sprintf('%s:%s', $bucket, $resourceName));
|
return self::urlSafeBase64Encode(sprintf('%s:%s', $bucket, $resourceName));
|
||||||
}
|
}
|
||||||
|
|
||||||
public function __call($name, ...$arguments)
|
public function __call($name, $arguments)
|
||||||
{
|
{
|
||||||
// TODO: Implement __call() method.
|
// TODO: Implement __call() method.
|
||||||
$client = new Client;
|
$client = new Client;
|
||||||
|
@ -38,10 +38,10 @@ class ICloudFactory
|
|||||||
* @param mixed ...$arguments
|
* @param mixed ...$arguments
|
||||||
* @return mixed
|
* @return mixed
|
||||||
*/
|
*/
|
||||||
public static function __callStatic($name, ...$arguments)
|
public static function __callStatic($name, $arguments)
|
||||||
{
|
{
|
||||||
$cloud = !self::$driver ? config('cloud.driver.' . config('cloud.driver.default')) : config('cloud.driver.' . self::$driver);
|
|
||||||
// TODO: Implement __callStatic() method.
|
// TODO: Implement __callStatic() method.
|
||||||
|
$cloud = !self::$driver ? config('cloud.driver.' . config('cloud.driver.default')) : config('cloud.driver.' . self::$driver);
|
||||||
|
|
||||||
return (new $cloud)->$name(...$arguments);
|
return (new $cloud)->$name(...$arguments);
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user