Reference the Client classes fully namespaced

This commit is contained in:
Jonny Barnes 2017-10-13 20:38:28 +01:00
parent 6fe15e4335
commit 85cb5882bc

View file

@ -3,8 +3,6 @@
namespace App\Http\Controllers; namespace App\Http\Controllers;
use App\IndieWebUser; use App\IndieWebUser;
use IndieAuth\Client as IndieClient;
use GuzzleHttp\Client as GuzzleClient;
use Illuminate\Http\{Request, Response}; use Illuminate\Http\{Request, Response};
use GuzzleHttp\Exception\{ClientException, ServerException}; use GuzzleHttp\Exception\{ClientException, ServerException};
@ -14,8 +12,8 @@ class MicropubClientController extends Controller
* Inject the dependencies. * Inject the dependencies.
*/ */
public function __construct( public function __construct(
IndieClient $indieClient, \IndieAuth\Client $indieClient,
GuzzleClient $guzzleClient \GuzzleHttp\Client $guzzleClient
) { ) {
$this->indieClient = $indieClient; $this->indieClient = $indieClient;
$this->guzzleClient = $guzzleClient; $this->guzzleClient = $guzzleClient;