<?php

declare(strict_types=1);

namespace App\Repository;

use App\Entity\GiteaConfiguration;
use Doctrine\Bundle\DoctrineBundle\Repository\ServiceEntityRepository;
use Doctrine\Persistence\ManagerRegistry;

class GiteaConfigurationRepository extends ServiceEntityRepository
{
    public function __construct(ManagerRegistry $registry)
    {
        parent::__construct($registry, GiteaConfiguration::class);
    }

    public function findSingleton(): ?GiteaConfiguration
    {
        return $this->findOneBy([]);
    }
}
