Skip to content

Commit

Permalink
BC: Move fields parameter to options[identity.fields]
Browse files Browse the repository at this point in the history
  • Loading branch information
ovr committed May 24, 2018
1 parent 4ec22a8 commit 1641044
Showing 1 changed file with 0 additions and 33 deletions.
33 changes: 0 additions & 33 deletions AbstractBaseProvider.php
Original file line number Diff line number Diff line change
Expand Up @@ -22,11 +22,6 @@ abstract class AbstractBaseProvider
*/
protected $scope = [];

/**
* @var array
*/
protected $fields = [];

/**
* @var ClientInterface
*/
Expand Down Expand Up @@ -62,10 +57,6 @@ public function __construct(ClientInterface $httpClient, SessionInterface $sessi
$this->setScope($parameters['scope']);
}

if (isset($parameters['fields'])) {
$this->setFields($parameters['fields']);
}

if (isset($parameters['redirectUri'])) {
$this->redirectUri = $parameters['redirectUri'];
}
Expand Down Expand Up @@ -178,30 +169,6 @@ public function getScopeInline()
return implode(',', $this->scope);
}

/**
* @return array
*/
public function getFields()
{
return $this->fields;
}

/**
* @param array $fields
*/
public function setFields(array $fields)
{
$this->fields = $fields;
}

/**
* @return string
*/
public function getFieldsInline()
{
return implode(',', $this->fields);
}

/**
* @return \SocialConnect\Provider\Consumer
*/
Expand Down

0 comments on commit 1641044

Please sign in to comment.