PHP Class Mmanos\Social\Social

Datei anzeigen Open project: mmanos/laravel-social

Protected Properties

Property Type Description
$factory OAuth\ServiceFactory The Service Factory instance.
$storage OAuth\Common\Storage\TokenStorageInterface The Service Storage instance.

Public Methods

Method Description
__construct ( ) : void Create a new Social instance.
oauthSpec ( string $provider ) : integer Return the OAuth spec used by the given service provider.
service ( string $provider, string $url = null, array $scope = null ) : OAuth\Common\Service\AbstractService Return an instance of the requested service.

Method Details

__construct() public method

Create a new Social instance.
public __construct ( ) : void
return void

oauthSpec() public method

Return the OAuth spec used by the given service provider.
public oauthSpec ( string $provider ) : integer
$provider string
return integer

service() public method

Return an instance of the requested service.
public service ( string $provider, string $url = null, array $scope = null ) : OAuth\Common\Service\AbstractService
$provider string
$url string
$scope array
return OAuth\Common\Service\AbstractService

Property Details

$factory protected_oe property

The Service Factory instance.
protected ServiceFactory,OAuth $factory
return OAuth\ServiceFactory

$storage protected_oe property

The Service Storage instance.
protected TokenStorageInterface,OAuth\Common\Storage $storage
return OAuth\Common\Storage\TokenStorageInterface