File tree Expand file tree Collapse file tree 8 files changed +27
-25
lines changed
Expand file tree Collapse file tree 8 files changed +27
-25
lines changed Original file line number Diff line number Diff line change 3434 'unary_operator_spaces ' => true ,
3535 'visibility_required ' => [
3636 'elements ' => [
37- // 'const',
3837 'method ' ,
3938 'property ' ,
4039 ],
Load Diff This file was deleted.
Original file line number Diff line number Diff line change 44Laravel 的阿里云对象存储 Storage 扩展
55
66[ ![ Latest Stable Version] ( https://poser.pugx.org/alphasnow/aliyun-oss-laravel/v/stable )] ( https://packagist.org/packages/alphasnow/aliyun-oss-laravel )
7- [ ![ Code Coverage ] ( https://scrutinizer-ci.com/g/ alphasnow/aliyun-oss-laravel/badges/coverage.png?b=master )] ( https://scrutinizer-ci.com/g /alphasnow/aliyun-oss-laravel/?branch=master )
7+ [ ![ Total Downloads ] ( https://poser.pugx.org/ alphasnow/aliyun-oss-laravel/downloads )] ( https://packagist.org/packages /alphasnow/aliyun-oss-laravel )
88[ ![ Build Status] ( https://github.com/alphasnow/aliyun-oss-laravel/workflows/CI/badge.svg )] ( https://github.com/alphasnow/aliyun-oss-laravel/actions )
9- [ ![ Build Status] ( https://travis-ci.com/alphasnow/aliyun-oss-laravel.svg?branch=master )] ( https://travis-ci.com/alphasnow/aliyun-oss-laravel )
10- [ ![ FOSSA Status] ( https://app.fossa.com/api/projects/git%2Bgithub.com%2Falphasnow%2Faliyun-oss-laravel.svg?type=shield )] ( https://app.fossa.com/projects/git%2Bgithub.com%2Falphasnow%2Faliyun-oss-laravel?ref=badge_shield )
9+ [ ![ Code Coverage] ( https://scrutinizer-ci.com/g/alphasnow/aliyun-oss-laravel/badges/coverage.png?b=master )] ( https://scrutinizer-ci.com/g/alphasnow/aliyun-oss-laravel/?branch=master )
1110[ ![ License] ( https://poser.pugx.org/alphasnow/aliyun-oss-laravel/license )] ( https://packagist.org/packages/alphasnow/aliyun-oss-laravel )
11+ [ ![ FOSSA Status] ( https://app.fossa.com/api/projects/git%2Bgithub.com%2Falphasnow%2Faliyun-oss-laravel.svg?type=shield )] ( https://app.fossa.com/projects/git%2Bgithub.com%2Falphasnow%2Faliyun-oss-laravel?ref=badge_shield )
1212
1313这个包是封装 [ aliyun-oss-flysystem] ( https://github.com/alphasnow/aliyun-oss-flysystem ) 到 Laravel 来作为 Storage 使用.
1414
Original file line number Diff line number Diff line change @@ -4,11 +4,11 @@ English | [简体中文](README-CN.md)
44Alibaba Cloud Object Storage Service For Laravel
55
66[ ![ Latest Stable Version] ( https://poser.pugx.org/alphasnow/aliyun-oss-laravel/v/stable )] ( https://packagist.org/packages/alphasnow/aliyun-oss-laravel )
7- [ ![ Code Coverage ] ( https://scrutinizer-ci.com/g/ alphasnow/aliyun-oss-laravel/badges/coverage.png?b=master )] ( https://scrutinizer-ci.com/g /alphasnow/aliyun-oss-laravel/?branch=master )
7+ [ ![ Total Downloads ] ( https://poser.pugx.org/ alphasnow/aliyun-oss-laravel/downloads )] ( https://packagist.org/packages /alphasnow/aliyun-oss-laravel )
88[ ![ Build Status] ( https://github.com/alphasnow/aliyun-oss-laravel/workflows/CI/badge.svg )] ( https://github.com/alphasnow/aliyun-oss-laravel/actions )
9- [ ![ Build Status] ( https://travis-ci.com/alphasnow/aliyun-oss-laravel.svg?branch=master )] ( https://travis-ci.com/alphasnow/aliyun-oss-laravel )
10- [ ![ FOSSA Status] ( https://app.fossa.com/api/projects/git%2Bgithub.com%2Falphasnow%2Faliyun-oss-laravel.svg?type=shield )] ( https://app.fossa.com/projects/git%2Bgithub.com%2Falphasnow%2Faliyun-oss-laravel?ref=badge_shield )
9+ [ ![ Code Coverage] ( https://scrutinizer-ci.com/g/alphasnow/aliyun-oss-laravel/badges/coverage.png?b=master )] ( https://scrutinizer-ci.com/g/alphasnow/aliyun-oss-laravel/?branch=master )
1110[ ![ License] ( https://poser.pugx.org/alphasnow/aliyun-oss-laravel/license )] ( https://packagist.org/packages/alphasnow/aliyun-oss-laravel )
11+ [ ![ FOSSA Status] ( https://app.fossa.com/api/projects/git%2Bgithub.com%2Falphasnow%2Faliyun-oss-laravel.svg?type=shield )] ( https://app.fossa.com/projects/git%2Bgithub.com%2Falphasnow%2Faliyun-oss-laravel?ref=badge_shield )
1212
1313This package is a wrapper bridging [ aliyun-oss-flysystem] ( https://github.com/alphasnow/aliyun-oss-flysystem ) into Laravel as an available storage disk.
1414
Original file line number Diff line number Diff line change 11parameters :
2- level : 3
3-
4- inferPrivatePropertyTypeFromConstructor : true
2+ level : 6
53
64 paths :
7- - %currentWorkingDirectory%/ src
5+ - src
86
97 ignoreErrors :
8+
9+ checkMissingIterableValueType : false
Original file line number Diff line number Diff line change 66use League \Flysystem \Config as FlysystemConfig ;
77use OSS \OssClient ;
88
9+ /**
10+ * Class Adapter
11+ */
912class Adapter extends BaseAdapter
1013{
1114 /**
Original file line number Diff line number Diff line change 44
55use Illuminate \Support \Collection ;
66
7+ /**
8+ * Class Config
9+ */
710class Config extends Collection
811{
912 /**
@@ -76,6 +79,10 @@ public function getOssClientParameters()
7679 ];
7780 }
7881
82+ /**
83+ * @param string $url
84+ * @return string
85+ */
7986 public function correctUrl ($ url )
8087 {
8188 // correct internal domain
Original file line number Diff line number Diff line change 1010
1111/**
1212 * Class ServiceProvider
13- * @package AlphaSnow\AliyunOss
1413 */
1514class ServiceProvider extends BaseServiceProvider
1615{
16+ /**
17+ * @throws \Illuminate\Contracts\Container\BindingResolutionException
18+ * @return void
19+ */
1720 public function boot ()
1821 {
1922 $ this ->mergeConfigFrom (
@@ -27,6 +30,9 @@ public function boot()
2730 });
2831 }
2932
33+ /**
34+ * {@inheritdoc}
35+ */
3036 public function register ()
3137 {
3238 $ this ->app ->bind ('aliyun-oss.oss-client ' , function ($ app , array $ config ) {
You can’t perform that action at this time.
0 commit comments