namespace MyApp;
use Symfony\Component\Security\Core\User\UserProviderInterface;
use Symfony\Component\Security\Core\User\UserInterface;
use Symfony\Component\Security\Core\User\User;
use Symfony\Component\Security\Core\Exception\UsernameNotFoundException;
use Symfony\Component\Security\Core\Exception\UnsupportedUserException;
use Junker\Silex\Security\User\FacebookCanvasUserProviderInterface;
class UserProvider implements UserProviderInterface,FacebookCanvasUserProviderInterface
{
private $db;
public function __construct($db)
{
$this->db = $db;
}
public function loadUserByFacebookUid($fbUid)
{
$username = $this->db->fetchColumn('SELECT username FROM user WHERE facebook_uid=?', [$fbUid]);
return $this->loadUserByUsername($username);
}
....
}
Loading please wait ...
Before you can download the PHP files, the dependencies should be resolved. This can take some minutes. Please be patient.