for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace Dontdrinkandroot\RestBundle\Security;
use Dontdrinkandroot\RestBundle\Repository\AccessTokenRepositoryInterface;
class DefaultAccessTokenAuthenticator extends AbstractAccessTokenAuthenticator
{
private $service;
public function __construct(AccessTokenRepositoryInterface $service)
$this->service = $service;
}
/**
* {@inheritdoc}
*/
protected function findUserByToken($token)
return $this->service->findUserByToken($token);