$config = new Config('your_application_id', 'your_application_auth_key', 'your_auth_key');
$httpClient = new Psr18Client();
$requestFactory = $streamFactory = new Psr17Factory();
$oneSignal = new OneSignal($config, $httpClient, $requestFactory, $streamFactory);
but it gives me this error
Argument 2 passed to OneSignal\OneSignal::__construct() must be an instance of Http\Client\Common\HttpMethodsClient or null, instance of Symfony\Component\HttpClient\Psr18Client given, called in /Users/marco/marco96/projects/symfony_x/src/Controller/Test/OneSignalController.php on line 28
Am I missing something or maybe the readme should be updated?
Thanks.
I've just try this piece of code from the readme
but it gives me this error
Argument 2 passed to OneSignal\OneSignal::__construct() must be an instance of Http\Client\Common\HttpMethodsClient or null, instance of Symfony\Component\HttpClient\Psr18Client given, called in /Users/marco/marco96/projects/symfony_x/src/Controller/Test/OneSignalController.php on line 28
Am I missing something or maybe the readme should be updated? Thanks.