verze-app / solana-php-sdk

Simple PHP SDK for Solana JSON RPC endpoints
MIT License
88 stars 45 forks source link

Symfony 5.2 : A facade root has not been set #17

Closed berscoin closed 2 years ago

berscoin commented 2 years ago

Hello,

I have an error with my Symfony 5.2 :

throw new RuntimeException('A facade root has not been set.'); in illuminate\support\Facades\Facade.php (line 258).

How can I fixe it please ? Regards.

mattstauffer commented 2 years ago

ahh, i used the HTTP facade:

src/SolanaRpcClient.php:use Illuminate\Support\Facades\Http;

We can re-work that to not use the Facade anymore.

mattstauffer commented 2 years ago

@berscoin Please try release v0.2.1 and let me know if it fixes it!

berscoin commented 2 years ago

Hello,

It worked with 0.2.1 ;) Is there sdk-spltoken-php ?

Thank you.

mattstauffer commented 2 years ago

Not sure what sdk-spltoken-php would be :) I certainly have nothing to do with it if it exists. Thanks for verifying it worked!