Files
Passkeys/Repository/PasskeysAuthConfigRepository.php
2025-10-06 21:45:33 +09:00

47 lines
1.1 KiB
PHP

<?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']);
}
}