Skip to content

Commit

Permalink
[Common] Feature: Remove legacy docs
Browse files Browse the repository at this point in the history
  • Loading branch information
ovr committed Feb 13, 2020
1 parent e070cea commit e19f598
Showing 1 changed file with 2 additions and 13 deletions.
15 changes: 2 additions & 13 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,18 +1,6 @@
Common Component
================

You can use `Curl` client

```php
$httpClient = new SocialConnect\Common\Http\Client\Curl();
```

or `Guzzle` wrapper for GuzzleHttp library

```php
$httpClient = new SocialConnect\Common\Http\Client\Guzzle();
```

## Build `Client` for your REST application

```php
Expand Down Expand Up @@ -45,7 +33,8 @@ Next you can use it

```php
$client = new MySocialNetworkClient($appId, $appSecret);
$client->setHttpClient(new SocialConnect\Common\Http\Client\Curl());
// You can use any client that implements Psr\Http\Client\ClientInterface
$client->setHttpClient(new \SocialConnect\HttpClient\Curl());

$user = $client->getUser(1);

Expand Down

0 comments on commit e19f598

Please sign in to comment.