mirror of
https://github.com/elyby/oauth2-server.git
synced 2025-05-31 14:12:07 +05:30
Updated examples
This commit is contained in:
22
examples/src/Repositories/UserRepository.php
Normal file
22
examples/src/Repositories/UserRepository.php
Normal file
@@ -0,0 +1,22 @@
|
||||
<?php
|
||||
namespace OAuth2ServerExamples\Repositories;
|
||||
|
||||
use League\OAuth2\Server\Entities\Interfaces\UserEntityInterface;
|
||||
use League\OAuth2\Server\Repositories\UserRepositoryInterface;
|
||||
use OAuth2ServerExamples\Entities\UserEntity;
|
||||
|
||||
class UserRepository implements UserRepositoryInterface
|
||||
{
|
||||
/**
|
||||
* Get a user
|
||||
*
|
||||
* @param string $username
|
||||
* @param string $password
|
||||
*
|
||||
* @return UserEntityInterface
|
||||
*/
|
||||
public function getByCredentials($username, $password)
|
||||
{
|
||||
return new UserEntity();
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user