gliterd /
laravel-backblaze-b2
| 1 | <?php |
||
| 2 | |||
| 3 | namespace Gliterd\BackblazeB2; |
||
| 4 | |||
| 5 | use BackblazeB2\Client as BackblazeClient; |
||
| 6 | use Illuminate\Support\Facades\Storage; |
||
|
0 ignored issues
–
show
|
|||
| 7 | use Illuminate\Support\ServiceProvider; |
||
|
0 ignored issues
–
show
The type
Illuminate\Support\ServiceProvider was not found. Maybe you did not declare it correctly or list all dependencies?
The issue could also be caused by a filter entry in the build configuration.
If the path has been excluded in your configuration, e.g. filter:
dependency_paths: ["lib/*"]
For further information see https://scrutinizer-ci.com/docs/tools/php/php-scrutinizer/#list-dependency-paths Loading history...
|
|||
| 8 | use League\Flysystem\Filesystem; |
||
| 9 | use Mhetreramesh\Flysystem\BackblazeAdapter; |
||
| 10 | |||
| 11 | class BackblazeB2ServiceProvider extends ServiceProvider |
||
| 12 | { |
||
| 13 | public function boot() |
||
| 14 | { |
||
| 15 | Storage::extend('b2', function ($app, $config) { |
||
| 16 | if (!( |
||
| 17 | isset($config['accountId']) || |
||
| 18 | isset($config['applicationKey']) || |
||
| 19 | isset($config['bucketName']))) { |
||
| 20 | throw new BackblazeB2Exception('Please set all configuration keys. (accountId, applicationKey, bucketName)'); |
||
| 21 | } |
||
| 22 | $client = new BackblazeClient($config['accountId'], $config['applicationKey']); |
||
| 23 | $adapter = new BackblazeAdapter($client, $config['bucketName']); |
||
| 24 | |||
| 25 | return new Filesystem($adapter); |
||
| 26 | }); |
||
| 27 | } |
||
| 28 | |||
| 29 | public function register() |
||
| 30 | { |
||
| 31 | } |
||
| 32 | } |
||
| 33 |
The issue could also be caused by a filter entry in the build configuration. If the path has been excluded in your configuration, e.g.
excluded_paths: ["lib/*"], you can move it to the dependency path list as follows:For further information see https://scrutinizer-ci.com/docs/tools/php/php-scrutinizer/#list-dependency-paths