-
-
Notifications
You must be signed in to change notification settings - Fork 167
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Unresolvable dependency resolving #130
Comments
Hi, could you please check if the provider is auto-discovered? This seems like the service provider was not loaded. I've tried Laravel 8 + PHP 8.0 (real upload) in example repo an it works :( |
Thanks I will try. However, even when I try and manually get the provider
to copy over the console prints out that there was nothing to copy in.
…On Tue, Mar 22, 2022 at 8:03 PM Martin Kluska ***@***.***> wrote:
Hi,
could you please check if the provider is auto-discovered? This seems like
the service provider was not loaded.
I've tried Laravel 8 + PHP 8.0 (real upload) in example
<https://github.com/pionl/laravel-chunk-upload-example> repo an it works
:(
—
Reply to this email directly, view it on GitHub
<#130 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AAHBIKCUU4NFQT6B64USWMDVBIDQPANCNFSM5RKQTXZQ>
.
You are receiving this because you authored the thread.Message ID:
***@***.***>
|
It should not copy anything, It seems that the Laravel has not auto-discovered the package for some reason - maybe you have disabled this functionality? |
Have you found out the problem? Otherwise im gona close the issue |
Did do you disable auto discover feature in Laravel? |
hmm no...i am on laravel 8 and just using composer to install your script, anyway thank you so much |
Hello.
I tried to use the controllers here to create a chucked upload. I am getting the following error
"Unresolvable dependency resolving [Parameter #0 [ $disk ]] in class Pion\Laravel\ChunkUpload\Storage\ChunkStorage"
It seems that when the FileReceiver is trying to initialize it calls the following method in
ChunkStorage.php
public static function storage() { return app(self::class); }
That method is returning an instance of self but the constructor for that class requires two params:
public function __construct($disk, $config) { .... }
As a result, it seems there is an instance loading problem.
The text was updated successfully, but these errors were encountered: