for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace OAuth\Repository;
use OAuth\Client;
use Doctrine\ORM\EntityRepository;
use League\OAuth2\Server\Entities\ClientEntityInterface;
use League\OAuth2\Server\Repositories\ClientRepositoryInterface;
class ClientRepository extends EntityRepository implements ClientRepositoryInterface
{
/**
* @param string $clientIdentifier
* @param string $grantType
* @param null|string|null $clientSecret
* @param bool $mustValidateSecret
* @return ClientEntityInterface
*/
public function getClientEntity($clientIdentifier, $grantType, $clientSecret = null, $mustValidateSecret = true)
// TODO: Implement getClientEntity() method.
}
* @param Client $client
* @return Client
public function save(Client $client)
if(!$client->getID()) {
$this->_em->persist($client);
$this->_em->flush($client);
return $client;
public function delete(Client $client)
$this->_em->remove($client);