HTTP Client use
Permalink
I need to access a restful service from my controller. The doc's say there is an http-client based on zend in ver 8.2 and above. The docs say to create an instance of the client
However when I do that I get "Call to a member function make() on null". I've also added the use statement in the controller
Can I just add Guzzle to the composer.json file and add it to concrete, I'm more familiar with using that.
Thanks
Concrete Ver. 8.4.2
PHP 7.1
$client = $app->make('http/client');
However when I do that I get "Call to a member function make() on null". I've also added the use statement in the controller
use Concrete\Core\Http\Client\Client;
Can I just add Guzzle to the composer.json file and add it to concrete, I'm more familiar with using that.
Thanks
Concrete Ver. 8.4.2
PHP 7.1
See also this useful cheatsheet:https://github.com/shahroq/whale_c5_cheat_sheet#application-app...