Closed dbebawy closed 6 years ago
Updated:
$youtrack = app(\Cog\YouTrack\Rest\YouTrackClient::class);
to:
$youtrack = app(\Cog\YouTrack\Rest\Client\YouTrackClient::class);
and received error:
Target [Cog\Contracts\YouTrack\Rest\HttpClient\HttpClient] is not instantiable while building [Cog\YouTrack\Rest\Client\YouTrackClient].
@dbebawy, thank you for reporting! I haven't updated documentation.
You should bypass contract to application container, not concrete implementation:
$client = app(\Cog\Contracts\YouTrack\Rest\Client\Client::class);
After then instantiated concrete implementation will be returned:
\Cog\YouTrack\Rest\Client\YouTrackClient
Does it help you?
Yes, Thank you. I was able to instantiate the client.
Followed steps in readme and received this error:
Class Cog\YouTrack\Rest\YouTrackClient does not exist