Init Gitea
This commit is contained in:
46
Repository/PasskeysAuthConfigRepository.php
Normal file
46
Repository/PasskeysAuthConfigRepository.php
Normal file
@@ -0,0 +1,46 @@
|
||||
<?php
|
||||
|
||||
/*
|
||||
* This file is part of EC-CUBE
|
||||
*
|
||||
* Copyright(c) EC-CUBE CO.,LTD. All Rights Reserved.
|
||||
*
|
||||
* http://www.ec-cube.co.jp/
|
||||
*
|
||||
* For the full copyright and license information, please view the LICENSE
|
||||
* file that was distributed with this source code.
|
||||
*/
|
||||
|
||||
namespace Plugin\Passkeys\Repository;
|
||||
|
||||
use Doctrine\Persistence\ManagerRegistry;
|
||||
use Eccube\Repository\AbstractRepository;
|
||||
use Plugin\Passkeys\Entity\PasskeysAuthConfig;
|
||||
use Plugin\Passkeys\Entity\PasskeysCustomerCookie;
|
||||
|
||||
/**
|
||||
* PasskeysAuthConfigRepository.
|
||||
*
|
||||
* This class was generated by the Doctrine ORM. Add your own custom
|
||||
* repository methods below.
|
||||
*/
|
||||
class PasskeysAuthConfigRepository extends AbstractRepository
|
||||
{
|
||||
/**
|
||||
* PasskeysAuthConfigRepository constructor.
|
||||
*
|
||||
* @param ManagerRegistry $registry
|
||||
*/
|
||||
public function __construct(ManagerRegistry $registry)
|
||||
{
|
||||
parent::__construct($registry, PasskeysAuthConfig::class);
|
||||
}
|
||||
|
||||
/**
|
||||
* @return object|PasskeysAuthConfig|PasskeysCustomerCookie|null $result
|
||||
*/
|
||||
public function findOne()
|
||||
{
|
||||
return $this->findOneBy([], ['id' => 'DESC']);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user