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
$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

 
dimger84 replied on at Permalink Reply
dimger84
If you are inside your controller try using:
$client = $this->app->make('http/client');


See also this useful cheatsheet:https://github.com/shahroq/whale_c5_cheat_sheet#application-app...
roobs007 replied on at Permalink Reply
That seemed to do the trick, thanks for the quick response.
dimger84 replied on at Permalink Reply
dimger84
anytime