-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[Core] Fix some issue in new OAuth provider implementation
Remove useless dependencies on EntityManager, add new UserOAuthInterface, extend UserInterface
- Loading branch information
Showing
4 changed files
with
155 additions
and
36 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,85 @@ | ||
<?php | ||
|
||
/* | ||
* This file is part of the Sylius package. | ||
* | ||
* (c) Paweł Jędrzejewski | ||
* | ||
* For the full copyright and license information, please view the LICENSE | ||
* file that was distributed with this source code. | ||
*/ | ||
|
||
namespace Sylius\Component\Core\Model; | ||
|
||
/** | ||
* User OAuth account interface. | ||
* | ||
* @author Sergio Marchesini | ||
* @author Joseph Bielawski <stloyd@gmail.com> | ||
*/ | ||
interface UserOAuthInterface | ||
{ | ||
/** | ||
* Get OAuth provider name. | ||
* | ||
* @return string | ||
*/ | ||
public function getProvider(); | ||
|
||
/** | ||
* Set OAuth provider name. | ||
* | ||
* @param string $provider | ||
* | ||
* @return self | ||
*/ | ||
public function setProvider($provider); | ||
|
||
/** | ||
* Get OAuth identifier. | ||
* | ||
* @return string | ||
*/ | ||
public function getIdentifier(); | ||
|
||
/** | ||
* Set OAuth identifier. | ||
* | ||
* @param string $identifier | ||
* | ||
* @return self | ||
*/ | ||
public function setIdentifier($identifier); | ||
|
||
/** | ||
* Get OAuth access token. | ||
* | ||
* @return string | ||
*/ | ||
public function getAccessToken(); | ||
|
||
/** | ||
* Set OAuth access token. | ||
* | ||
* @param string $accessToken | ||
* | ||
* @return self | ||
*/ | ||
public function setAccessToken($accessToken); | ||
|
||
/** | ||
* Get user | ||
* | ||
* @return UserInterface | ||
*/ | ||
public function getUser(); | ||
|
||
/** | ||
* Set user. | ||
* | ||
* @param UserInterface $user | ||
* | ||
* @return self | ||
*/ | ||
public function setUser(UserInterface $user); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters